Mails zu denen mehrere Weiterleitungen/Postfächer eingestellt sind, kommen nicht an.


Roque09

New Member
Hallo,
ich habe ein kurioses Problem, dass ich bisher nicht lösen konnte, obwohl ich jetzt tagelang in diversen Foren eine Lösung gesucht, aber nicht gefunden habe. Daher hoffe ich nun hier auf einen hilfreichen Tipp.

Folgendes Szenario: Ich richte in Confixx eine E-Mail Adresse [email protected] ein und lasse Mails die an diese Adresse gesendet werden per Confixx weiterleiten an die E-Mail Adresse [email protected]. Dies klappt problemlos.
Wenn ich nun jedoch in Confixx eine E-Mail Adresse [email protected] einrichte und Mails die an diese Adresse gesendet werden an mehr als eine Adresse weiterleiten lasse, also zB an [email protected] und [email protected], dann werden Mails, die an [email protected] gesendet werden, bei keiner der beiden Weiterleitungen zugestellt. Der Absender, der an [email protected] schreibt, erhält per Mail die Meldung:

The Postfix program
<[email protected]> (expanded from <[email protected]>):
host 127.0.0.1[127.0.0.1] said: 550 5.1.0
<[email protected]>: Recipient address rejected: User
unknown in local recipient table (in reply to end of DATA command)

In der etc/postfix/confixx_virtualUsers erscheint richtigerweise der Eintrag:
"confixx-du-245" wird dann in der etc/aliases aufgelöst. Dort steht:

Das ist doch so alles richtig. Auch in der confixx_localDomains gibts keine Fehler. Warum kommen die Mails nicht an? Das Problem tritt übrigens auch dann auf, wenn ich in Confixx nicht die beiden genannten Weiterleitungen einstelle, sondern zB auch bei mehr als einem Zielpostfach (web1p1 und web1p2).

Hier ein paar sonstige Daten zum Server:
/etc$ postconf -n
alias_maps = hash:/etc/aliases
biff = no
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
defer_transports =
disable_dns_lookups = no
html_directory = /usr/share/doc/packages/postfix/html
inet_interfaces = all
inet_protocols = ipv4
mail_owner = postfix
mail_spool_directory = /var/mail
mailbox_command =
mailbox_size_limit = 0
mailbox_transport =
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
masquerade_classes = envelope_sender, header_sender, header_recipient
masquerade_domains =
masquerade_exceptions = root
message_size_limit = 50240000
mydestination = $myhostname, localhost.$mydomain
myhostname = XXX.XXX.de
mynetworks_style = host
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/packages/postfix/README_FILES
relay_clientcerts = hash:/etc/postfix/relay_ccerts
relayhost =
relocated_maps = hash:/etc/postfix/relocated
sample_directory = /usr/share/doc/packages/postfix/samples
sender_canonical_maps = hash:/etc/postfix/sender_canonical
sendmail_path = /usr/sbin/sendmail
setgid_group = maildrop
smtp_sasl_auth_enable = no
smtp_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtp_tls_cert_file = /etc/postfix/ssl/certs/postfixcert.pem
smtp_tls_key_file = /etc/postfix/ssl/certs/postfixkey.pem
smtp_use_tls = yes
smtpd_client_restrictions = permit_sasl_authenticated,
smtpd_helo_required = no
smtpd_helo_restrictions =
smtpd_recipient_restrictions = permit_tls_clientcerts, permit_sasl_authenticated, permit_mynetworks,reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_ask_ccert = yes
smtpd_tls_cert_file = /etc/postfix/ssl/certs/postfixcert.pem
smtpd_tls_key_file = /etc/postfix/ssl/certs/postfixkey.pem
smtpd_tls_received_header = yes
smtpd_use_tls = yes
strict_rfc821_envelopes = no
tls_random_source = dev:/dev/urandom
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550

main.cf:
inet_protocols = ipv4
biff = no
mail_spool_directory = /var/mail
canonical_maps = hash:/etc/postfix/canonical
virtual_maps = hash:/etc/postfix/virtual, hash:/etc/postfix/confixx_virtualUsers, hash:/etc/postfix/confixx_localDomains
relocated_maps = hash:/etc/postfix/relocated
transport_maps = hash:/etc/postfix/transport
sender_canonical_maps = hash:/etc/postfix/sender_canonical
masquerade_exceptions = root
masquerade_classes = envelope_sender, header_sender, header_recipient
myhostname = XXX.XXX.de
program_directory = /usr/lib/postfix
inet_interfaces = all
masquerade_domains =
mydestination = $myhostname, localhost.$mydomain
defer_transports =
disable_dns_lookups = no
relayhost =
mailbox_command =
mailbox_transport =
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_client_restrictions = permit_sasl_authenticated,
smtpd_helo_required = no
smtpd_helo_restrictions =
strict_rfc821_envelopes = no
smtpd_recipient_restrictions = permit_tls_clientcerts, permit_sasl_authenticated, permit_mynetworks,reject_unauth_destination
smtp_sasl_auth_enable = no
smtpd_sasl_auth_enable = yes
smtpd_use_tls = yes
smtp_use_tls = yes
alias_maps = hash:/etc/aliases
mailbox_size_limit = 0
message_size_limit = 50240000
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_cert_file = /etc/postfix/ssl/certs/postfixcert.pem
smtpd_tls_key_file = /etc/postfix/ssl/certs/postfixkey.pem
smtpd_tls_received_header = yes
tls_daemon_random_source = dev:/dev/urandom
tls_random_source = dev:/dev/urandom
relay_clientcerts = hash:/etc/postfix/relay_ccerts
smtpd_tls_ask_ccert = yes
smtp_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtp_tls_cert_file = /etc/postfix/ssl/certs/postfixcert.pem
smtp_tls_key_file = /etc/postfix/ssl/certs/postfixkey.pem

