[Postfixbuch-users] Fehlermeldung: status=bounced (No recipients specified)
Matthias Güntert
MatzeGuentert at gmx.de
Di Nov 15 22:31:19 CET 2005
Hallo zusammen,
ich habe in der crontab ein miniscript, welches mir mit fetchmail die
Emails abholt. Da ich nur eine Dialin Verbindung habe und das Script
alle 15min läuft, bringt es Fehler wenn ich nicht online bin. Wenn ich
das richtig verstanden habe, müsste dann Cron eine Email an mich bzw.
den mit MAILTO angegebenen Benutzer in der crontab schicken, was es aber
nicht tut. Die Fehlermeldung des crons kommt nur über umwegen an.
hier der Auszug von /etc/mail/aliases
-------------------------------------------------------------
MAILER-DAEMON: postmaster
postmaster: root
toor: root
daemon: root
bin: root
games: root
postfix: root
named: root
ntpd: root
sshd: root
smmsp: root
nobody: root
root: mguentert
operator: mguentert
abuse: mguentert
noc: root
security: root
hostmaster: root
usenet: root
news: usenet
webmaster: root
www: webmaster
uucp: root
ftp: root
--------------------------------------------------------------
hier die Mail die dann an Benutzer mguentert geschickt wird
--------------------------------------------------------------
From: Mail Delivery System <MAILER-DAEMON at meinedomain.com>
To: root at meinedomain.com
Subject: Undelivered Mail Returned to Sender
Date: xxx
This is the Postfix program at host meinedomain.com.
I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.
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
<unknown>: No recipients specified
--------------------------------------------------------------
im angefügten Delivery Report steht dann
--------------------------------------------------------------
Reporting-MTA: dns; meinedomain.com
X-Postfix-Queue-ID: A0F7EC2DFF
X-Postfix-Sender: rfc822; root at meinedomain.com
Arrival-Date: Tue, 15 Nov 2005 03:23:09 +0100 (CET)
Final-Recipient: rfc822; unknown
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; No recipients specified
--------------------------------------------------------------
und in der anfügten Undelivered Message
--------------------------------------------------------------
Received: by meinedomain.com (Postfix, from userid 0) id A0F7EC2DFF;
From: Cron Daemon <root at meinedomain.com>
To: mguentert at meinedomain.com
Subject: Cron <mguentert at proteus> /usr/pkg/bin/email
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/home/mguentert>
X-Cron-Env: <PATH=/usr/bin:/bin:/usr/pkg/bin:/usr/local/bin>
X-Cron-Env: <LOGNAME=mguentert>
X-Cron-Env: <USER=mguentert>
Message-Id: <20051115022309.A0F7EC2DFF at meinedomain.com
Date: Tue, 15 Nov 2005 03:23:09 +0100 (CET)
fetchmail: Query status=2 (SOCKET)
fetchmail: Query status=2 (SOCKET)
fetchmail: Query status=2 (SOCKET)
fetchmail: Query status=2 (SOCKET)
-------------------------------------------------------------
in den logs steht dann:
-------------------------------------------------------------
Nov 15 03:23:09 proteus postfix/pickup[28540]: A0F7EC2DFF: uid=0
from=<root>
Nov 15 03:23:09 proteus postfix/cleanup[15116]: A0F7EC2DFF:
message-id=<20051115022309.A0F7EC2DFF at meinedomain.com>
Nov 15 03:23:09 proteus postfix/cleanup[15116]: A0F7EC2DFF:
to=<unknown>, relay=none, delay=0, status=bounced (No recipients
specified)
-------------------------------------------------------------
-------------------------------------------------------------
proteus ~ # crontab -u mguentert -l
15 * * * * /usr/pkg/bin/email
-------------------------------------------------------------
Das Script tut was es soll
-------------------------------------------------------------
proteus ~ # cat /usr/pkg/bin/email
#!/usr/pkg/bin/bash
/usr/pkg/bin/fetchmail -f /home/mguentert/.fetchmailrc -a -s -m
"/usr/pkg/bin/procmail -d %T"
-------------------------------------------------------------
-------------------------------------------------------------
proteus ~ # postconf -n
alias_database = hash:/etc/mail/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/pkg/sbin
config_directory = /usr/pkg/etc/postfix
daemon_directory = /usr/pkg/libexec/postfix
debug_peer_level = 2
disable_vrfy_command = yes
home_mailbox = Maildir/
mail_owner = postfix
mailbox_command = /usr/pkg/bin/procmail
mailq_path = /usr/pkg/bin/mailq
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain $mydomain
mydomain = meinedomain.com
myhostname = $mydomain
mynetworks = 127.0.0.0/8, 192.168.1.0/24
mynetworks_style = subnet
myorigin = $myhostname
newaliases_path = /usr/pkg/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/examples/postfix
relayhost = [smtprelay.t-online.de]
sample_directory = /usr/share/examples/postfix
sendmail_path = /usr/pkg/sbin/sendmail
setgid_group = maildrop
smtpd_banner = $myhostname ESTMP Go ahead an type your message...
smtpd_recipient_restrictions = permit_sasl_authenticated,
reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_tls_CAfile = /etc/openssl/postfix/cacert.pem
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/openssl/postfix/mail_signed_cert.pem
smtpd_tls_key_file = /etc/openssl/postfix/mailkey.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 450
-------------------------------------------------------------
Sorry wegen der langen Email, war mir nicht sicher welche Information
hier nützlich sein könnten. Bin für jede Hilfe dankbar, ich weiß nicht
wo ich den Fehler noch suchen könnte.
--
Mit freundlichen Grüßen
Matthias Güntert
-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname : signature.asc
Dateityp : application/pgp-signature
Dateigröße : 189 bytes
Beschreibung: This is a digitally signed message part
URL : <https://listi.jpberlin.de/pipermail/postfixbuch-users/attachments/20051115/466f57b2/attachment.asc>
Mehr Informationen über die Mailingliste Postfixbuch-users