Dnia 21.03.2021 o godz. 15:44:06 Markus Grunwald pisze: > So I'd like to have maennerchor-kirchseeon.de as local domain and > the-grue.de as virtual domain. I thought it might be as simple as > s/the-grue.de/maennerchor-kirchseeon.de/ in these two lines from > main.cf: > > myhostname = the-grue.de > mydomain = the-grue.de > > But when I did that, mail delivery failed:
It's not so simple. Your main.cf file says: > mydestination = localhost, $mydomain > mydomain = the-grue.de [...] > virtual_mailbox_domains = /etc/postfix/virtual_domains > virtual_mailbox_maps = hash:/etc/postfix/vmailbox which means that your Postfix currently accepts mail for domains listed in "mydestination" (ie., "localhost" and "the-grue.de") and for domains listed in /etc/postfix/virtual-domains (from what you have written - "maennerchor-kirchseeon.de" and "goldschmiede-grunwald.de"). If you want "maennerchor-kirchseeon.de" to be a local domain instead, you need to make "the-grue.de" a virtual domain, ie. you need to put the domain name in /etc/postfix/virtual-domains (and remove "maennerchor-kirchseeon.de" from there) and also appropriate mappings for "the-grue.de" domain in /etc/postfix/vmailbox. Be aware that any local accounts - if you have any - will now become adddresses in the domain "maennerchor-kirchseeon.de" and not "the-grue.de" as previously. This might be not what you want. -- Regards, Jaroslaw Rafa r...@rafa.eu.org -- "In a million years, when kids go to school, they're gonna know: once there was a Hushpuppy, and she lived with her daddy in the Bathtub."