11 Replies Latest reply on Apr 4, 2006 8:33 AM by acoliver

    How to deploy JBoss mail services to Jboss AS

    nuwanasanka

      i am working on CentOS 4.2 and my server also working on CentOS 4.2.
      Now It's already running jboss AS. I want to know how to deploy or install
      Jboss mail server on my server.

      Please if you can reply me soon.

        • 1. Re: How to deploy JBoss mail services to Jboss AS
          acoliver

          Go to jboss.org. Click JBoss Mail Server. Click "install Directly from the Web".

          • 2. Re: How to deploy JBoss mail services to Jboss AS
            nuwanasanka

            Andrew thanks for your reply.

            but I want to install mail services on my server.

            >>> Go to jboss.org. Click JBoss Mail Server. Click "install Directly from the Web".

            When I do this browser tries to download that jnlp file.
            I can ssh to my server.I try this.
            java -jar install-jbms-1.0m4-final.jar
            But on my server there are no X11 headers.There fore it return an error.Is there any non gui installer.

            If u don't mind this is my Instant Messenger id. nuwan.asanka@hotmail.com

            If you can help me.
            Regards.

            • 3. Re: How to deploy JBoss mail services to Jboss AS
              acoliver

              Just install it on your local box then tar it, upload it, untar it change $JBMS_HOME/server/default/mail/mail.ear/mail.sar/META-INF/jboss-service.xml. There is a fully qualified path at the top of the file, adapt it for your system.

              -Andy

              • 4. Re: How to deploy JBoss mail services to Jboss AS
                nuwanasanka

                Thanks again Andrew,

                Your trick was worked.
                I follow this page instructions and that completely successful.
                http://wiki.jboss.org/wiki/Wiki.jsp?page=HowToInstallJBossMailServer1.0M4

                After I used this page instructions to configure client.
                http://wiki.jboss.org/wiki/Wiki.jsp?page=HowToConfigureMozillaThunderbirdForUseWithJBossMailServer1.0M3
                it also successful.

                >>>> But when I try to send emails using this and to this there was an error saying "connection was refused from the server"
                Is this because iptables or ports?

                If you can reply me soon.
                Regards.

                • 5. Re: How to deploy JBoss mail services to Jboss AS
                  acoliver

                  test...will my reply actaully go through thsi time.

                  • 6. Re: How to deploy JBoss mail services to Jboss AS
                    acoliver

                    read this: http://wiki.jboss.org/wiki/Wiki.jsp?page=HowToRunJBossMailServerWithoutSuperuserAccess

                    Check the log (server/default/log/server.log) to see if their was an error binding. I imagine there was unless you're running as root.

                    • 7. Re: How to deploy JBoss mail services to Jboss AS
                      nuwanasanka

                      # But when I am tring to send mail using Thunderbird I have these errors.

                      # When trying to send mails test@mydomain------------>test@mydomain
                      An error occured while sending mail. The mail server responded:<test@mydomain> :
                      Recipient address rejected: User unknown in local recepient table.Please verify
                      that your email address is correct inyour mail preferences and try again.

                      # When trying to send mails test@mydomain------------>PrivateEmail

                      An error occured while sending mail. The mail server responded::
                      Relay access denied. Please verify that your email address is correct inyour mail
                      preferences and try again.

                      # When trying to send mails PrivateEmail------------>test@mydomain
                      This works but try to get mails
                      Could not connect to server mentics.com; the connection was refused.


                      # I thought this was because iptables. I changed those.
                      /sbin/iptables -t nat -A PREROUTING -p tcp --dport 25 -d x.x.x.x -j DNAT --to x.x.x.x:25
                      /sbin/iptables -t nat -A PREROUTING -p tcp --dport 464 -d x.x.x.x -j DNAT --to x.x.x.x:464
                      /sbin/iptables -t nat -A PREROUTING -p tcp --dport 110 -d x.x.x.x -j DNAT --to x.x.x.x:110
                      /sbin/iptables -t nat -A PREROUTING -p tcp --dport 995 -d x.x.x.x -j DNAT --to x.x.x.x:995
                      It also not worked.

                      # After I googling "Recipient address rejected" ,"Relay access denied". I found more forums
                      of this but I couldn't get idea.

                      Is any one can help me ?

                      • 8. Re: How to deploy JBoss mail services to Jboss AS
                        acoliver

                        attach your server/default/deploy/mail.ear/mail.sar/META-INF/jboss-service.xml

                        • 9. Re: How to deploy JBoss mail services to Jboss AS
                          nuwanasanka

                          Andrew thanks for your helps. I attached my server/default/deploy/mail.ear/mail.sar/META-INF/jboss-service.xml to you.
                          See can you help me.


                          Regards,
                          Nuwan

                          • 10. Re: How to deploy JBoss mail services to Jboss AS
                            nuwanasanka

                            Hi Andrew,

                            Did you received my email to acoliver@jboss.org

                            Please help me.

                            Regards,
                            Nuwan

                            • 11. Re: How to deploy JBoss mail services to Jboss AS
                              acoliver

                              Sorry it got flagged as spam. (attachements from people who I've not emailed before are generally flagged)

                              "nuwanasanka" wrote:
                              # But when I am tring to send mail using Thunderbird I have these errors.

                              # When trying to send mails test@mydomain------------>test@mydomain
                              An error occured while sending mail. The mail server responded:<test@mydomain> :
                              Recipient address rejected: User unknown in local recepient table.Please verify
                              that your email address is correct inyour mail preferences and try again.


                              I'm assuming this "mydomain" is a standin for one of the domains listed under:

                               <mbean code="org.jboss.mail.domaingroup.DomainGroup"
                              


                              You also need to create a test@mydomain alias (the instructions at the bottom of the howto: http://wiki.jboss.org/wiki/Wiki.jsp?page=HowToInstallJBossMailServer1.0M4)

                              "nuwanasanka" wrote:

                              # When trying to send mails test@mydomain------------>PrivateEmail

                              An error occured while sending mail. The mail server responded:<PrivateEmail>:
                              Relay access denied. Please verify that your email address is correct inyour mail
                              preferences and try again.

                              # When trying to send mails PrivateEmail------------>test@mydomain
                              This works but try to get mails
                              Could not connect to server mentics.com; the connection was refused.


                              note that you've only bound it to one interface. See this part

                              <attribute name="Address">
                              


                              is that the interface you're connecting to and have touched the IP stuff on?

                              "nuwanasanka" wrote:

                              # I thought this was because iptables. I changed those.
                              /sbin/iptables -t nat -A PREROUTING -p tcp --dport 25 -d x.x.x.x -j DNAT --to x.x.x.x:25
                              /sbin/iptables -t nat -A PREROUTING -p tcp --dport 464 -d x.x.x.x -j DNAT --to x.x.x.x:464
                              /sbin/iptables -t nat -A PREROUTING -p tcp --dport 110 -d x.x.x.x -j DNAT --to x.x.x.x:110
                              /sbin/iptables -t nat -A PREROUTING -p tcp --dport 995 -d x.x.x.x -j DNAT --to x.x.x.x:995
                              It also not worked.

                              # After I googling "Recipient address rejected" ,"Relay access denied". I found more forums
                              of this but I couldn't get idea.

                              Is any one can help me ?


                              Not sure why you messed with iptables. You only have to do that if you are not running as root and need to forward that to a non-privileged port.