1833030 Members
3019 Online
110049 Solutions
New Discussion

Sendmail - open relay.

 
SOLVED
Go to solution
Mark Harshman_1
Regular Advisor

Sendmail - open relay.

We are trying to activate an open mail relay on one server, to out snmp server. We are not sure what ruleset gets activated for an open relay. Our intent here is to forward from specific domains behind our firewall (we're aware of the no-no's for using open relay). My question is basically, the proper confuration needed for the .cf file. How does this interact with the smart relay? or does it? Thanks in advance.
Never underestimate the power of stupid people in large groups
2 REPLIES 2
Steven E. Protter
Exalted Contributor
Solution

Re: Sendmail - open relay.

Relay is handled for sendmail in /etc/mail/access file

hostnmae RELAY


or

IP_ADDRESS RELAY


This is a tab delimited data file. In later versions of sendmail a script called gen_cf will put this into production.

This allows relay.

You will probably need entries to validate the domains as well.

/etc/mail/virtusertable
/etc/mail/genericstable

Same basic formats.

@domain.com localuser
@domain.com remoteuser@server.domain.com
user@domain.net localuser2

tab delimited
gen_cf puts it into production

genericstable is reverse format with th user before the domain.

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
Brian Bergstrand
Honored Contributor

Re: Sendmail - open relay.

For sendmail 8.9 or les:

Check out the LocalIP and LocalNames directives in sendmail.cf. If you enable these files, and then create them in /etc/mail, the addresses listed in the files will be able to relay through your server.

For Sendmail 8.10 and above:

Use the file /etc/mail/relay-domains for the same effect as above.

HTH.