4 Replies Latest reply: Nov 28, 2012 8:08 AM by muvvas RSS

    Sendmail Configuration

    974927
      Hi Experts,

      I'm sorry if my question too dumb for you, but i need deep explanation how to configure sendmail.
      this is my scenario :

      1. I have solaris server with hostname A
      2. I have mail server with hostname B
      3. I already put hostname B in /etc/hosts hostname A
      4. I already put hostname B in /etc/resolve.conf hostname A
      4. I can ping use hostname B (domain)
      5. But i'm not receive any mail in my mailbox at hostname B, when I send mail from hostname A to hostname B using command "mailx -s "test" test@hostname.domain

      anyone help me? :)

      regards,
      fahrul
        • 1. Re: Sendmail Configuration
          bigdelboy
          971924 wrote:
          Hi Experts,

          I'm sorry if my question too dumb for you, but i need deep explanation how to configure sendmail.
          ISBN-13: 978-0596510299 .... good luck .... good bedtime reading .... most mortals will sleep well on it.
          this is my scenario :

          1. I have solaris server with hostname A
          2. I have mail server with hostname B
          3. I already put hostname B in /etc/hosts hostname A
          4. I already put hostname B in /etc/resolve.conf hostname A
          4. I can ping use hostname B (domain)
          5. But i'm not receive any mail in my mailbox at hostname B, when I send mail from hostname A to hostname B using command "mailx -s "test" test@hostname.domain

          anyone help me? :)

          regards,
          fahrul
          You can try the following brute force things to see if it helps ....

          1.Try adding 'mailhost' as an alias to hostname B on the /etc/hosts of hostname A

          2. svcs -a | grep mail .... svcadm disable XXXX ; svcadm enable XXXX anything looking apporpriate.

          3. The hostname B in /etc/resolve.conf hostname A wont help much if Hostname B it isn't a DNS server.


          I am not a guru in this area .... i prod a couple of things and sometimes it works ... and sometimes it doesn't

          That +might+ be enough ..... and it might not be. Some guru's can get a lot more complex than this.
          • 2. Re: Sendmail Configuration
            bobthesungeek76036
            One thing you might want to try is add the "-v" option to your mailx command:

            mailx -v -s "test" test@host.domain

            It should show a trace of the message and show you where it is being delivered.

            I have found that if your domain has an MX record associated with it, sendmail will try to use it as a relay for all messages regardless if it's in your domain or not. Also, check your /etc/mail/sendmail.cf and see if you have anything configured for "DS"

            grep ^DS /etc/mail/sendmail.cf

            If it is blank, it will use the MX record for the relay.
            • 3. Re: Sendmail Configuration
              975587
              I guess your issue might be caused by DNS resolution.
              Try the follows
              Host_A # telnet Host_B 25
              EHLO Host_A <= input
              250-SIZE 30240000
              250-VRFY
              250-ETRN
              250-STARTTLS
              250-ENHANCEDSTATUSCODES
              250-8BITMIME
              250 DSN
              mail from:root@Host_A <== Input
              250 2.1.0 Ok
              rcpt to:<test@Host_B> <== Input
              250 2.1.5 Ok
              data <== Input
              354 End data with <CR><LF>.<CR><LF>
              subject: test <== Input
              Testing
              .

              You will see what a problem is.

              Cheers,
              • 4. Re: Sendmail Configuration
                muvvas
                if you are servers are not in dns domain

                then u have to add the ips like

                im giving here for relay server

                DS[mymailserver] ------it will go to /etc/hosts

                if u have dns was their do

                DSmymailserver ------it will go to dns resolv.conf

                u can add enties like that in ur configuration