Im Beispiel unten habe ich versucht, eine Mail von [email protected] an [email protected] (mit den Weiterleitungen an a und b) zu senden.
var/log/mail:
Feb 17 23:34:44 XXX postfix/smtpd[18160]: warning: database /etc/aliases.db is older than source file /etc/aliases
Feb 17 23:34:44 XXX postfix/smtpd[18160]: connect from delivery.antispamcloud.com[88.198.66.101]
Feb 17 23:34:44 XXX postfix/smtpd[18160]: 6DB66240018: client=delivery.antispamcloud.com[88.198.66.101]
Feb 17 23:34:44 XXX postfix/smtpd[18160]: disconnect from delivery.antispamcloud.com[88.198.66.101]
Feb 17 23:34:47 XXX postfix/smtpd[18160]: connect from delivery.antispamcloud.com[88.198.66.101]
Feb 17 23:34:47 XXX postfix/smtpd[18160]: 59EC2240018: client=delivery.antispamcloud.com[88.198.66.101]
Feb 17 23:34:47 XXX postfix/cleanup[18161]: 59EC2240018: message-id=<[email protected]>
Feb 17 23:34:47 XXX postfix/qmgr[5980]: 59EC2240018: from=<[email protected]>, size=1779, nrcpt=1 (queue active)
Feb 17 23:34:47 XXX postfix/smtpd[18160]: disconnect from delivery.antispamcloud.com[88.198.66.101]
Feb 17 23:34:48 XXX postfix/cleanup[7661]: 53ECB240016: message-id=<[email protected]>
Feb 17 23:34:53 XXX postfix/smtpd[15491]: connect from localhost[127.0.0.1]
Feb 17 23:34:53 XXX postfix/smtpd[15491]: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 550 <[email protected]>: Recipient address rejected: User unknown in local recipient table; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<localhost>
Feb 17 23:34:53 XXX amavis[15891]: (15891-03) mail_via_smtp: DATA skipped, no valid recips, 0
Feb 17 23:34:53 XXX postfix/smtpd[15491]: disconnect from localhost[127.0.0.1]
Feb 17 23:34:53 XXX amavis[15891]: (15891-03) mail_via_smtp: 550 5.1.0 <[email protected]>: Recipient address rejected: User unknown in local recipient table
Feb 17 23:34:53 XXX amavis[15891]: (15891-03) Blocked CLEAN, [94.79.154.75] <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, Hits: -2.592, 6384 ms
Feb 17 23:34:53 XXX postfix/smtp[8070]: 59EC2240018: to=<[email protected]>, orig_to=<[email protected]>, relay=127.0.0.1[127.0.0.1], delay=6, status=bounced (host 127.0.0.1[127.0.0.1] said: 550 5.1.0 <[email protected]>: Recipient address rejected: User unknown in local recipient table (in reply to end of DATA command))
Feb 17 23:34:53 XXX postfix/cleanup[18161]: BD43524001C: message-id=<[email protected]>
Feb 17 23:34:53 XXX postfix/qmgr[5980]: 59EC2240018: removed
Feb 17 23:34:53 XXX postfix/qmgr[5980]: BD43524001C: from=<>, size=3912, nrcpt=1 (queue active)
Feb 17 23:34:53 XXX postfix/smtp[8070]: BD43524001C: to=<[email protected]>, relay=mx1.gmx.net[213.165.64.102], delay=0, status=sent (250 2.6.0 Message accepted {mx078})
Feb 17 23:34:53 XXX postfix/qmgr[5980]: BD43524001C: removed

Nochmals: Wenn ich nur ein Zielpostfach oder nur eine Weiterleitung einrichte klappt klappt der Mailempfang problemlos. Das Problem tritt nur bei mehreren Weiterleitungen/Postfächern auf. Kann mir jemand einen Tipp geben? :)
 
Last edited by a moderator:
Code:
Feb 17 23:34:44 XXX postfix/smtpd[18160]: warning: database /etc/aliases.db is older than source file /etc/aliases

Das solltest Du als erstes mal beheben. Führe "newaliases" aus, damit die DB aktualisiert wird.
 
Nein. An den Adressen an sich liegt es nicht. Es funktioniert unabhängig vom Weiterleitungsziel grundsätzlich nie, wenn zwei oder mehr Zieladressen oder auch zwei oder mehr Zielpostfächer eingestellt wurden. Wenn ich als Ziel "web1p1 und web1p2" einstelle, kommen sie nicht an. Wenn ich als Ziel nur web1p1 oder nur web1p2 einstelle, klappt es.
 

Back
Top