2013-08-22 2 views
31

Ich Konfiguration Postfix und wenn per Telnet und SMTP-Validierung bekam ich den Status prallte Fehler, unbekannte Benutzer:Postfix - status = prallte (unknown user "myuser")

Fehlerprotokoll:

Postfix/lokal [18718]: 4590D7DC0A51: bis =, Relais = lokal, Verzögerung = 9.8, Verzögerungen = 9.8/0.01/0/0.04, dsn = 5.1.1, Status = zurückgewiesen (unbekannter Benutzer: "myuser")

Das "myuser" existiert bereits, aber mit vollem Domain Name: mein [email protected]

Benutzervalidierung:

postmap -q [email protected] mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf 

Ausgabe ist: "1" - so dass ich denke, es ist OK.

Mein Postfix Konfiguration:

root# postconf -n: 
append_at_myorigin = yes 
biff = no 
config_directory = /etc/postfix 
default_destination_concurrency_limit = 1 
delay_warning_time = 8h 
disable_vrfy_command = yes 
dovecot_destination_concurrency_limit = 1 
dovecot_destination_recipient_limit = 1 
enable_original_recipient = yes 
local_destination_concurrency_limit = 1 
maximal_queue_lifetime = 6d 
mydestination = mydomain.com 
smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated 
smtpd_delay_reject = no 
smtpd_hard_error_limit = 10 
smtpd_helo_required = yes 
smtpd_helo_restrictions = permit_mynetworks, reject_invalid_hostname 
smtpd_recipient_restrictions = permit_mynetworks, reject_unknown_sender_domain,    reject_unknown_recipient_domain, reject_unlisted_recipient, reject_unauth_destination, reject_unauth_pipelining 
smtpd_sender_restrictions = permit_mynetworks, reject_unknown_sender_domain 
smtpd_soft_error_limit = 5 
strict_rfc821_envelopes = yes 
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf,mysql:/etc/postfix/mysql-email2email.cf 
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf 
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf 
virtual_transport = dovecot 

Vielen Dank für jede Hilfe.

Antwort

80

Sie haben mydestination = mydomain.com hinzugefügt und so werden die gültigen Benutzer für mydomain.com in local_recipient_maps gesucht. Es ist sehr klar von der Logline, dass local Delivery-Agent ausgewählt ist, um die Mail zu liefern, als lokale Domain-Klasse abgestimmt. Siehe postfix address classes für weitere Hilfe

Ändern Sie bitte Ihre main.cf wie unter

#/etc/postfix/main.cf 
mydestination = 
# set to localhost localhost.$mydomain or remove mydomain.com for now 
# Ensure that postmap -q mydomain.com mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf is returning mydomain.com and 
# postmap -q [email protected] mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf succeeds 
+0

Dank! Ich brauchte Stunden um das herauszufinden. –

+0

Kumpel, du hast mir die Zeit gerettet, es herauszufinden! Vielen Dank! –

+0

danke x 1000 – Brade