Find the answer to your Linux question:
Results 1 to 7 of 7
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Unable to send mail to outer domain using SMART_HOST in

    I am using SMART_HOST option of sendmail to send mail fronm RHEL 5.3 server. It is working fine when sending mail to internal domain . But unable to send to outer domain.

    Thanks and Regards

  2. #2
    Are you configuring the .cf or .mc file? If you are working with the .mc file, make sure you don't forget to generate the .cf file using the M4 macro.

    Can you clarify what isn't working? Is it not using the smart host? Is it trying the smart host but failing?

    The internal domains are working because they don't use the smart host. External domains will use it if it is defined, otherwise it will try to send via DNS and SMTP as normal. So if it isn't using it, it is likely that sendmail doesn't know it should. You should post your configuration (at least the smart host portion).

    If it is trying to use the smart host but can't connect, you will need to do some network troubleshooting. Check your firewall rules, routes, IP connectivity and so on.

  3. #3
    Hi Thanks for your reply...

    I am configuring .mc file and compiling it properly to generate the .cf file.

    The SMART_HOST entry in my .mc file is as follows:
    define(`SMART_HOST', `')dnl

    Following is the portion of the log file which shows entry for both internal mail id as well as external mail id. It seems that for internal...for relay it is using SMART_HOST but in case of external NOT.....insteed may be trying to send by its own. I don't know why.
    Following is part of log file:-
    Nov 29 12:29:57 erpnonprod sendmail[27966]: nAT8TvLN027966: from=root, size=41, class=0, nrcpts=1, msgid=<200911290829.nAT8TvLN027966@erpnonprod.oger>, relay=root@localhost
    Nov 29 12:29:57 erpnonprod sendmail[27967]: nAT8Tv6P027967: from=<>, size=357, class=0, nrcpts=1, msgid=<200911290829.nAT8TvLN027966@erpnonprod.oger>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain []
    Nov 29 12:29:57 erpnonprod sendmail[27966]: nAT8TvLN027966:, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30041, relay=[] [], dsn=2.0.0, stat=Sent (nAT8Tv6P027967 Message accepted for delivery)
    Nov 29 12:29:57 erpnonprod sendmail[27969]: STARTTLS=client,, version=TLSv1/SSLv3, verify=FAIL, cipher=RC4-MD5, bits=128/128
    Nov 29 12:29:57 erpnonprod sendmail[27969]: nAT8Tv6P027967: to=<>, ctladdr=<> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=120357, [], dsn=2.0.0, stat=Sent (<200911290829.nAT8TvLN027966@erpnonprod.ogeremira> Queued mail for delivery)
    Nov 29 12:30:24 erpnonprod sendmail[24071]: nAT8Nl8x024071: from=root, size=38, class=0, nrcpts=1, msgid=<200911290823.nAT8Nl8x024071@erpnonprod.oger>, relay=root@localhost
    Nov 29 12:30:24 erpnonprod sendmail[24071]: nAT8Nl8x024071:, delay=00:06:37, mailer=esmtp, pri=30038, dsn=4.4.3, stat=queued

    The above may give u a idea.

    Thanks and Regards

  4. $spacer_open
  5. #4

    Any updates!!

    Thanks and Regards

  6. #5
    dear All,

    Any updates!!

    Thanks and Regards

  7. #6
    Dear All,

    Any luck on this..


  8. #7
    Just Joined! TheMayhem's Avatar
    Join Date
    Apr 2007
    I don't know much and I am myself trying to figure out how to get sendmail working. But I believe that "dnl" at the end of the line means that it is not read. try removing that part and then using the m4 macro again

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts