Postfix-Konfiguration, Return-Path, etc.

Postfix, QMail, Sendmail, Dovecot, Cyrus, Courier, Anti-Spam
openstream
Posts: 13
Joined: 2005-09-23 13:30
Location: Zürich

Postfix-Konfiguration, Return-Path, etc.

Post by openstream » 2005-09-30 12:34

Ursprünglich hiess es in meiner postfix/main.cf

Code: Select all

mydomain = h609282.local
Da diese mydomain nachher als Return-Path bei vom Servern verschickten Mails wieder auftaucht, bekommt man hin und wieder unliebsame Logfile-Einträge, wie z.B.
Sep 29 02:06:57 myhostname postfix/smtp[12278]: 832E849C0CA: to=<blabla@tiscali.ch>, relay=mail.tiscali.ch[212.40.5.65], delay=1, status=bounced (host mail.tiscali.ch[212.40.5.65] said: 553 <www-data@h609282.local> unable to verify address (in reply to MAIL FROM command))
"Problem erkannt", mydomain wie folgt geändert:

Code: Select all

mydomain = mydomain.ch
Jetzt geht gar nichts mehr :roll:

Wenn ich ein Mail von der Kommandozeile verschicke, sieht das Logfile so aus:

Code: Select all

Sep 30 12:21:33 myhostname postfix/pickup[5109]: 5585449C0C6: uid=0 from=<root>
Sep 30 12:21:33 myhostname postfix/cleanup[5130]: 5585449C0C6: message-id=<20050930102133.5585449C0C6@mail.mydomain.ch>
Sep 30 12:21:33 myhostname postfix/qmgr[5110]: 5585449C0C6: from=<root@mydomain.ch>, size=299, nrcpt=1 (queue active)
Sep 30 12:21:33 myhostname postfix/smtpd[5133]: connect from mydomain.ch[127.0.0.1]
Sep 30 12:21:33 myhostname postfix/trivial-rewrite[5131]: warning: do not list domain mydomain.ch in BOTH mydestination and virtual_mailbox_domains
Sep 30 12:21:33 myhostname postfix/trivial-rewrite[5131]: warning: do not list domain mydomain.ch in BOTH mydestination and virtual_mailbox_domains
Sep 30 12:21:33 myhostname postfix/smtpd[5133]: NOQUEUE: reject: RCPT from mydomain.ch[127.0.0.1]: 550 <nick@mydomain.ch>: Recipient address rejected: User unknown in local recipient table; from=<root@mydomain.ch> to=<nick@mydomain.ch> proto=ESMTP helo=<localhost>
Sep 30 12:21:33 myhostname postfix/smtpd[5133]: disconnect from mydomain.ch[127.0.0.1]
Sep 30 12:21:33 myhostname postfix/smtp[5132]: 5585449C0C6: to=<nick@mydomain.ch>, relay=127.0.0.1[127.0.0.1], delay=0, status=bounced (host 127.0.0.1[127.0.0.1] said: 550 5.1.0 <nick@mydomain.ch>: Recipient address rejected: User unknown in local recipient table (in reply to end of DATA command))
Sep 30 12:21:33 myhostname postfix/cleanup[5130]: B83EB49C0CA: message-id=<20050930102133.B83EB49C0CA@mail.mydomain.ch>
Sep 30 12:21:33 myhostname postfix/qmgr[5110]: B83EB49C0CA: from=<>, size=2259, nrcpt=1 (queue active)
Sep 30 12:21:33 myhostname postfix/trivial-rewrite[5131]: warning: do not list domain mydomain.ch in BOTH mydestination and virtual_mailbox_domains
Sep 30 12:21:33 myhostname postfix/qmgr[5110]: 5585449C0C6: removed
Sep 30 12:21:33 myhostname postfix/local[5136]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Sep 30 12:21:33 myhostname postfix/trivial-rewrite[5131]: warning: do not list domain mydomain.ch in BOTH mydestination and virtual_mailbox_domains
Sep 30 12:21:33 myhostname postfix/local[5136]: B83EB49C0CA: to=<debian@mydomain.ch>, orig_to=<root@mydomain.ch>, relay=local, delay=0, status=bounced (unknown user: "debian")
Sep 30 12:21:33 myhostname postfix/qmgr[5110]: B83EB49C0CA: removed
Wenn ich mir selbst ein Mail mit dem Mail-Client schicke, sieht's so aus:

