Operating System - HP-UX
1838580 Members
3105 Online
110128 Solutions
New Discussion

sendmail 8.9.3 relay configuration

 
Dan Koehler
Occasional Contributor

sendmail 8.9.3 relay configuration

I updated sendmail to 8.9.3 to solve the open relay issue, but now I can't seem to open up an I.P. range to relay. This is what I have done so far.

1. create an access file in /etc/mail with the contents
205.239.126 RELAY
2. makemap dbm access
3. in sendmail.cf, put in the line
Kaccess dbm -o access

No error messages, no warnings, but still cannot relay for machines liek 205.239.126.4
hi
5 REPLIES 5
CHRIS_ANORUO
Honored Contributor

Re: sendmail 8.9.3 relay configuration

For the machine that you want to use as the relay, edit the file /etc/mail/access and insert the following line:

IP.ADD.RES.SS RELAY

where IP.ADD.RES.SS is the IP address of the host you want to relay for.

you could also insert the line:

mydomain.com RELAY

to relay from any host within mydomain.com.

I hope this helps. BTW you can find more information about the new features of sendmail at: http://www.sendmail.org/~ca/email/doc8.9/README.cf.html
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
CHRIS_ANORUO
Honored Contributor

Re: sendmail 8.9.3 relay configuration

See this link, it will also be of help http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0xa20160260cafd4118fef0090279cd0f9,00.html
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
Berlene Herren
Honored Contributor

Re: sendmail 8.9.3 relay configuration

Are you generating a new sendmail.cf with the gen_cf script?


Berlene
http://www.mindspring.com/~bkherren/dobes/index.htm
Shannon Petry
Honored Contributor

Re: sendmail 8.9.3 relay configuration

See if this helps too. I have a similar configuration, but have more controls...
First
# Access list database (for spam stomping)
Kaccess dbm -o /etc/mail/access
Kresolve host -a -T

contains hosts that are okay, and need to be rejected. I.E.
# SPAM SITES
url.com.tw REJECT
url.com REJECT
ucs.com.tw REJECT
aws.es REJECT
# OKAY SITES
mydomain.com OK
myhost.mydomain.com OK
myotherdomain.com OK

This tab separated text file is made into dbm like you already did.
>makedbm access access

# Hosts that will permit relaying ($=R)
FR-o /etc/mail/relay-domains

contains IP addresses, hosts and domains. IP addresses are only the class C, B, A, or HOST IP address.
I.E.
100.100.100
100.101.100.99
mydomain.com
mailhost.myotherdomain.com

The file relay-domains is also made into a dbm
> makedbm relay-domains relay-domains


Hope it helps.

Regards,
Shannon
Microsoft. When do you want a virus today?
Fred Martin_1
Valued Contributor

Re: sendmail 8.9.3 relay configuration

Dan Koehler, please respond ... I am having the same problem you describe. Did this ever get resolved for you?
fmartin@applicatorssales.com