Thank you, Viktor! After adding "virtual_alias_domains=domain2.tld" it works as expected.
Sincerely, Danil Smirnov On Thu, Aug 31, 2023 at 9:58 AM Viktor Dukhovni via Postfix-users < postfix-users@postfix.org> wrote: > On Thu, Aug 31, 2023 at 07:53:03AM +0200, Jaroslaw Rafa via Postfix-users > wrote: > > > Did you also add the entry for "domain2.tld" itself (without "@" at the > > beginning) to virtual_alias_maps, so that Postfix knows that it should > > handle mail for this domain? > > That's a deprecated backward's compatibility approach, that only works > when `virtual_alias_domains` is not set explicitly, and defaults to > $virtual_alias_maps. Instead update `virtual_alias_domains`. See > the docs. > > > In my case, I have a catch-all virtual domain that is configured in > > virtual_alias_maps as follows: > > > > example.org anything > > @example.org username > > As already explained, catch-alls are a bad idea, requiring probe-based > recipient verification. Best avoided. Instead give each user an > explicit list of addresses in any appropriate domains. Some day, some > user will need to not receive mail for one of the domains, and the > catchall will bite. Take the high road. > > -- > Viktor. > > _______________________________________________ > Postfix-users mailing list -- postfix-users@postfix.org > To unsubscribe send an email to postfix-users-le...@postfix.org >
_______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org