lokale Zustellung funzt nicht mehr

J

Jim Beam

Grünschnabel
Hallo erst mal,

habe seit dem letzten Debianupgrade das Problem dass lokale Mails nicht mehr ordentlich zugestellt werden. Hier ein Auszug aus der maillog:

May 7 13:16:47 uget postfix/pickup[26363]: BB0D32BC0EA: uid=0 from=<root>
May 7 13:16:47 uget postfix/cleanup[26373]: BB0D32BC0EA: hold: header Received: by mail.uget.de (Postfix, from userid 0)??id BB0D32BC0EA; Sun, 7 May 2006 13:16:47 +0200 (CEST) from local; from=<root>
May 7 13:16:47 uget postfix/cleanup[26373]: BB0D32BC0EA: message-id=<20060507111647.BB0D32BC0EA@mail.uget.de>
May 7 13:16:49 uget postfix/smtpd[26369]: connect from ALille-153-1-85-225.w86-215.abo.wanadoo.fr[86.215.192.225]
May 7 13:16:50 uget MailScanner[12556]: New Batch: Scanning 1 messages, 10642 bytes
May 7 13:16:50 uget MailScanner[12556]: Virus and Content Scanning: Starting
May 7 13:16:50 uget MailScanner[12556]: Requeue: BB0D32BC0EA.C4181 to 634082BC0CA
May 7 13:16:50 uget postfix/qmgr[26364]: 634082BC0CA: from=<root>, size=10565, nrcpt=1 (queue active)
May 7 13:16:50 uget amavis[26245]: (26245-01) WARN: address modified (sender): <root> -> <root@>
May 7 13:16:50 uget amavis[26245]: (26245-01) WARN: address modified (recip): <postmaster> -> <postmaster@>
May 7 13:16:50 uget MailScanner[12556]: Uninfected: Delivered 1 messages
May 7 13:16:50 uget MailScanner[12556]: Batch (1 messages) processed in 0.21 seconds
May 7 13:16:50 uget MailScanner[12556]: Logging message BB0D32BC0EA.C4181 to SQL
May 7 13:16:50 uget MailScanner[14792]: BB0D32BC0EA.C4181: Logged to MailWatch SQL
May 7 13:16:50 uget MailScanner[12556]: "Always Looked Up Last" took 0.00 seconds
May 7 13:16:50 uget postfix/smtpd[26392]: connect from localhost[127.0.0.1]
May 7 13:16:50 uget postfix/smtpd[26392]: warning: Illegal address syntax from localhost[127.0.0.1] in MAIL command: root@
May 7 13:16:50 uget postfix/smtpd[26392]: disconnect from localhost[127.0.0.1]
May 7 13:16:50 uget amavis[26245]: (26245-01) (!) FWD via SMTP: <root@> -> <postmaster@>, 501 5.5.0 Rejected by MTA([127.0.0.1]:10025): 501 Bad address syntax, id=26245-01
May 7 13:16:50 uget postfix/smtpd[26392]: connect from localhost[127.0.0.1]
May 7 13:16:50 uget postfix/smtpd[26392]: warning: Illegal address syntax from localhost[127.0.0.1] in RCPT command: root@
May 7 13:16:50 uget amavis[26245]: (26245-01) (!) mail_via_smtp: DATA skipped, no valid recips, 0
May 7 13:16:50 uget postfix/smtpd[26392]: disconnect from localhost[127.0.0.1]
May 7 13:16:50 uget amavis[26245]: (26245-01) (!) SEND via SMTP: <> -> <root@>, 501 5.6.0 Failed, id=26245-01, from MTA([127.0.0.1]:10025): 501 5.1.0 Failed, id=26245-01, from MTA([127.0.0.1]:10025): 501 Bad address syntax
May 7 13:16:50 uget amavis[26245]: (26245-01) (!) NOTICE: UNABLE TO SEND DSN to <root@>: 501 5.1.0 Failed, id=26245-01, from MTA([127.0.0.1]:10025): 501 Bad address syntax
May 7 13:16:50 uget amavis[26245]: (26245-01) Blocked CLEAN, <root@> -> <postmaster@>, Message-ID: <20060507111647.BB0D32BC0EA@mail.uget.de>, mail_id: E7eQ6nQwnADZ, Hits: -, 156 ms
May 7 13:16:50 uget postfix/smtp[26389]: 634082BC0CA: to=<postmaster>, relay=127.0.0.1[127.0.0.1], delay=3, status=bounced (host 127.0.0.1[127.0.0.1] said: 501 5.5.0 Rejected by MTA([127.0.0.1]:10025): 501 Bad address syntax, id=26245-01 (in reply to end of DATA command))
May 7 13:16:50 uget postfix/cleanup[26406]: 79B552BC0FB: message-id=<20060507111650.79B552BC0FB@mail.uget.de>
May 7 13:16:50 uget postfix/qmgr[26364]: 79B552BC0FB: from=<>, size=12378, nrcpt=1 (queue active)
May 7 13:16:50 uget postfix/qmgr[26364]: 634082BC0CA: removed
May 7 13:16:50 uget postfix/local[26941]: 79B552BC0FB: to=<master@uget.de>, orig_to=<root>, relay=local, delay=0, status=sent (delivered to command: /usr/bin/procmail)
May 7 13:16:50 uget postfix/qmgr[26364]: 79B552BC0FB: removed

