flachskopf
22.07.03, 10:48
Hallo Wissender,
Zum wiederholten Mal zwingt mich mein Mailserver zu einem Posting. Amavis will einfach nicht funktionieren
Ich habe Suse 8.1 am Laufen. Im Moment funktioniert das Mailabholen mit fetchmail über procmail mit spamassassin ohne Probleme. Auch das Versenden mit postfix klappt. Auch die Installation von AntiVir verlief reibungslos.
Der Spaß geht erst los, wenn ich versuche amavis einzubinden.
Viele HowTo's geben unterschiedliche Auskünfte, wie es zu machen ist. Im Moment bastele ich an zwei Konfigurationen, die aber beide nicht funktionieren.
Bei der ersten Version steht in meiner postfix main.cf: content_filter = amavis:
Beim Versuch eine Mail zu verschicken, steht in der /var/log/mail:
Jul 22 11:13:49 gandalf postfix/smtpd[3643]: connect from localhost[127.0.0.1]
Jul 22 11:13:49 gandalf postfix/smtpd[3643]: 708A025253: client=localhost[127.0.0.1]
Jul 22 11:13:49 gandalf postfix/pickup[3639]: 85678288A2: uid=0 from=<root@gandalf.meinhomeserver.de>
Jul 22 11:13:49 gandalf postfix/cleanup[3645]: 85678288A2: message-id=<Pine.LNX.4.44.0307221113270.3642-100000@gandalf.meinhomeserver.de>
Jul 22 11:13:49 gandalf postfix/smtpd[3643]: disconnect from localhost[127.0.0.1]
Jul 22 11:13:49 gandalf postfix/qmgr[3640]: 85678288A2: from=<daniel@zuhause.de>, size=576, nrcpt=1 (queue active)
Jul 22 11:13:49 gandalf postfix/qmgr[3640]: warning: connect to transport amavis: Connection refused
...und nix geht. Die Mail landet im Nirwana.
Die andere Variante ist: content_filter = vscan:
Dann erscheint beim Versandversuch:
Jul 22 11:15:16 gandalf postfix/qmgr[3672]: 85678288A2: from=<daniel@zuhause.de>, size=576, nrcpt=1 (queue active)
Jul 22 11:15:16 gandalf postfix/qmgr[3672]: warning: connect to transport amavis: Connection refused
Jul 22 11:15:40 gandalf postfix/smtpd[3675]: connect from localhost[127.0.0.1]
Jul 22 11:15:40 gandalf postfix/smtpd[3675]: 7032B25278: client=localhost[127.0.0.1]
Jul 22 11:15:40 gandalf postfix/smtpd[3675]: disconnect from localhost[127.0.0.1]
Jul 22 11:15:40 gandalf postfix/pickup[3671]: 9B8092527F: uid=0 from=<root@gandalf.meinhomeserver.de>
Jul 22 11:15:40 gandalf postfix/cleanup[3677]: 9B8092527F: message-id=<Pine.LNX.4.44.0307221115200.3674-100000@gandalf.flachshaar.de>
Jul 22 11:15:40 gandalf postfix/qmgr[3672]: 9B8092527F: from=<daniel@zuhause.de>, size=593, nrcpt=1 (queue active)
Jul 22 11:15:43 gandalf amavis[3679]: starting. amavis 0.3.12pre8 Wed Sep 11 11:18:05 UTC 2002
Jul 22 11:15:44 gandalf postfix/smtpd[3682]: connect from localhost[127.0.0.1]
Jul 22 11:15:44 gandalf postfix/smtpd[3682]: 2612B288C5: client=localhost[127.0.0.1]
Jul 22 11:15:44 gandalf postfix/cleanup[3677]: 2612B288C5: message-id=<Pine.LNX.4.44.0307221115200.3674-100000@gandalf.meinhomeserver.de>
Jul 22 11:15:44 gandalf postfix/qmgr[3672]: 2612B288C5: from=<daniel@zuhause.de>, size=810, nrcpt=1 (queue active)
Jul 22 11:15:44 gandalf postfix/smtpd[3682]: disconnect from localhost[127.0.0.1]
Jul 22 11:15:44 gandalf postfix/pipe[3678]: 9B8092527F: to=<flachskopf@web.de>, relay=vscan, delay=4, status=sent (gandalf.flachshaar.de)
Jul 22 11:15:45 gandalf postfix/pipe[3683]: 2612B288C5: to=<flachskopf@web.de>, relay=procmail, delay=1, status=sent (spamfilter)
...auch das geht nicht. Die Mail landet in /var/mail/nobody
Alle eingehenden Mails werden von amavis ignoriert und ausgeliefert, auch wenn sie ein Virus (eicar.com) enthalten.
Da ich Anfänger bin, weiß ich allein nicht mehr, wo ich nach dem Fehler suchen soll. Die vielen Tutorials, die ich gelesen habe, schaffen nur noch mehr Verwirrung, da in jedem etwas anderes steht.
Ich poste noch meine master.cf und meine main.cf und bin Dir unglaublich dankbar, wenn Du mich vor der Verzweiflung rettest.
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
mail_owner = postfix
#default_privs = nobody
myhostname = daniel.meinhomeserver.de
mydomain = meinhomeserver.de
myorigin = $myhostname
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, $mydomain,
#mynetworks_style = class
#mynetworks_style = subnet
#mynetworks_style = host
mynetworks = 192.168.0.0/24, 127.0.0.1/8
#relay_domains = $mydestination
#relayhost = $mydomain
#local_recipient_maps = $alias_maps unixasswd.byname
#in_flow_delay = 1s
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
#recipient_delimiter = +
#home_mailbox = Mailbox
mail_spool_directory = /var/mail
mailbox_command = /usr/bin/procmail
#mailbox_transport = lmtp:unix:/file/name
#fallback_transport = lmtp:unix:/file/name
#luser_relay = $user@other.host
#header_checks = regexp:/etc/postfix/header_checks
#fast_flush_domains = $relay_domains
#smtpd_banner = $myhostname ESMTP $mail_name
#local_destination_concurrency_limit = 2
#default_destination_concurrency_limit = 10
debug_peer_level = 2
#debug_peer_list = 127.0.0.1
debugger_command =
PATH=/usr/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/sbin/sendmail
mailq_path = /usr/bin/mailq
setgid_group = maildrop
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/packages/postfix/samples
canonical_maps = hash:/etc/postfix/canonical
content_filter = vscan: (oder eben :amavis)
smtp inet n - n - - smtpd
#smtps inet n - n - - smtpd -o content_filter=vscan:
# -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission inet n - n - - smtpd
# -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
#628 inet n - n - - qmqpd
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - n 300 1 nqmgr
#tlsmgr fifo - - n 300 1 tlsmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
flush unix n - n 1000? 0 flush
smtp unix - - n - - smtp
showq unix n - n - - showq
error unix - - n - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
localhost:10025 inet n - n - - smtpd -o content_filter=procmail:spamfilter
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
vscan unix - n n - 10 pipe user=vscan argv=/usr/sbin/amavis ${sender} ${recipient}
procmail unix - n n - - pipe flags=R user=nobody argv=/usr/bin/procmail -t -m /etc/procmailrc ${sender} ${recipient}
Gruß, Flachskopf
Zum wiederholten Mal zwingt mich mein Mailserver zu einem Posting. Amavis will einfach nicht funktionieren
Ich habe Suse 8.1 am Laufen. Im Moment funktioniert das Mailabholen mit fetchmail über procmail mit spamassassin ohne Probleme. Auch das Versenden mit postfix klappt. Auch die Installation von AntiVir verlief reibungslos.
Der Spaß geht erst los, wenn ich versuche amavis einzubinden.
Viele HowTo's geben unterschiedliche Auskünfte, wie es zu machen ist. Im Moment bastele ich an zwei Konfigurationen, die aber beide nicht funktionieren.
Bei der ersten Version steht in meiner postfix main.cf: content_filter = amavis:
Beim Versuch eine Mail zu verschicken, steht in der /var/log/mail:
Jul 22 11:13:49 gandalf postfix/smtpd[3643]: connect from localhost[127.0.0.1]
Jul 22 11:13:49 gandalf postfix/smtpd[3643]: 708A025253: client=localhost[127.0.0.1]
Jul 22 11:13:49 gandalf postfix/pickup[3639]: 85678288A2: uid=0 from=<root@gandalf.meinhomeserver.de>
Jul 22 11:13:49 gandalf postfix/cleanup[3645]: 85678288A2: message-id=<Pine.LNX.4.44.0307221113270.3642-100000@gandalf.meinhomeserver.de>
Jul 22 11:13:49 gandalf postfix/smtpd[3643]: disconnect from localhost[127.0.0.1]
Jul 22 11:13:49 gandalf postfix/qmgr[3640]: 85678288A2: from=<daniel@zuhause.de>, size=576, nrcpt=1 (queue active)
Jul 22 11:13:49 gandalf postfix/qmgr[3640]: warning: connect to transport amavis: Connection refused
...und nix geht. Die Mail landet im Nirwana.
Die andere Variante ist: content_filter = vscan:
Dann erscheint beim Versandversuch:
Jul 22 11:15:16 gandalf postfix/qmgr[3672]: 85678288A2: from=<daniel@zuhause.de>, size=576, nrcpt=1 (queue active)
Jul 22 11:15:16 gandalf postfix/qmgr[3672]: warning: connect to transport amavis: Connection refused
Jul 22 11:15:40 gandalf postfix/smtpd[3675]: connect from localhost[127.0.0.1]
Jul 22 11:15:40 gandalf postfix/smtpd[3675]: 7032B25278: client=localhost[127.0.0.1]
Jul 22 11:15:40 gandalf postfix/smtpd[3675]: disconnect from localhost[127.0.0.1]
Jul 22 11:15:40 gandalf postfix/pickup[3671]: 9B8092527F: uid=0 from=<root@gandalf.meinhomeserver.de>
Jul 22 11:15:40 gandalf postfix/cleanup[3677]: 9B8092527F: message-id=<Pine.LNX.4.44.0307221115200.3674-100000@gandalf.flachshaar.de>
Jul 22 11:15:40 gandalf postfix/qmgr[3672]: 9B8092527F: from=<daniel@zuhause.de>, size=593, nrcpt=1 (queue active)
Jul 22 11:15:43 gandalf amavis[3679]: starting. amavis 0.3.12pre8 Wed Sep 11 11:18:05 UTC 2002
Jul 22 11:15:44 gandalf postfix/smtpd[3682]: connect from localhost[127.0.0.1]
Jul 22 11:15:44 gandalf postfix/smtpd[3682]: 2612B288C5: client=localhost[127.0.0.1]
Jul 22 11:15:44 gandalf postfix/cleanup[3677]: 2612B288C5: message-id=<Pine.LNX.4.44.0307221115200.3674-100000@gandalf.meinhomeserver.de>
Jul 22 11:15:44 gandalf postfix/qmgr[3672]: 2612B288C5: from=<daniel@zuhause.de>, size=810, nrcpt=1 (queue active)
Jul 22 11:15:44 gandalf postfix/smtpd[3682]: disconnect from localhost[127.0.0.1]
Jul 22 11:15:44 gandalf postfix/pipe[3678]: 9B8092527F: to=<flachskopf@web.de>, relay=vscan, delay=4, status=sent (gandalf.flachshaar.de)
Jul 22 11:15:45 gandalf postfix/pipe[3683]: 2612B288C5: to=<flachskopf@web.de>, relay=procmail, delay=1, status=sent (spamfilter)
...auch das geht nicht. Die Mail landet in /var/mail/nobody
Alle eingehenden Mails werden von amavis ignoriert und ausgeliefert, auch wenn sie ein Virus (eicar.com) enthalten.
Da ich Anfänger bin, weiß ich allein nicht mehr, wo ich nach dem Fehler suchen soll. Die vielen Tutorials, die ich gelesen habe, schaffen nur noch mehr Verwirrung, da in jedem etwas anderes steht.
Ich poste noch meine master.cf und meine main.cf und bin Dir unglaublich dankbar, wenn Du mich vor der Verzweiflung rettest.
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
mail_owner = postfix
#default_privs = nobody
myhostname = daniel.meinhomeserver.de
mydomain = meinhomeserver.de
myorigin = $myhostname
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, $mydomain,
#mynetworks_style = class
#mynetworks_style = subnet
#mynetworks_style = host
mynetworks = 192.168.0.0/24, 127.0.0.1/8
#relay_domains = $mydestination
#relayhost = $mydomain
#local_recipient_maps = $alias_maps unixasswd.byname
#in_flow_delay = 1s
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
#recipient_delimiter = +
#home_mailbox = Mailbox
mail_spool_directory = /var/mail
mailbox_command = /usr/bin/procmail
#mailbox_transport = lmtp:unix:/file/name
#fallback_transport = lmtp:unix:/file/name
#luser_relay = $user@other.host
#header_checks = regexp:/etc/postfix/header_checks
#fast_flush_domains = $relay_domains
#smtpd_banner = $myhostname ESMTP $mail_name
#local_destination_concurrency_limit = 2
#default_destination_concurrency_limit = 10
debug_peer_level = 2
#debug_peer_list = 127.0.0.1
debugger_command =
PATH=/usr/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/sbin/sendmail
mailq_path = /usr/bin/mailq
setgid_group = maildrop
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/packages/postfix/samples
canonical_maps = hash:/etc/postfix/canonical
content_filter = vscan: (oder eben :amavis)
smtp inet n - n - - smtpd
#smtps inet n - n - - smtpd -o content_filter=vscan:
# -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission inet n - n - - smtpd
# -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
#628 inet n - n - - qmqpd
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - n 300 1 nqmgr
#tlsmgr fifo - - n 300 1 tlsmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
flush unix n - n 1000? 0 flush
smtp unix - - n - - smtp
showq unix n - n - - showq
error unix - - n - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
localhost:10025 inet n - n - - smtpd -o content_filter=procmail:spamfilter
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
vscan unix - n n - 10 pipe user=vscan argv=/usr/sbin/amavis ${sender} ${recipient}
procmail unix - n n - - pipe flags=R user=nobody argv=/usr/bin/procmail -t -m /etc/procmailrc ${sender} ${recipient}
Gruß, Flachskopf