5 Replies Latest reply on Jan 27, 2006 1:16 PM by Andrew Oliver

    build/virtual hosting

    Andrew Oliver Master

      The build now works. To give M4 (HEAD) a try do this:

      0. download JBoss 4.0.3SP1 with the EJB container/JDK5 stuff (or check it out from CVS and build with JDK 5, our JDK4 support has been dropped).
      1. follow instructions for CVS here: http://wiki.jboss.org/wiki/Wiki.jsp?page=CVSRepository
      2. cvs co jboss-mail
      3. cd jboss-mail
      4. ant clean dist
      5. java -jar build/dist/install.jar
      6. predominantly this (minor differences in screens/options): http://wiki.jboss.org/wiki/Wiki.jsp?page=HowToInstallJBossMailServer1.0M3
      7. mailboxes are no longer created automatically and there is now a difference between a mailbox and a user. You must go to here: http://localhost:8080/jmx-console/HtmlAdaptor?action=inspectMBean&name=jboss.mail%3Atype%3DMailServices%2Cname%3DMailboxManager
      and create a "mailbox" with an alias the same as your UserRepository user in order to read mail (this will be the user you will log on with in POP)
      8. then get the ID of the mailbox (getMailboxIdByAlias())
      9. Then create an alias for each SMTP address you want to allow (must also be listed in your "localdomain" list): andy@localhost.

      For example:
      localdomains: "localhost" "localhost.localdomain" "localdomain"

      getMailboxIdByAlias("andy") == 2

      would allow mails sent to "andy@localhost" to be delivered to the "andy" mailbox. However it would NOT allow mails to "andy@localhost.localdomain" to be delivered.


      would allow that.

      createAlias(2,"andy@localdomain") would be required for all 3 to make it there.

      However when logging into POP you must put:

      user andy
      pass xyzasdf

      as "andy" is in the user repository with a password AND is keyed to the mailbox. If you put "andy@localhost" it will not work as there is no user called andy@localhost (only an alias).

      What about SMTP:

      mail to: <andy>

      will fail because we do not allow mails to the null domain. (If anyone REALLY needs this we could add a "blank domain" feature but I'm betting you don't REALLY need this).

      What about IP addresses?

      If you want to allow folks to send to
      then you would have to add that as an alias and as a "localdomain". That's pretty retro though and I don't really like it.

      I'm still doing some testing (there are reports of issues with Outlook which I'm about to test now). Once I'm done I'll cut M4-pre1 finally!!!!

      So if that all looked complicated, read it this way: "There is now an easily installed email server that supports virtual hosting" ;-)

      Once we make a GUI admin tool the mailbox thing will be less painful. I may add a simple servlet tool or something in the interim. I'm REALLY interested in seeing the GUI stuff start soon.


        • 1. Re: build/virtual hosting
          Andrew Oliver Master

          This is so weird. I'm baffled at the moment on what the problem is. While JBMS 1.0M3 works perfectly, 1.0M4 is causing both T-bird and lookout to drop carrier when it says:

          No. Time Source Destination Protocol Info
          1307 55.434271 SMTP Response: 250 Sender <andy@localdomain> OK

          0000 00 00 00 02 45 00 00 56 c7 0b 40 00 40 06 00 00 ....E..V..@.@...
          0010 7f 00 00 01 7f 00 00 01 00 19 c1 90 95 8c e2 4b ...............K
          0020 7b 11 d7 b7 80 18 ff ff fe 4a 00 00 01 01 08 0a {........J......
          0030 32 f9 92 93 32 f9 92 8a 32 35 30 20 53 65 6e 64 2...2...250 Send
          0040 65 72 20 3c 61 6e 64 79 40 6c 6f 63 61 6c 64 6f er <andy@localdo
          0050 6d 61 69 6e 3e 20 4f 4b 0d 0a main> OK..

          However when M3 says:

          No. Time Source Destination Protocol Info
          12 0.265829 SMTP Response: 250 Sender <andy@localdomain> OK

          0000 00 11 24 8d 02 6f 00 12 17 13 f4 cc 08 00 45 00 ..$..o........E.
          0010 00 56 99 90 40 00 2f 06 6a c1 47 1d 3e 1f c0 a8 .V..@./.j.G.>...
          0020 01 6c 00 19 c1 8e 86 c8 94 9e 99 5f b4 f8 80 18 .l........._....
          0030 16 a0 a2 8a 00 00 01 01 08 0a 25 26 0a ea 32 f9 ..........%&..2.
          0040 91 01 32 35 30 20 53 65 6e 64 65 72 20 3c 61 6e ..250 Sender <an
          0050 64 79 40 6c 6f 63 61 6c 64 6f 6d 61 69 6e 3e 20 dy@localdomain>
          0060 4f 4b 0d 0a OK..

          they are happy!

          • 2. Re: build/virtual hosting
            Andrew Oliver Master

            doh it wasn't the mail from response at all... I goofed up the EHLO response... eez fixed. We still need to revisit the EHLO response which isn't strictly spec compliant (even though its not used for much from what I can tell because most client require a manual turning on of the various features anyhow...).

            • 3. Re: build/virtual hosting
              Andrew Oliver Master

              anyhow the fixes are checked in.. Everything works with lookout 2000 at least now...

              • 4. Re: build/virtual hosting
                Andrew Oliver Master

                Just thought I'd give an update. I'll likely be creating the release today. It won't be published until monday (readership/etc drops off on the weekend). I've checked in minor fixes that I discovered in doing the testing on various DBs. As it turns out exploded ejb3 deployments both work on JBAS403SP1 and will be required. I'll be making further changes to the installer/build ot this effect. Right now you have to manually edit persistence.xml to switch to anything but hypersonic. Obviously that is unacceptable. We'll make it on a template system like before.

                • 5. Re: build/virtual hosting
                  Andrew Oliver Master

                  Oh "release" referred to 1.0M4-pre1. The draft doco is on the wiki BTW. More will be appearing.