1828859 Members
2281 Online
109985 Solutions
New Discussion

sendmail not relaying

 
SOLVED
Go to solution
Matt Shaffer_1
Regular Advisor

sendmail not relaying

Here's the scenerio: rhel4 box running sendmail and sendmail-cf-8.13.1-2. I have added the exchange front end (efe)server to /etc/hosts. I have the line define('SMART_HOST', 'efe.mydomain.com') in my sendmail.mc file, have run make -C /etc/mail, have added entry for DSefe.mydomain.com in sendmail.cf and have restarted sendmail. In maillog I still see root@localhost as the relay. And I'm not getting my email. Why?
8 REPLIES 8
Stuart Browne
Honored Contributor
Solution

Re: sendmail not relaying

You've still not told us enough information here.

Is the RHEL box accepting mail fromt he outside world, and supposed to be forwarding it to the efe?

Or is it the other way around?

In any case, the 'DS' rule (Smart Host) only says where to send messages that have been accepted for RELAYing.

The '/etc/mail/access' file needs to be modified to say what to relay (followed by the same make as above).
One long-haired git at your service...
Alexander Chuzhoy
Honored Contributor

Re: sendmail not relaying

Generally, although it's possible to edit with /etc/mail/sendmail.cf, it's best to edit /etc/mail/sendmail.mc and then you need to run (after you backup /etc/mail/sendmail.cf):

m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

check that efe.mydomain.com is reachable with
telnet efe.mydomain.com 25
Stuart Browne
Honored Contributor

Re: sendmail not relaying

Alexander, that's what he did. The 'make -C /etc/mail/Makefile' does the m4 for you on a RH/FC box (newer then RH7).
One long-haired git at your service...
Matt Shaffer_1
Regular Advisor

Re: sendmail not relaying

I am trying to send email from the rhel4 server to my Outlook account and to my Yahoo account.
Steven E. Protter
Exalted Contributor

Re: sendmail not relaying

Shalom,

1) Exchange must specifically permit relay from the linux machine or the operation will fail no matter what you do to the linux system. By default exchange does not permit relay.

2) sendamil -v -d8 -d38 someone@some.net

type some text.

.


This should get you the failure reason which would be helpful in determining if this has anything to do with Linux sendmail configuration.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Matt Shaffer_1
Regular Advisor

Re: sendmail not relaying

This is what happens when I ran this command. I got a Name server timeout message.

RPSPRO.wescodist.com# sendmail -v -d8 -d38 mshaffer@wescodist.com
wescodist.com: Name server timeout
mshaffer@wescodist.com... Transient parse error -- message queued for future del
ivery
test test test
.
mshaffer@wescodist.com... queued
Matt Shaffer_1
Regular Advisor

Re: sendmail not relaying

It was /etc/resolv.conf.
Matt Shaffer_1
Regular Advisor

Re: sendmail not relaying

I had to edit /etc/resolv.conf.