Bin schon seit 2 Tagen am Googeln, aber wie´s scheint bin ich der einzige mit diesem Problem X( X(

Hier noch die main.cf

# See /usr/share/postfix/main.cf.dist for a commented, more complete version

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

myorigin = $mydomain
mydestination = /etc/postfix/local_domains
header_checks = regexp:/etc/postfix/header_checks
mynetworks = 127.0.0.0/8 #192.168/16
mynetworks_style = host
inet_interfaces = all
mailbox_command =
mailbox_size_limit = 0
recipient_delimiter = +
append_at_myorigin = no
myhostname = mail.uget.de
smtp_skip_4xx_greeting = yes

virtual_alias_domains =
mysql:/etc/postfix/mysql_virtual_email2email.cf
virtual_mailbox_maps = mysql:/etc/postfix/sql/vmailbox
virtual_mailbox_base = /home/vmail
virtual_minimum_uid = 5000
virtual_maps = mysql:/etc/postfix/sql/virtual, hash:/var/lib/mailman/data/virtual-mailman
transport_maps = mysql:/etc/postfix/sql/transport

virtual_uid_maps = static:5000
virtual_gid_maps = static:5000

local_recipient_maps = unix:passwd.byname $alias_maps $virtual_mailbox_maps
fallback_transport = virtual
relay_domains = $transport_maps

home_mailbox = Maildir/
mailbox_command = /usr/bin/procmail
disable_vrfy_command = yes
owner_request_special = no

content_filter = amavis:[127.0.0.1]:10024

smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,permit_auth_destination,reject_unauth_destination,reject_unauth_pipelining,reject_non_fqdn_recipient,reject_non_fqdn_sender,reject_invalid_hostname

smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_security_options = noanonymous
smtpd_use_tls = yes
smtpd_sasl_local_domain =
unknown_local_recipient_reject_code = 550
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
disable_vrfy_command = yes
ignore_mx_lookup_error = yes

hash_queue_depth = 2

Hat irgendjemand eine Idee wo der Fehler liegen könnte? Vor dem Upgrade lief alles bestens, an den conf´s hab ich während dem upgrade nichts verändert.
 
Code:
myorigin = $mydomain
Wo ist $mydomain definiert? Da fehlt ein 'mydomain = blabla'. Daher der Fehler "Illegal address syntax from localhost[127.0.0.1] in MAIL command: root@". Es kann myorigin an den Absender angehaengt werden, weil das leer ist.
 
Hallo theton,

danke erst mal für deine Antwort.

Habe noch ein mydomain = uget.de in die main.cf eingebaut und Postfix neu gestartet. Das Problem besteht aber nach wie vor. Irgendwo wird die lokale Adresse modifiziert

May 7 17:46:50 uget amavis[14519]: (14519-05) WARN: address modified (sender): <root> -> <root@>
May 7 17:46:50 uget amavis[14519]: (14519-05) WARN: address modified (recip): <root> -> <root@>

ich komm aber nicht dahinter welches Prog dafür verantwortlich ist. Hab mir schon sämtliche conf´s angeschaut (Postfix, Amavis, Mailscanner, Spamassassin), allerdings nirgends was gefunden ....
 
Sieht irgendwie nach einem nicht gesetzten hostnamen aus. Kann das?
 
Hallo Bâshgob,

der Hostname ist gesetzt (myhostname = mail.uget.de). Ebenfalls existiert eine Datei "local-domains" mit dem Eintrag "localhost". Es funktioniert ja auch alles einwandfrei ausser den Systemmails. Die werden irgendwo modifiziert und kommen schlussendlich über den MAILER-DAEMON wieder zurück.

Hier noch der Auszug aus der Mail:

For further assistance, please send mail to <postmaster>

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

The Postfix program

<root>: host 127.0.0.1[127.0.0.1] said: 501 5.5.0 Rejected by
MTA([127.0.0.1]:10025): 501 Bad address syntax, id=14519-05 (in reply to
end of DATA command)

Final-Recipient: rfc822; root
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; host 127.0.0.1[127.0.0.1] said: 501 5.5.0 Rejected
by MTA([127.0.0.1]:10025): 501 Bad address syntax, id=14519-05 (in reply to
end of DATA command)

An: root
Von: logwatch
Betreff: Logwatch for uget.de (Linux)
Datum: Sun, 7 May 2006 17:46:48 +0200 (CEST)
 
Dann wuerde ich ja als myorigin auch /etc/postfix/local_domains setzen und nicht $mydomain. Warum glaubt mir nur keiner, wenn ich sage, dass es daran liegt, dass myorigin einen leeren Wert hat, da $mydomain nicht definiert ist? ;)

Nachtrag: Wobei, es koennte auch an falschen Header-Checks liegen. *gruebel* Ich wuerde die mal durchgehen.
 
Hallo theton,

hab myorigin auf /etc/..... gesetzt, geändert hat es allerdings nichts. Auch wenn ich einen Domainnamen direkt hinter myorigin schreibe bleibt das Problem bestehen. Im Header-Check ist nur 1 Zeile drin

/^Received:/ HOLD

daran kanns auch nicht liegen.

Logauszug (Postfix natürlich reloaded und sicherheitshalber auch neu gestartet)

May 7 22:54:49 uget postfix/pickup[3844]: 785692BC187: uid=0 from=<root>
May 7 22:54:49 uget postfix/cleanup[3870]: 785692BC187: hold: header Received: by mail.uget.de (Postfix, from userid 0)??id 785692BC187; Sun, 7 May 2006 22:54:49 +0200 (CEST) from local; from=<root>
May 7 22:54:49 uget postfix/cleanup[3870]: 785692BC187: message-id=<20060507205449.785692BC187@mail.uget.de>
May 7 22:54:51 uget MailScanner[30885]: New Batch: Scanning 1 messages, 10624 bytes
May 7 22:54:51 uget MailScanner[30885]: Virus and Content Scanning: Starting
May 7 22:54:51 uget MailScanner[30885]: Requeue: 785692BC187.1B6FE to ACA942BC186
May 7 22:54:51 uget postfix/qmgr[3845]: ACA942BC186: from=<root>, size=10559, nrcpt=1 (queue active)
May 7 22:54:51 uget amavis[5000]: (05000-03) WARN: address modified (sender): <root> -> <root@>
May 7 22:54:51 uget amavis[5000]: (05000-03) WARN: address modified (recip): <root> -> <root@>
May 7 22:54:51 uget MailScanner[30885]: Uninfected: Delivered 1 messages
May 7 22:54:51 uget MailScanner[30885]: Batch (1 messages) processed in 0.21 seconds
May 7 22:54:51 uget MailScanner[30885]: Logging message 785692BC187.1B6FE to SQL
May 7 22:54:51 uget MailScanner[30885]: "Always Looked Up Last" took 0.00 seconds
May 7 22:54:51 uget MailScanner[1355]: 785692BC187.1B6FE: Logged to MailWatch SQL
May 7 22:54:51 uget postfix/smtpd[5089]: connect from localhost[127.0.0.1]
May 7 22:54:51 uget postfix/smtpd[5089]: warning: Illegal address syntax from localhost[127.0.0.1] in MAIL command: root@
May 7 22:54:51 uget postfix/smtpd[5089]: disconnect from localhost[127.0.0.1]
May 7 22:54:51 uget amavis[5000]: (05000-03) (!) FWD via SMTP: <root@> -> <root@>, 501 5.5.0 Rejected by MTA([127.0.0.1]:10025): 501 Bad address syntax, id=05000-03
May 7 22:54:51 uget postfix/smtpd[5089]: connect from localhost[127.0.0.1]
May 7 22:54:51 uget postfix/smtpd[5089]: warning: Illegal address syntax from localhost[127.0.0.1] in RCPT command: root@
May 7 22:54:51 uget amavis[5000]: (05000-03) (!) mail_via_smtp: DATA skipped, no valid recips, 0
May 7 22:54:51 uget postfix/smtpd[5089]: disconnect from localhost[127.0.0.1]
May 7 22:54:51 uget amavis[5000]: (05000-03) (!) SEND via SMTP: <> -> <root@>, 501 5.6.0 Failed, id=05000-03, from MTA([127.0.0.1]:10025): 501 5.1.0 Failed, id=05000-03, from MTA([127.0.0.1]:10025): 501 Bad address syntax
May 7 22:54:51 uget amavis[5000]: (05000-03) (!) NOTICE: UNABLE TO SEND DSN to <root@>: 501 5.1.0 Failed, id=05000-03, from MTA([127.0.0.1]:10025): 501 Bad address syntax
May 7 22:54:51 uget amavis[5000]: (05000-03) Blocked CLEAN, <root@> -> <root@>, Message-ID: <20060507205449.785692BC187@mail.uget.de>, mail_id: K5XKu37EHuXo, Hits: -, 146 ms
May 7 22:54:51 uget postfix/smtp[5087]: ACA942BC186: to=<root>, relay=127.0.0.1[127.0.0.1], delay=2, status=bounced (host 127.0.0.1[127.0.0.1] said: 501 5.5.0 Rejected by MTA([127.0.0.1]:10025): 501 Bad address syntax, id=05000-03 (in reply to end of DATA command))

Kann einen irre machen ...... :think: X(
 

Ähnliche Themen

CentOS 7.2: Mailversand funktioniert obwohl nicht definiert

Autostart von X mit google-chrome durch systemd

Mein Server versendet SPAM in Massen

Apache /var/www zu /home/ich/www wechseln

dovecot und postfix Konfiguration Problem

Zurück
Oben