Best Way to Control Relaying?

Alex Neuman van der Hans alex at nkpanama.com
Sat Jul 1 21:20:01 IST 2006


>
> how are you controlling your RELAYING feature then  ?
Well, every single sendmail instance (MailScanner-protected or not) that 
I've ever set up will *not* relay for anyone unless you *explicitly* 
tell it to, or authenticate.

Why would your sendmail relay *always*? There are several things to look 
for:

1. /etc/mail/access - you say you've modified it - without knowing what 
distribution you're using, you could be modifying the wrong file. Try 
renaming both files (access and access.db) and see if it stops sendmail 
from loading.
2. /etc/relay-domains - You could be set up to relay to the domain 
you're using to test.
3. "relay-based-on-mx" or some other similar setting set wrong in your 
/etc/mail/sendmail.mc (and thus your sendmail.cf)

There is *no* reason for sendmail to be relaying without AUTH. You just 
have to find out where exactly you've told it to relay.


More information about the MailScanner mailing list