Marcus Park via Postfix-users: > > > Wietse Venema via Postfix-users: > > Marcus Park via Postfix-users: > >> Hello postifx, > >> > >> I am getting trouble in the unwanted email delivery. > >> > >> Say my hostname is "foo.com" (what 'hostname' command shows). > >> And I do have the same domain name "foo.com" setup in > >> /etc/postfix/virtual_mailbox_domain. > > As documented, mail for*all* u...@foo.com will be delivered with > > main.cf:$virtual_transport. > > > Or, if i change the hostname to 'sth.foo.com', so it will get no > conflict with virtual_mailbox_domain. will this resolve the issue?
When you list a domain in main.cf:mydestination, virtual_mailbox_domains, virtual_alias_domains, that determines the default delivery method for that domain. See https://www.postfix.org/ADDRESS_CLASS_README.html Separately, there is main.cf:myorigin which specifies what domain to append to an address that has no domain. Indirectly that detrermines the default delivery method for an address that has no domain. You can override delivery methods with transport_maps, but that should be reserved for special cases. Wietse _______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org