ubuntuusers.de

Kein Empfangen von Mails mit postfix

Status: Gelöst | Ubuntu-Version: Ubuntu 10.04 (Lucid Lynx)
Antworten |

TillF

Anmeldungsdatum:
22. Dezember 2010

Beiträge: 4

Hallo,

postfix empfängt bei mir leider keine Mails. Ich bin genau nach diesem HowTo vorgegangen: http://www.howtoforge.com/virtual-users-domains-postfix-courier-mysql-squirrelmail-ubuntu-10.04

Was außerdem noch komisch war, dass ich beim Anlegen eines accounts auch die Verzeichnisse in /home/vmail anlegen musste, was ich bisher von meinem alten System nicht gewöhnt war. Angelegt habe ich diese Verzeichnisse mit maildirmake. Der Login klappt jetzt soweit und das Verschicken von Mails funktioniert ebenfalls. Nur leider kommt keine Mail an.

Im Log sind keine Fehler oder ähnliches zu finden:

Dec 22 02:02:13 fox postfix/master[8188]: daemon started -- version 2.7.0, configuration /etc/postfix
Dec 22 02:02:18 fox postfix/postfix-script[8198]: refreshing the Postfix mail system
Dec 22 02:02:18 fox postfix/master[8188]: reload -- version 2.7.0, configuration /etc/postfix
Dec 22 02:02:31 fox imapd: Connection, ip=[::ffff:127.0.0.1]
Dec 22 02:02:31 fox imapd: LOGIN, user=till@mydomain.de, ip=[::ffff:127.0.0.1], port=[44551], protocol=IMAP
Dec 22 02:02:31 fox imapd: LOGOUT, user=till@mydomain.de, ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=87, sent=391, time=0
Dec 22 02:02:48 fox postfix/smtpd[8205]: connect from rmr1.rz.otherdomain.de[141.56.16.131]
Dec 22 02:02:48 fox postfix/smtpd[8205]: 65B47272F238: client=rmr1.rz.otherdomain.de[141.56.16.131]
Dec 22 02:02:48 fox postfix/cleanup[8210]: 65B47272F238: message-id=<f91146bdebf6994cd8956e1bbd02f3ac.squirrel@webmail.otherdomain.de>
Dec 22 02:02:48 fox postfix/qmgr[8203]: 65B47272F238: from=<s1234@otherdomain.de>, size=1706, nrcpt=1 (queue active)
Dec 22 02:02:48 fox postfix/smtpd[8205]: disconnect from rmr1.rz.otherdomain.de[141.56.16.131]
Dec 22 02:02:50 fox postfix/smtpd[8216]: connect from localhost[127.0.0.1]
Dec 22 02:02:50 fox postfix/smtpd[8216]: 6A5A7272F23E: client=localhost[127.0.0.1]
Dec 22 02:02:50 fox postfix/cleanup[8210]: 6A5A7272F23E: message-id=<f91146bdebf6994cd8956e1bbd02f3ac.squirrel@webmail.otherdomain.de>
Dec 22 02:02:50 fox postfix/smtpd[8216]: disconnect from localhost[127.0.0.1]
Dec 22 02:02:50 fox postfix/qmgr[8203]: 6A5A7272F23E: from=<s1234@otherdomain.de>, size=2132, nrcpt=1 (queue active)
Dec 22 02:02:50 fox amavis[7682]: (07682-02) Passed CLEAN, [141.56.16.131] [78.53.82.150] <s1234@otherdomain.de> -> <till@mydomain.de>, Message-ID: <f91146bdebf6994cd8956e1bbd02f3ac.squirrel@webmail.otherdomain.de>, mail_id: uEqCb2CCTv6g, Hits: -0.01, size: 1706, queued_as: 6A5A7272F23E, 1992 ms
Dec 22 02:02:50 fox postfix/smtp[8211]: 65B47272F238: to=<till@mydomain.de>, relay=127.0.0.1[127.0.0.1]:10024, delay=2, delays=0.04/0/0/2, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=07682-02, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 6A5A7272F23E)
Dec 22 02:02:50 fox postfix/qmgr[8203]: 65B47272F238: removed
Dec 22 02:02:50 fox postfix/virtual[8217]: 6A5A7272F23E: to=<till@mydomain.de>, relay=virtual, delay=0.03, delays=0.01/0/0/0.02, dsn=2.0.0, status=sent (delivered to mailbox)
Dec 22 02:02:50 fox postfix/qmgr[8203]: 6A5A7272F23E: removed
Dec 22 02:02:51 fox imapd: Connection, ip=[::ffff:127.0.0.1]
Dec 22 02:02:51 fox imapd: LOGIN, user=till@mydomain.de, ip=[::ffff:127.0.0.1], port=[44565], protocol=IMAP

