1827428 Members
4072 Online
109965 Solutions
New Discussion

Sendmail Relay problem

 
SOLVED
Go to solution
Josh Owings
Frequent Advisor

Sendmail Relay problem

I am trying to setup sendmail to relay through a private network and private IP, no DNS, no domain name resolution, just through IP. I can pick up mail fine throught the mail server, but I cannot relay mail. I can telnet to port 25, but I just can't relay mail to the server. I am sure it has something to do with the DM part of my sendmail, but I don't know. Here is the error I get in Outlook Express:

The message could not be sent because one of the recipients was rejected by the server. The rejected e-mail address was 'test@192.168.10.12'. Subject 'test', Account: 'richard', Server: '192.168.10.12', Protocol: SMTP, Server Response: '571 ... we do not relay', Port: 25, Secure(SSL): No, Server Error: 571, Error Number: 0x800CCC79
3 REPLIES 3
Santosh Nair_1
Honored Contributor

Re: Sendmail Relay problem

Josh,

There are several threads on this. Basically, you need to set up /etc/mail/LocalName file, listing all the allowable relay hosts.

Hope this helps.

-Santosh
Life is what's happening while you're busy making other plans
linuxfan
Honored Contributor
Solution

Re: Sendmail Relay problem

Hi Josh,

To configure relay in your sendmail configuration file (/etc/mail/sendmail.cf)

include
DSrelayserver.domain.com

If you have multiple relay servers this should work too
DSrelay1.domain.com:relay2.domain.com

and then restart your sendmail.

-HTH
Ramesh
They think they know but don't. At least I know I don't know - Socrates
Jeffrey S. Sims
Trusted Contributor

Re: Sendmail Relay problem

Hi Josh,

DSrelayserver.domain.com

as stated above will tell sendmail the address of the Smart Relay server. I haven't used this feature on my server, but if the two sendmail servers (assuming they both are sendmail) are on different networks you may also have to tell the "relaying" server who is allowed to relay through that server by adding

FR/etc/mail/relay.allow

to the sendmail.cf file. Then enter the IP address of the first server that is sending the messages to be relayed.

I hope that came out right. Sounds kinda like a carnival maze. Anyway, hope this helps.

Jeff