Alias User anlegen und mail umleiten
Christoph Kukulies
kuku at kukulies.org
Fr Aug 22 11:01:26 CEST 2025
Danke, Markus. Daß virtualUsers nicht referiert wird, ist mir auch aufgefallen.
In einer älteren main.cf stand eine Referenz:
root at mail:/etc/postfix# grep -r virtualUsers *
main.cf.2012-01-19:#virtual_maps = hash:/etc/postfix/virtualUsers, hash:/etc/postfix/localDomains
main.cf.2012-01-19:virtual_maps = hash:/etc/postfix/virtualUsers
main.cf.2014-08-24:#virtual_maps = hash:/etc/postfix/virtualUsers, hash:/etc/postfix/localDomains
main.cf.2014-08-24:virtual_maps = hash:/etc/postfix/virtualUsers
Sollte ich parallel noch eine andere Maßnahme getroffen haben, die zum Funktionieren geführt hatte?
> Am 21.08.2025 um 20:06 schrieb Markus Winkler via Dovecot <dovecot at listen.jpberlin.de <mailto:dovecot at listen.jpberlin.de>>:
>
> Hallo Christoph,
>
> danke für die beiden Config-Outputs.
>
> On 21.08.25 10:27, Christoph Kukulies via Dovecot wrote:
>>>> Hab's hinbekommen. Ich mußte einen Eintrag in /etc/postfix/virtualUsers hinzufügen:
>>>>
>>>> smtp at mydomain.org <mailto:smtp at mydomain.org> kuku
>>>
>>> wenn es erst/nur damit funktioniert hat, dann wird Dein DB-Eintrag wohl eher nicht ausgewertet, würde ich mal denken.
>> Das denke ich auch.
>
> Wenn ich mich nicht verguckt habe: Ich konnte in Deiner Config nirgendwo einen Verweis auf die o. g. /etc/postfix/virtualUsers entdecken.
>
> Von daher sehe ich meine ursprüngliche Vermutung jetzt eher skeptisch.
>
>> Hier sind zumindest die postconf Ausgaben:
>
> Die angefragten:
>
> - die Datei(en), in denen ggf. Deine SQL queries enthalten sind
> - relevante Logauszüge der Übermittlung einer solchen Mail
>
> sind zwar weiterhin nicht bekannt. Aber da Du mit dem jetzigen Verhalten des Systems ja offenbar zufrieden bist, ist das Thema erledigt, oder?
Ich würde schon gerne noch ergründen, was jetzt zum Ziel geführt hat.
Deshalb hier noch weitere Infos:
Grüße
--
Christoph
-------------- nächster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: <https://listen.jpberlin.de/pipermail/dovecot/attachments/20250822/16b98b50/attachment.htm>
-------------- nächster Teil --------------
mysql> select * from alias;
+-------------------------+----------------------+--------------+---------------------+---------------------+--------+
| address | goto | domain | created | modified | active |
+-------------------------+----------------------+--------------+---------------------+---------------------+--------+
| abuse at mydomain.org | kuku at mydomain.org | mydomain.org | 2014-09-02 14:23:19 | 2014-09-02 14:23:19 | 1 |
| hostmaster at mydomain.org | kuku at mydomain.org | mydomain.org | 2014-09-02 14:23:19 | 2014-09-02 14:23:19 | 1 |
| postmaster at mydomain.org | kuku at mydomain.org | mydomain.org | 2014-09-02 14:23:19 | 2014-09-02 14:23:19 | 1 |
| webmaster at mydomain.org | kuku at mydomain.org | mydomain.org | 2014-09-02 14:23:19 | 2014-09-02 14:23:19 | 1 |
| kukuneu at mydomain.org | kukuneu at mydomain.org | mydomain.org | 2014-09-02 14:24:26 | 2014-09-02 14:24:26 | 1 |
| kuku at mydomain.org | kuku at mydomain.org | mydomain.org | 2014-09-02 14:28:53 | 2014-09-02 14:28:53 | 1 |
| smtp at mydomain.org | kuku at mydomain.org | mydomain.org | 2025-08-20 00:00:00 | 2025-08-20 00:00:00 | 1 |
+-------------------------+----------------------+--------------+---------------------+---------------------+--------+
7 rows in set (0.00 sec)
mysql> select * from aliases;
+----+-------------------------+-------------------+
| id | source | destination |
+----+-------------------------+-------------------+
| 1 | mydomain at mydomain.org | kuku at mydomain.org |
| 2 | admin at mydomain.org | kuku at mydomain.org |
| 3 | postmaster at mydomain.org | kuku at mydomain.org |
| 4 | root at mydomain.org | kuku at mydomain.org |
+----+-------------------------+-------------------+
4 rows in set (0.01 sec)
mysql> select username, domain from users;
+----+-------------------------+-----------------+
| id | username | domain |
+----+-------------------------+-----------------+
| 13 | hostmaster at mydomain.org | mydomain.org |
| 12 | postmaster at mydomain.org | mydomain.org |
| 15 | smtp | mydomain.org |
| 11 | webmaster at mydomain.org | mydomain.org |
+----+-------------------------+-----------------+
12 rows in set (0.00 sec)
-------------- nächster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: <https://listen.jpberlin.de/pipermail/dovecot/attachments/20250822/16b98b50/attachment-0001.htm>
-------------- nächster Teil --------------
Aug 22 10:52:26 mail postfix/postscreen[297426]: CONNECT from [57.103.76.190]:29152 to [11.111.111.11]:25
Aug 22 10:52:32 mail postfix/postscreen[297426]: PASS NEW [57.103.76.190]:29152
Aug 22 10:52:32 mail postfix/smtpd[297435]: connect from p-east2-cluster6-host2-snip4-9.eps.apple.com[57.103.76.190]
Aug 22 10:52:33 mail policyd-spf[297439]: prepend Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=57.103.76.190; helo=outbound.st.icloud.com; envelope-from=christoph.meinname at icloud.com; receiver=<UNKNOWN>
Aug 22 10:52:33 mail postfix/smtpd[297435]: 623787D0C4: client=p-east2-cluster6-host2-snip4-9.eps.apple.com[57.103.76.190]
Aug 22 10:52:33 mail postfix/cleanup[297440]: 623787D0C4: message-id=<8B8593F8-F7BF-4410-A2A3-1AFB2C5CE695 at icloud.com>
Aug 22 10:52:33 mail opendkim[881]: 623787D0C4: p-east2-cluster6-host2-snip4-9.eps.apple.com [57.103.76.190] not internal
Aug 22 10:52:33 mail opendkim[881]: 623787D0C4: not authenticated
Aug 22 10:52:33 mail opendkim[881]: 623787D0C4: DKIM verification successful
Aug 22 10:52:33 mail opendkim[881]: 623787D0C4: s=1a1hai d=icloud.com a=rsa-sha256 SSL
Aug 22 10:52:33 mail postfix/qmgr[245321]: 623787D0C4: from=<christoph.meinname at icloud.com>, size=3184, nrcpt=1 (queue active)
Aug 22 10:52:33 mail postfix/smtpd[297435]: disconnect from p-east2-cluster6-host2-snip4-9.eps.apple.com[57.103.76.190] ehlo=2 starttls=1 mail=1 rcpt=1 data=1 quit=1 commands=7
Aug 22 10:52:35 mail postfix/smtpd[297444]: connect from localhost[127.0.0.1]
Aug 22 10:52:35 mail postfix/smtpd[297444]: B1D847DBCD: client=localhost[127.0.0.1]
Aug 22 10:52:35 mail postfix/cleanup[297440]: B1D847DBCD: message-id=<8B8593F8-F7BF-4410-A2A3-1AFB2C5CE695 at icloud.com>
Aug 22 10:52:35 mail opendkim[881]: B1D847DBCD: no signing table match for 'christoph.meinname at icloud.com'
Aug 22 10:52:35 mail opendkim[881]: B1D847DBCD: DKIM verification successful
Aug 22 10:52:35 mail opendkim[881]: B1D847DBCD: s=1a1hai d=icloud.com a=rsa-sha256 SSL
Aug 22 10:52:35 mail postfix/qmgr[245321]: B1D847DBCD: from=<christoph.meinname at icloud.com>, size=3679, nrcpt=1 (queue active)
Aug 22 10:52:35 mail postfix/smtpd[297444]: disconnect from localhost[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Aug 22 10:52:35 mail amavis[294574]: (294574-09) Passed CLEAN {RelayedInbound}, [57.103.76.190]:29152 [17.42.251.67] <christoph.meinname at icloud.com> -> <smtp at mydomain.org>, Queue-ID: 623787D0C4, Message-ID: <8B8593F8-F7BF-4410-A2A3-1AFB2C5CE695 at icloud.com>, mail_id: AZ9o24EWq8gP, Hits: 1.791, size: 3344, queued_as: B1D847DBCD, dkim_sd=1a1hai:icloud.com, 2248 ms
Aug 22 10:52:35 mail postfix/smtp[297441]: 623787D0C4: to=<smtp at mydomain.org>, relay=127.0.0.1[127.0.0.1]:10024, delay=2.5, delays=0.24/0/0.01/2.2, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as B1D847DBCD)
Aug 22 10:52:35 mail postfix/qmgr[245321]: 623787D0C4: removed
Aug 22 10:52:35 mail dovecot: lmtp(297472): Connect from local
Aug 22 10:52:35 mail dovecot: lmtp(smtp at meinname.org)<297472><FhxRM9MvqGgAigQAlu4ULA>: msgid=<8B8593F8-F7BF-4410-A2A3-1AFB2C5CE695 at icloud.com>: saved mail to INBOX
Aug 22 10:52:35 mail postfix/lmtp[297445]: B1D847DBCD: to=<smtp at mydomain.org>, relay=mail.mydomain.org[private/dovecot-lmtp], delay=0.14, delays=0.1/0.01/0.03/0.01, dsn=2.0.0, status=sent (250 2.0.0 <smtp at mydomain.org> FhxRM9MvqGgAigQAlu4ULA Saved)
Aug 22 10:52:35 mail postfix/qmgr[245321]: B1D847DBCD: removed
Aug 22 10:52:35 mail dovecot: lmtp(297472): Disconnect from local: Logged out (state=READY)
-------------- nächster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: <https://listen.jpberlin.de/pipermail/dovecot/attachments/20250822/16b98b50/attachment-0002.htm>
-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname : signature.asc
Dateityp : application/pgp-signature
Dateigröße : 488 bytes
Beschreibung: Message signed with OpenPGP
URL : <https://listen.jpberlin.de/pipermail/dovecot/attachments/20250822/16b98b50/attachment.asc>
Mehr Informationen über die Mailingliste Dovecot