Hallo zusammen,
- Debian Squeeze / 6.0 (Problem gabs aber auch schon unter 5.0)
- SysCP 1.4.2.2
- postfix für Dovecot enabled (geht aber ohne Dovecot genausowenig)
komme hier mit meinem Postfix einfach nicht weiter.
Die email-Funktionalität (Mailversand / Empfang9 über TLS geht soweit wunderbar.
Nur wenn ich Weiterleitungen einrichten möchte, bekomme ich folgende Mailer Fehler.
1. Fall:
Wenn ich die Mail von einem Konto auf dem Server an die umgeleitete Adresse versende, kommtd ie Mail kommt zurück mit:
Reporting-MTA: dns; meinserver.yourvserver.net
X-Postfix-Queue-ID: 6934E14D2284
X-Postfix-Sender: rfc822; [B]absender@mail.com[/B]
Arrival-Date: Wed, 9 Mar 2011 13:07:39 +0100 (CET)
Final-Recipient: rfc822; [B]info@vserverdomain.de[/B]
Original-Recipient: rfc822;[B]info@vserverdomain.de[/B]
Action: failed
Status: 5.4.6
Diagnostic-Code: X-Postfix; mail for [B]vserverdomain.de[/B] loops back to myself
Alles anzeigen
2. Fall:
Wenn ich die Mail von ausserhalb an die umgeleitete Adresse versende, wird die Mail verworfen:
Die /var/log/mail.log zeigt folgende Informationen:
Mar 9 14:31:49 myvserver postfix/smtpd[9291]: connect from mailout-de.gmx.net[213.165.64.23]
Mar 9 14:31:49 myvserver postfix/smtpd[9291]: NOQUEUE: reject: RCPT from mailout-de.gmx.net[213.165.64.23]: 554 5.7.1 <[B]info@vserverdomain.de[/B]>: Relay access denied; from=<[B]absender@mail.com[/B]> to=<[B]info@vserverdomain.de[/B]> proto=SMTP helo=<mailout-de.gmx.net>
Mar 9 14:31:49myvserver postfix/smtpd[9291]: disconnect from mailout-de.gmx.net[213.165.64.23]
Seltsam:
- Die Email der erstellten Weiterleitung (weiterleitung@otherdomain.de) erscheint hier nicht als Final-Recipient
- Es gibt einen reject, wenn von ausserhalb versendet wird
Im Mysql Code ist die destination-Adresse jedoch vermerkt:
mysql> select email, email_full, destination from mail_virtual where email LIKE '%vserverdomain%';
+-----------------------+-----------------------+------------------------------------------------------+
| email | email_full | destination |
+-----------------------+-----------------------+------------------------------------------------------+
| info@vserverdomain.de | info@vserverdomain.de | info@vserverdomain.de weiterleitung@otherdomain.de |
+-----------------------+-----------------------+------------------------------------------------------+
Any clue? Bin (noch) nicht so der Postfix-Guru und steh irgendwie auf dem Schlauch. Das Problem scheint jedoch bekannt zu sein und scheint irgendetwas mit den Einstellungen im Postfix main.cf zu tun zu haben.
Seltsam: Vor einer Woche habe ich es zum ersten Mal eingerichtet und es ging (für einen Tag). Nach einem Serverreboot ging es nicht mehr :o
Danke schon mal
Grüsse Axel
Achso, die üblichen Verdächtigen fehlen noch
[B]/etc/postfix# cat master.cf[/B]
#
# Postfix master process configuration file. For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - - - - smtpd
# Submission port 587 aktivieren
submission inet n - n - - smtpd
-o smtpd_enforce_tls=yes
-o smtpd_sasl_auth_enable=yes
-o smtpd_client_restrictions=permit_sasl_authenticated,reject
#smtps inet n - - - - smtpd
# -o smtpd_tls_wrappermode=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#628 inet n - - - - qmqpd
pickup fifo n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - - 300 1 oqmgr
tlsmgr unix - - - 1000? 1 tlsmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
trace unix - - - - 0 bounce
verify unix - - - - 1 verify
flush unix n - - 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - - - - smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - - - - smtp
-o fallback_relay=
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - - - - showq
error unix - - - - - error
discard unix - - - - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - - - - lmtp
anvil unix - - - - 1 anvil
scache unix - - - - 1 scache
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent. See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
#
# See the Postfix UUCP_README file for configuration details.
#
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
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=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix - n n - 2 pipe
flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
mailman unix - n n - - pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}
dovecot unix - n n - - pipe
flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -d ${recipient}
retry unix - - - - - error
Alles anzeigen
/etc/postfix# cat sasl/smtpd.conf
pwcheck_method: auxprop
auxprop_plugin: sql
mech_list: plain login cram-md5 digest-md5
sql_engine: mysql
sql_hostnames: localhost
sql_user: syscp
sql_passwd: mysycppass
sql_database: syscp
sql_select: select password from mail_users where username='%u@%r'
[B]/etc/postfix# cat main.cf[/B]
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
append_dot_mydomain = no
myhostname = meinvserver.yourvserver.net
mydomain = meinvserver.yourvserver.net
mydestination = localhost.$mydomain, localhost, $myhostname, $mydomain
mynetworks = 127.0.0.0/8
alias_maps = $alias_database
virtual_mailbox_base = /var/kunden/mail/
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual_mailbox_maps.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual_mailbox_domains.cf
virtual_alias_domains =
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual_alias_maps.cf
virtual_uid_maps = static:2000
virtual_gid_maps = static:2000
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination
broken_sasl_auth_clients = yes
maps_rbl_domains = relays.ordb.org
smtp_recipient_restrictions = reject_maps_rbl, reject_unauth_destination, reject_unauth_pipelining
smtp_client_restrictions = reject_maps_rbl, reject_unauth_destination, reject_unauth_pipelining
smtp_sender_restrictions = reject_maps_rbl, reject_unauth_destination, reject_unauth_pipelining, reject_unknown_sender_domain, reject_non_fqdn_sender, reject_unknown_client, reject_non_fqdn_hostname
smtpd_tls_cert_file = /etc/postfix/mail.cert
smtpd_tls_key_file = /etc/postfix/mail.key
smtpd_use_tls = yes
smtpd_enforce_tls = no
smtpd_tls_auth_only = no
Alles anzeigen
[B]/etc/postfix# cat mysql-virtual_alias_maps.cf[/B]
user = syscp
password = mysycppass
dbname = syscp
table = mail_virtual
select_field = destination
where_field = email
additional_conditions = and destination <> '' and destination <> ' '
hosts = localhost
[B]/etc/postfix# cat mysql-virtual_mailbox_domains.cf[/B]
user = syscp
password = mysycppass
dbname = syscp
table = panel_domains
select_field = domain
where_field = domain
additional_conditions = and isemaildomain = '1'
hosts = localhost
[B]/etc/postfix# cat mysql-virtual_mailbox_maps.cf[/B]
user = syscp
password = mysyscppass
dbname = syscp
table = mail_users
select_field = maildir
where_field = email
hosts = localhost