Find the answer to your Linux question:
Results 1 to 7 of 7
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2009
    Posts
    8

    Unable to send mail to outer domain using SMART_HOST in sendmail.mc


    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
    Just Joined! manicanet's Avatar
    Join Date
    Nov 2009
    Posts
    11
    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
    Just Joined!
    Join Date
    Nov 2009
    Posts
    8
    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', `oadcah1.ogeremirates.ae')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 emirates.ae>, relay=root@localhost
    Nov 29 12:29:57 erpnonprod sendmail[27967]: nAT8Tv6P027967: from=<root@erpnonprod.ogeremirates.ae>, size=357, class=0, nrcpts=1, msgid=<200911290829.nAT8TvLN027966@erpnonprod.oger emirates.ae>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
    Nov 29 12:29:57 erpnonprod sendmail[27966]: nAT8TvLN027966: to=adhar@ogeremirates.ae, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30041, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (nAT8Tv6P027967 Message accepted for delivery)
    Nov 29 12:29:57 erpnonprod sendmail[27969]: STARTTLS=client, relay=oadcah1.ogeremirates.ae., version=TLSv1/SSLv3, verify=FAIL, cipher=RC4-MD5, bits=128/128
    Nov 29 12:29:57 erpnonprod sendmail[27969]: nAT8Tv6P027967: to=<adhar@ogeremirates.ae>, ctladdr=<root@erpnonprod.ogeremirates.ae> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=120357, relay=oadcah1.ogeremirates.ae. [192.168.100.46], dsn=2.0.0, stat=Sent (<200911290829.nAT8TvLN027966@erpnonprod.ogeremira tes.ae> 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 emirates.ae>, relay=root@localhost
    Nov 29 12:30:24 erpnonprod sendmail[24071]: nAT8Nl8x024071: to=ayondhar@gmail.com, 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. #4
    Just Joined!
    Join Date
    Nov 2009
    Posts
    8
    Hi,

    Any updates!!

    Thanks and Regards

  5. #5
    Just Joined!
    Join Date
    Nov 2009
    Posts
    8
    dear All,

    Any updates!!

    Thanks and Regards

  6. #6
    Just Joined!
    Join Date
    Nov 2009
    Posts
    8
    Dear All,

    Any luck on this..

    Regards

  7. #7
    Just Joined! TheMayhem's Avatar
    Join Date
    Apr 2007
    Location
    Sweden
    Posts
    32
    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
  •