Code: Select all

Sep 30 12:22:07 myhostname postfix/smtpd[5126]: connect from mail20.bluewin.ch[195.186.19.65]
Sep 30 12:22:07 myhostname postfix/trivial-rewrite[5131]: warning: do not list domain mydomain.ch in BOTH mydestination and virtual_mailbox_domains
Sep 30 12:22:07 myhostname postfix/trivial-rewrite[5131]: warning: do not list domain mydomain.ch in BOTH mydestination and virtual_mailbox_domains
Sep 30 12:22:07 myhostname postfix/smtpd[5126]: NOQUEUE: reject: RCPT from mail20.bluewin.ch[195.186.19.65]: 550 <info@mydomain.ch>: Recipient address rejected: User unknown in local recipient table; from=<nick@mydomain.ch> to=<info@mydomain.ch> proto=ESMTP helo=<mail20.bluewin.ch>
Sep 30 12:22:07 myhostname postfix/smtpd[5126]: disconnect from mail20.bluewin.ch[195.186.19.65]
Sep 30 12:22:07 myhostname postfix/smtpd[5126]: connect from mail20.bluewin.ch[195.186.19.65]
Sep 30 12:22:07 myhostname postfix/smtpd[5126]: NOQUEUE: reject: RCPT from mail20.bluewin.ch[195.186.19.65]: 550 <nick@mydomain.ch>: Recipient address rejected: User unknown in local recipient table; from=<> to=<nick@mydomain.ch> proto=ESMTP helo=<mail20.bluewin.ch>
Sep 30 12:22:07 myhostname postfix/smtpd[5126]: disconnect from mail20.bluewin.ch[195.186.19.65]
Hier also meine Frage: Wie definiere ich einen korrekten Return-Path, ohne dabei Postfix lahm zu legen?

Für ein paar Anregungen wäre ich euch sehr dankbar.

Gruss
Nick

P.S. Wenn ich mydomain von

Code: Select all

mydomain = mydomain.ch
in

Code: Select all

mydomain = local.mydomain.ch
ändere, kann ich wieder Mails verschicken und empfangen, aber dann bouncen die Mails wieder, die direkt vom Server verschickt werden. Scheisse! :evil:

adjustman
Posts: 1132
Joined: 2003-03-26 23:29
Location: SA

Re: Postfix-Konfiguration, Return-Path, etc.

Post by adjustman » 2005-09-30 23:45

postconf -n bitte :wink:

openstream
Posts: 13
Joined: 2005-09-23 13:30
Location: Zürich

Re: Postfix-Konfiguration, Return-Path, etc.

Post by openstream » 2005-10-01 00:28

Code: Select all

alias_database = hash:/etc/aliases
append_at_myorigin = yes
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/lib/postfix
inet_interfaces = all
local_destination_recipient_limit = 1
local_recipient_maps = unix:passwd.byname $alias_database
local_transport = local
mail_spool_directory = /var/mail
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mydestination = $myhostname, $mydomain
mydomain = local.mydomain.ch
myhostname = mail.mydomain.ch
mynetworks_style = host
myorigin = $mydomain
setgid_group = postdrop
smtpd_banner = $myhostname VHCS2 2.4 Spartacus Managed ESMTP 2.4.5.1
smtpd_recipient_restrictions = permit_sasl_authenticated,   permit_mynetworks,   reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = vhcs.net
smtpd_sasl_security_options = noanonymous
transport_maps = hash:/etc/postfix/vhcs2/transport
virtual_alias_maps = hash:/etc/postfix/vhcs2/aliases
virtual_gid_maps = static:8
virtual_mailbox_base = /var/mail/virtual
virtual_mailbox_domains = hash:/etc/postfix/vhcs2/domains
virtual_mailbox_limit = 0
virtual_mailbox_maps = hash:/etc/postfix/vhcs2/mailboxes
virtual_minimum_uid = 1000
virtual_transport = virtual
virtual_uid_maps = static:1000