MailScanner & CentOS5/Sendmail

Julian Field MailScanner at ecs.soton.ac.uk
Fri May 16 08:41:56 IST 2008



Henry Kwan wrote:
> Gerard Cleary <gcle <at> smcaus.com.au> writes:
>
>   
>> Our system uses Centos 4.5 and Sendmail.
>> /var/spool/mqueue has modes 700 and ownership root.mail
>> /var/spool/mqueue.in 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 :-)

Jules

-- 
Julian Field MEng CITP CEng
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store

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: http://www.jules.fm/julesfm.asc


-- 
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