MailScanner & CentOS5/Sendmail

Julian Field MailScanner at
Fri May 16 08:41:56 IST 2008

Henry Kwan wrote:
> Gerard Cleary <gcle <at>> writes:
>> Our system uses Centos 4.5 and Sendmail.
>> /var/spool/mqueue has modes 700 and ownership root.mail
>> /var/spool/ has modes 700 and ownership root.root
> Whoops.
> After looking at MailScanner.conf again, I realized my mistake.  I had set "Run
> As User" and "Run As Group" to "mail".  Didn't even see the "(not normally used
> for sendmail)" bit a couple of lines up.  After unsetting them, everything is
> working now.
> After sending a few test emails, I noticed that MailScanner/sendmail doesn't
> reject unknown users at the SMTP stage but rather it accepts the email for
> delivery and then a DSN is generated afterwards.
> How do you get sendmail to reject at the SMTP stage like postfix does with
> "relay_recipients.db"?
You need FEATURE(blacklist_recipients) I think. It is certainly *very* 
possible and quite simple to do in sendmail. I always thought it did it 
by default :-)


Julian Field MEng CITP CEng
Buy the MailScanner book at

MailScanner customisation, or any advanced system administration help?
Contact me at Jules at Jules.FM

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
PGP public key:

This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

More information about the MailScanner mailing list