MailScanner issue with postfix

Angela Schwalm aschwalm at WEB.DE
Tue Jul 1 16:10:38 IST 2003


here are all configurations. I hope anybody can see, why it does not work.

/etc/postfix.in/main.cf:
soft_bounce = yes
queue_directory = /var/spool/postfix.in
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
sendmail_path = /usr/sbin/sendmail
mailq_path = /usr/bin/mailq
newaliases_path = /usr/sbin/sendmail
mail_owner = postfix
mail_name = Postfix on SuSE Linux 8.0 (i386)
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
sender_canonical_maps = hash:/etc/postfix/sender_canonical
canonical_maps = hash:/etc/postfix/canonical
virtual_maps = hash:/etc/postfix/virtual
relocated_maps = hash:/etc/postfix/relocated
transport_maps = hash:/etc/postfix/transport
local_recipient_maps =
debug_peer_level = 2
debugger_command =
  PATH=/usr/bin:/usr/X11R6/bin
  xxgdb $daemon_directory/$process_name $process_id & sleep 5
setgid_group = maildrop
defer_transports = smtp local virtual relay
disable_dns_lookups = no


/etc/postfix.in/master.cf:
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
#   (yes) (yes) (yes) (never) (50)
# ==========================================================================
smtp   inet n - y - - smtpd
pickup   unix n - y 60 1 pickup
cleanup   unix n - y - 0 cleanup
qmgr   unix n - y 300 1 qmgr
rewrite   unix - - y - - trivial-rewrite
bounce   unix - - y - 0 bounce
defer   unix - - y - 0 bounce
flush   unix n - y 1000? 0 flush
smtp   unix - - y - - smtp
showq     unix n - y - - showq
error     unix - - y - - error
local   unix - n n - - local
virtual   unix - n n - - virtual
lmtp   unix - - y - - lmtp
tlsmgr   fifo - - n 300 1 tlsmgr

cyrus   unix - n n - - pipe
    flags=R user=cyrus argv=/usr/lib/cyrus/bin/deliver -e -m ${extension}
${user}
uucp   unix - n n - - pipe
  flags=Fqhu 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=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop
$recipient
procmail  unix  -       n       n       -       -       pipe
    flags=R user=cyrus argv=/usr/bin/procmail -t -m USER=${user}
EXT=${extension} /etc/procmailrc

/etc/postfix/master.cf:
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
#   (yes) (yes) (yes) (never) (50)
# ==========================================================================
#smtp   inet n - n - - smtpd
pickup   unix n - y 60 1 pickup
cleanup   unix n - y - 0 cleanup
qmgr   unix n - y 300 1 qmgr
rewrite   unix - - y - - trivial-rewrite
bounce   unix - - y - 0 bounce
defer   unix - - y - 0 bounce
flush   unix n - y 1000? 0 flush
#smtp   unix - - y - - smtp
showq     unix n - y - - showq
error     unix - - y - - error
local   unix - n n - - local
virtual   unix - n n - - virtual
lmtp   unix - - y - - lmtp
tlsmgr   fifo - - n 300 1 tlsmgr

cyrus   unix - n n - - pipe
    flags=R user=cyrus argv=/usr/lib/cyrus/bin/deliver -e -m ${extension}
${user}
uucp   unix - n n - - pipe
  flags=Fqhu 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=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop
$recipient
procmail  unix  -       n       n       -       -       pipe
    flags=R user=cyrus argv=/usr/bin/procmail -t -m USER=${user}
EXT=${extension} /etc/procmailrc

etc/postfix/main.cf:
soft_bounce = yes
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
mail_spool_directory = /var/mail
sendmail_path = /usr/sbin/sendmail
mailq_path = /usr/bin/mailq
newaliases_path = /usr/sbin/sendmail
mail_owner = postfix
default_privs = nobody
mail_name = Postfix on SuSE Linux 8.0 (i386)
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
sender_canonical_maps = hash:/etc/postfix/sender_canonical
canonical_maps = hash:/etc/postfix/canonical
virtual_maps = hash:/etc/postfix/virtual
relocated_maps = hash:/etc/postfix/relocated
transport_maps = hash:/etc/postfix/transport
local_recipient_maps =
debug_peer_level = 2
debugger_command =
  PATH=/usr/bin:/usr/X11R6/bin
  xxgdb $daemon_directory/$process_name $process_id & sleep 5
setgid_group = maildrop
masquerade_exceptions = root
masquerade_domains =
defer_transports =
disable_dns_lookups = no
relayhost =


/etc/MailScanner/MailScanner.conf:
Max Children = 5
Run As User = postfix
Run As Group = postfix
Queue Scan Interval = 5
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
Restart Every = 14400
MTA = postifx
Sendmail = /usr/sbin/sendmail
Sendmail2 = /usr/sbin/sendmail

If this is correct, perhaps it's a owner-problem?



More information about the MailScanner mailing list