Postfix and MailScanner

Sylvain MEDEOT symedeot at YAHOO.FR
Wed Jun 25 17:01:38 IST 2003


Hi,

I am setting up MailScanner on a Mandrake 7.2 mail server with Postfix. I
followed step by step the installation procedure
(/etc/postfix, /etc/postfix.in, modifications of main.cf and master.cf).

This is not the first mail server I am protecting with MailScanner... But
this is the oldest one since I had no problems with newest releases of
Mandrake...

This server is running postfix-19991231_pl08-5mdk. After the installation
of MailScanner (everything fine) with McAfee, I can send mails
as usually... But, the mails remains in /etc/posftix.in/deferred.

My /etc/postfix.in/main.cf is like that :

defer_transport  = smtp local virtual relay
defer_transports = smtp local virtual relay
queue_directory = /var/spool/postfix.in
queue_run_delay = 60
default_destination_recipient_limit = 100
initial_destination_concurrency = 10
minimal_backoff_time = 60
maximal_backoff_time = 400
empty_address_recipient = si04
default_process_limit = 100
error_notice_recipient = root
transport_maps = hash:/etc/postfix/transport
message_size_limit = 90240000
bounce_size_limit = 100000
recipient_canonical_maps = hash:/etc/postfix/canonical_sender

In the manual, it is mentionned to add defer_transports = ... I already had
a line defer_transport (no s) so I put both...

My /etc/postfix.in/master.cf is like that :

smtp      inet  n   -   n   -   -   smtpd
pickup    fifo  n   n   n   60  1   pickup
cleanup   unix  -   -   n   -   0   cleanup
qmgr      fifo  n   -   n   300 1   qmgr
rewrite   unix  -   -   n   -   -   trivial-rewrite
bounce    unix  -   -   n   -   0   bounce
defer     unix  -   -   n   -   0   bounce
smtp      unix  -   -   n   -   -   smtp
showq     unix  n   -   n   -   -   showq
error     unix  -   -   n   -   -   error
local     unix  -   n   n   -   -   local
cyrus     unix  -   n   n   -   -   pipe
    flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
uucp      unix  -   n   n   -   -   pipe
    flags=F user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail
($recipient)
ifmail    unix  -       n       n       -       -       pipe
    flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
    flags=F. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop
$recipient


When I send messages, they are accepted :

[root at intranet postfix.in]# du -ks /var/spool/postfix.in/deferred
368     /var/spool/postfix.in/deferred


but nothing is delivered...

[root at intranet postfix.in]# du -ks /var/spool/postfix/incoming
4       /var/spool/postfix/incoming

nothing in the logs...

Jun 23 11:19:58 intranet MailScanner[1934]: Using locktype = flock
Jun 23 11:20:08 intranet MailScanner[1942]: MailScanner E-Mail Virus
Scanner ver
sion 4.21-9 starting...
Jun 23 11:20:08 intranet MailScanner[1942]: Using locktype = flock
Jun 23 11:20:18 intranet MailScanner[1950]: MailScanner E-Mail Virus
Scanner ver
sion 4.21-9 starting...
Jun 23 11:20:18 intranet MailScanner[1950]: Using locktype = flock
Jun 23 11:20:28 intranet MailScanner[1965]: MailScanner E-Mail Virus
Scanner ver
sion 4.21-9 starting...
Jun 23 11:20:29 intranet MailScanner[1965]: Using locktype = flock

My /etc/postfix/main.cf is :
queue_directory = /var/spool/postfix

and my /etc/postfix/master.cf

# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#       (yes)   (yes)   (yes)   (never) (50)
# ==========================================================================
#smtp     inet  n   -   n   -   -   smtpd
pickup    fifo  n   n   n   60  1   pickup
cleanup   unix  -   -   n   -   0   cleanup
qmgr      fifo  n   -   n   300 1   qmgr
rewrite   unix  -   -   n   -   -   trivial-rewrite
bounce    unix  -   -   n   -   0   bounce
defer     unix  -   -   n   -   0   bounce
#smtp     unix  -   -   n   -   -   smtp
showq     unix  n   -   n   -   -   showq
error     unix  -   -   n   -   -   error
local     unix  -   n   n   -   -   local
cyrus     unix  -   n   n   -   -   pipe
    flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
uucp      unix  -   n   n   -   -   pipe
    flags=F user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail
($recipient)
ifmail    unix  -       n       n       -       -       pipe
    flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
#bsmtp     unix  -       n       n       -       -       pipe
    flags=F. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop
$recipient

Then, finally my /etc/MailScanner/MailScanner.conf

Max Children = 5
Run As User = postfix
Run As Group = postfix
Incoming Queue Dir = /var/spool/postfix.in/deferred
Outgoing Queue Dir = /var/spool/postfix/incoming
Incoming Work Dir = /var/spool/MailScanner/incoming
Quarantine Dir = /var/spool/MailScanner/quarantine
PID file = /var/run/MailScanner.pid
MTA = postfix
Sendmail = /usr/sbin/sendmail

Well, I m'in trouble... Why MailScanner don't take messages
from /var/spool/postfix.in/deferred ?

Any idea of what is wrong in my installation ?

Regards,

Sylvain MEDEOT
Ville de Pontoise



More information about the MailScanner mailing list