Probleme mit Postfix, amavis und co.
Hallo,
ich bin gestern (weil ich auf eine Mail gewartet habe)
mal durch mein mail-logfile gegangen und siehe da: die
Mail war da! Zumindest ganz kurz!!
Aber warum so komisch? Hier der Auszug aus dem Logfile:
(Zeile nicht umgebrochen!)
--- cut here ---
Sep 6 12:23:47 linux postfix/smtpd[13438]: connect from localhost[127.0.0.1]
Sep 6 12:23:47 linux postfix/smtpd[13438]: 384F514BA74: client=localhost[127.0.0.1]
Sep 6 12:23:47 linux postfix/cleanup[13442]: 384F514BA74: message-id=<431D5CA5.000001.00248@FPOLDI-B6NAR7K0>
Sep 6 12:23:47 linux postfix/qmgr[9930]: 384F514BA74: from=
Moin, Sorry für die Email direkt an Dich ... ;) Hier nochmals für die Liste. Kyek, Andreas, VF-DE scribbled on 07.09.2005 08:38:
Hallo,
--- cut here --- Sep 6 12:23:47 linux postfix/smtpd[13438]: connect from localhost[127.0.0.1] Sep 6 12:23:47 linux postfix/smtpd[13438]: 384F514BA74: client=localhost[127.0.0.1] Sep 6 12:23:47 linux postfix/cleanup[13442]: 384F514BA74: message-id=<431D5CA5.000001.00248@FPOLDI-B6NAR7K0> Sep 6 12:23:47 linux postfix/qmgr[9930]: 384F514BA74: from=
, size=40727, nrcpt=1 (queue active) Sep 6 12:23:47 linux postfix/smtpd[13445]: connect from localhost[127.0.0.1] Sep 6 12:23:47 linux postfix/smtpd[13445]: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 550 : Recipient address rejected: User unknown in local recipient table; from= to=
[...] proto=ESMTP helo=<localhost>
Sep 6 12:23:47 linux amavis[10007]: (10007-07) mail_via_smtp: DATA skipped, no valid recips, 0 Sep 6 12:23:47 linux postfix/smtpd[13445]: disconnect from localhost[127.0.0.1] Sep 6 12:23:47 linux amavis[10007]: (10007-07) mail_via_smtp: 550 5.1.0
: Recipient address rejected: User unknown in local recipient table Sep 6 12:23:47 linux amavis[10007]: (10007-07) Blocked BAD-HEADER, [xx.xx.xx.xx] -> , Message-ID: <431D5CA5.000001.00248@FPOLDI-B6NAR7K0>, Hits: 0.456 Sep 6 12:23:47 linux postfix/smtp[13443]: 384F514BA74: to= , orig_to= , relay=127.0.0.1[127.0.0.1], delay=0, status=bounced (host 1 27.0.0.1[127.0.0.1] said: 550 5.1.0 : Recipient address rejected: User unknown in local recipient table (in reply to end of DATA command)) Sep 6 12:23:47 linux postfix/cleanup[13442]: ED7AC14BA09: message-id=<20050906102347.ED7AC14BA09@linux.privat.loc> Sep 6 12:23:47 linux postfix/qmgr[9930]: ED7AC14BA09: from=<>, size=42822, nrcpt=1 (queue active) Sep 6 12:23:47 linux postfix/qmgr[9930]: 384F514BA74: removed Sep 6 12:23:48 linux postfix/smtp[13443]: warning: mail.gmx.net[213.165.64.20] offered AUTH option multiple times Sep 6 12:23:48 linux postfix/smtp[13443]: ED7AC14BA09: to= , relay=mail.gmx.net[213.165.64.20], delay=1, status=bounced (host mail.gmx.net[213.165.64.20] said: 550 5.1.7 {mp019} This server does not accept an empty envelope from ( http://www.gmx.net/serverrules ) (in reply to MAIL FROM command)) Sep 6 12:23:48 linux postfix/qmgr[9930]: ED7AC14BA09: removed Sep 6 12:23:59 linux postfix/smtpd[13438]: disconnect from localhost[127.0.0.1] --- cut here --- Ich entnehme dem Log, das irgendetwas mit dem Header falsch war (s. Zeile mit "Blocked BAD_HEADER".
Aber wer hängt mir an den lokalen Empfänger dann so was "andi+badh@..."? Den kennt mein Postfix natürlich nicht. Und der Bounce daraufhin schlägt auch fehl.
Das fügt amavisd-new hinzu. Siehe Zeile in /etc/amavisd-new.conf: @addr_extension_bad_header_maps = ('badh'); Da Du dann wohl auch noch: $recipient_delimiter = '+'; gesetzt hast, wird der Empfänger halt entsprechend angepaßt. Um eben jenen Effekt zu umgehen, filtere ich mittlerweile mittels sieve - aber das ist ein anderes Thema ... BTW: das @localhost fügt fetchmail hinzu. Kann geändert werden, wenn im fetchmail Aufruf die Angabe: smtpname mailbox@domain.tld erfolgt.
Wer kann mir erklären, was da so passiert ist? Die Mails werden von meine diversen Mailaccounts via fetchmail abgeholt und dann an die lokalen User verteilt. Das klappt für viele Mails auch gut, aber hier? Hauptproblem ist, das die Mails stillschweigend gelöscht werden und NIRGENDWO zu finden sind.
Würde es reichen, einfach amavis wieder abzuschalten?
Anpassen ... ;)
System ist ein 9.2er mit allen updates.
Danke
Andreas
Gruß Torsten
Kyek, Andreas, VF-DE wrote:
Hallo,
ich bin gestern (weil ich auf eine Mail gewartet habe) mal durch mein mail-logfile gegangen und siehe da: die Mail war da! Zumindest ganz kurz!!
Aber warum so komisch? Hier der Auszug aus dem Logfile: (Zeile nicht umgebrochen!)
--- cut here --- Sep 6 12:23:47 linux postfix/smtpd[13438]: connect from localhost[127.0.0.1] Sep 6 12:23:47 linux postfix/smtpd[13438]: 384F514BA74: client=localhost[127.0.0.1] Sep 6 12:23:47 linux postfix/cleanup[13442]: 384F514BA74: message-id=<431D5CA5.000001.00248@FPOLDI-B6NAR7K0> Sep 6 12:23:47 linux postfix/qmgr[9930]: 384F514BA74: from=
, size=40727, nrcpt=1 (queue active) Sep 6 12:23:47 linux postfix/smtpd[13445]: connect from localhost[127.0.0.1] Sep 6 12:23:47 linux postfix/smtpd[13445]: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 550 : Recipient address rejected: User unknown in local recipient table; from= to= proto=ESMTP helo=<localhost> Sep 6 12:23:47 linux amavis[10007]: (10007-07) mail_via_smtp: DATA skipped, no valid recips, 0 Sep 6 12:23:47 linux postfix/smtpd[13445]: disconnect from localhost[127.0.0.1] Sep 6 12:23:47 linux amavis[10007]: (10007-07) mail_via_smtp: 550 5.1.0 : Recipient address rejected: User unknown in local recipient table Sep 6 12:23:47 linux amavis[10007]: (10007-07) Blocked BAD-HEADER, [xx.xx.xx.xx] -> , Message-ID: <431D5CA5.000001.00248@FPOLDI-B6NAR7K0>, Hits: 0.456 Sep 6 12:23:47 linux postfix/smtp[13443]: 384F514BA74: to= , orig_to= , relay=127.0.0.1[127.0.0.1], delay=0, status=bounced (host 1 27.0.0.1[127.0.0.1] said: 550 5.1.0 : Recipient address rejected: User unknown in local recipient table (in reply to end of DATA command)) Sep 6 12:23:47 linux postfix/cleanup[13442]: ED7AC14BA09: message-id=<20050906102347.ED7AC14BA09@linux.privat.loc> Sep 6 12:23:47 linux postfix/qmgr[9930]: ED7AC14BA09: from=<>, size=42822, nrcpt=1 (queue active) Sep 6 12:23:47 linux postfix/qmgr[9930]: 384F514BA74: removed Sep 6 12:23:48 linux postfix/smtp[13443]: warning: mail.gmx.net[213.165.64.20] offered AUTH option multiple times Sep 6 12:23:48 linux postfix/smtp[13443]: ED7AC14BA09: to= , relay=mail.gmx.net[213.165.64.20], delay=1, status=bounced (host mail.gmx.net[213.165.64.20] said: 550 5.1.7 {mp019} This server does not accept an empty envelope from ( http://www.gmx.net/serverrules ) (in reply to MAIL FROM command)) Sep 6 12:23:48 linux postfix/qmgr[9930]: ED7AC14BA09: removed Sep 6 12:23:59 linux postfix/smtpd[13438]: disconnect from localhost[127.0.0.1] --- cut here --- Ich entnehme dem Log, das irgendetwas mit dem Header falsch war (s. Zeile mit "Blocked BAD_HEADER".
GMX macht gerne so Sachen wie nicht kodierte Umlaute in Headerzeilen, was zu solchen Warnungen führt.
Aber wer hängt mir an den lokalen Empfänger dann so was "andi+badh@..."? Den kennt mein Postfix natürlich nicht. Und der Bounce daraufhin schlägt auch fehl.
Lerne mal dein Amavis kennen. (^-^)
Das ist konfiguriert in /etc/amavisd.conf:
# $addr_extension_virus = 'virus'; # (default is undef, same as empty)
# $addr_extension_spam = 'spam'; # (default is undef, same as empty)
# $addr_extension_banned = 'banned'; # (default is undef, same as empty)
# Delimiter between local part of the recipient address and address extension
# (which can optionally be added, see variables $addr_extension_virus and
# $addr_extension_spam). E.g. recipient address
Wer kann mir erklären, was da so passiert ist? Die Mails werden von meine diversen Mailaccounts via fetchmail abgeholt und dann an die lokalen User verteilt. Das klappt für viele Mails auch gut, aber hier? Hauptproblem ist, das die Mails stillschweigend gelöscht werden und NIRGENDWO zu finden sind.
Back to sender:
Sep 6 12:23:48 linux postfix/smtp[13443]: ED7AC14BA09: to=
, relay=mail.gmx.net[213.165.64.20], delay=1, status=bounced (host mail.gmx.net[213.165.64.20] said: 550 5.1.7 {mp019} This server does not accept an empty envelope from ( http://www.gmx.net/serverrules ) (in reply to MAIL FROM command)) Sep 6 12:23:48 linux postfix/qmgr[9930]: ED7AC14BA09: removed
Sender akzeptiert keine Bounces von dir, Mail verworfen... Du kannst mal nachsehen mit mailq, ob noch etwas in deiner Queue ist, aber ich glaube nicht daran. Sandy
participants (3)
-
Kyek, Andreas, VF-DE
-
Sandy Drobic
-
Torsten Ermlich