1825775 Members
2145 Online
109687 Solutions
New Discussion

Allow Relay

 
brian_31
Super Advisor

Allow Relay

How do you alter sendmail to allow relaying and how do u know it works?

Thanks

Brian
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: Allow Relay

Shalom Brian,

To allow relay:

add permitted relay hosts/ip to /etc/mail/access file

example

192.168.0.10 RELAY
supermail RELAY
spam.com REJECT 554 No spam allowed

Then you have to compile the access.db database based on a sendmail.mc file or the HP equivalent.

Two places to get the code.

http://www.sendmail.org

http://www.hpux.ws/buildmail.hpux.text

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
spex
Honored Contributor

Re: Allow Relay

Brian,

In /etc/mail/sendmail.cf:
DS..com

PCS
brian_31
Super Advisor

Re: Allow Relay

i have server A which is the mail server and i am trying to send email from server B and i am getting "relaying denied". so shd i add fully qualified doamin name of server b ? if so where?

Thanks

Brian
brian_31
Super Advisor

Re: Allow Relay

SEP

sorry, i see ur post..In my case i dont see an access file under /etc/mail. in that case can i add that file? and then stop/start sendmail?

THanks

Brian