Startup script question

Julian Field MailScanner at
Wed Jun 14 16:31:21 IST 2006

On 14 Jun 2006, at 11:32, Levin wrote:

> shuttlebox wrote:
>> On 6/14/06, Levin <levin at> wrote:
>>> Hi,
>>> My mailbox running a sendmail MTA as a relay-only gateway, I setup a
>>> mailscanner up and run, however I found out that if it state
>>> DeliveryMode=queueonly  in /etc/rc.d/init.d/MailScanner script, all
>>> incoming from from otherworld will stuck into /var/spool/ 
>>> and
>>> not go anywhere, also /var/log/maillog show the mail was queued NOT
>>> sent, so I modify it to DeliveryMode=background, it seems work...  
>>> but I
>>> don't know anything wrong, would you please describe a little bit my
>>> statement?
>> This page describes well what needs to be done with Sendmail.
>> The main thing is that the listening Sendmail process does not
>> deliver, instead MailScanner intercepts the message in the incoming
>> queue and when it has processed it it places it in the outgoing queue
>> where the other (delivering) Sendmail process takes care of it and
>> sends it on its way.
> Thanks, so if the DeliveryMode=background, will MailScanner/ 
> sendmail bypassed any detection process?

No, the default sendmail command to start the incoming sendmail  
process is
         $SENDMAIL -bd -OPrivacyOptions=noetrn \
                       -ODeliveryMode=queueonly \
                       -OQueueDirectory=$INQDIR \

It's the 'DeliveryMode' setting which controls what it is going to  
do, as you can see above. But if you omit this setting, then  
MailScanner will be totally bypassed.

But don't take my word as gospel!

Julian Field
Buy the MailScanner book at
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654

This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

More information about the MailScanner mailing list