Vielen Dank schon mal!

xabbuh Team-Icon

Anmeldungsdatum:
25. Mai 2006

Beiträge: 6411

Wie sieht denn deine Postfix-Konfiguration (Inhalt der master.cf und Ausgabe von postconf -n) aus?

cryptosteve

Avatar von cryptosteve

Anmeldungsdatum:
17. April 2007

Beiträge: 815

Wohnort: Nähe Hamburg

TillF schrieb:

postfix empfängt bei mir leider keine Mails.

Das sehe ich anders, und Dein Postfix offenbar auch. Vielleicht findest Du die Mail nur nicht? Oder bekommst Du einen Rückläufer?

TillF

(Themenstarter)

Anmeldungsdatum:
22. Dezember 2010

Beiträge: 4

xabbuh schrieb:

Wie sieht denn deine Postfix-Konfiguration (Inhalt der master.cf und Ausgabe von postconf -n) aus?

root@fox:~# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
content_filter = amavis:[127.0.0.1]:10024
html_directory = /usr/share/doc/postfix/html
mailbox_transport = virtual
mydestination = fox.net31.de, localhost, localhost.localdomain
myhostname = fox.net31.de
mynetworks = 127.0.0.0/8
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
readme_directory = /usr/share/doc/postfix
receive_override_options = no_address_mappings
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
smtpd_use_tls = yes
transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
virtual_alias_domains = 
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_gid_maps = static:5000
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_maildir_extended = yes
virtual_maildir_limit_message = "The user you are trying to reach is over quota."
virtual_overquota_bounce = yes
virtual_uid_maps = static:5000

Steve` schrieb:

Das sehe ich anders, und Dein Postfix offenbar auch. Vielleicht findest Du die Mail nur nicht? Oder bekommst Du einen Rückläufer?

Das der postfix die mail erstmal bekommt ist klar, aber was er dann damit macht ist mir ein Rätsel. Weder Sender noch Empfänger bekommen ein Nachricht.

xabbuh Team-Icon

Anmeldungsdatum:
25. Mai 2006

Beiträge: 6411

In welches Verzeichnis soll der virtual-transport laut der Map denn die E-Mails für den Empfänger speichern? Wie rufst du die E-Mails ab?

TillF

(Themenstarter)

Anmeldungsdatum:
22. Dezember 2010

Beiträge: 4

Bei dem transport geht es, wenn ich das richtig verstanden habe, um den smtp-host. Dieser steht jetzt auf ":", was ja eigentlich für den eigenen Host steht, oder?

xabbuh Team-Icon

Anmeldungsdatum:
25. Mai 2006

Beiträge: 6411

Ich verstehe nicht, was du meinst. Der virtual-Transport ist dafür da, E-Mails an virtuelle Benutzer (d. h. Benutzer, die keinen Systemaccount haben) zuzustellen. Basisverzeichnis ist für diese Benutzer bei dir /home/vmail (eingestellt durch virtual_mailbox_base). Das konkrete Verzeichnis für jeden Benutzer unterhalb von /home/vmail wird durch eine Anfrage an die virtual_mailbox_maps ermittelt und da wäre es nun interessant zu wissen, wohin genau die E-Mails also letztendlich gespeichert werden und ob du beim Abrufen der E-Mails überhaupt auf dieses Verzeichnis zugreifst.

TillF

(Themenstarter)

Anmeldungsdatum:
22. Dezember 2010

Beiträge: 4

Oh je. Viel vielen Dank, war genau der richtige Hinweis. Ich hatte einen Fehler in der SQL-Abfrage in /etc/postfix/mysql-virtual_mailboxes.cf. Jetzt funktioniert alles.

Also vielen Dank nochmal und frohes Fest! ☺

Antworten |