an...@ursc.gov.in: Content-Description: Plaintext Message > ----- Message from Wietse Venema <wie...@porcupine.org> --------- > ? ? Date: Thu, 31 Oct 2019 08:20:44 -0400 (EDT) > ? ? From: Wietse Venema <wie...@porcupine.org> > Reply-To: Postfix users <postfix-users@postfix.org> > Subject: Re: Avoidance of duplicate mails reg > ? ? ? To: Postfix users <postfix-users@postfix.org> > > > an...@ursc.gov.in: > >> Hi, > >> > >> We have migrated to a new domain yyy.com.? We also continue to receive > >> mails on old domain xxx.com. > >> > >> When a sender sends a mail to a...@xxx.com (old domain), mail is > >> received and delivered to user abcd.? Abcd when he replies to all (his > >> from email address will be a...@yyy.com [new domain], and hence, mail > >> is also sent to a...@xxx.com [old domain].? So, the sent mail is also > >> received back to the same sender. > >> > >> When the actual recipient receives the mail, he will have a...@xxx.com > >> and a...@yyy.com in the address list. So, when he replies to that > >> mail, 2 mails will be sent to the same user. > >> > >> What's the best way that, the user receives only one mail, when both > >> domains are in To addresses? > > > > /etc/postfix/main.cf: > > ? ?virtual_alias_maps = > > ? ? ? ? hash:/etc/postfix/old-to-new ...other existing maps... > > > > /etc/postfix/old-to-new: > > ? ?abcd@old.example? ? ? ? abcd@new.example > > > > # postmap /etc/postfix/old-to-new > > # postfix reload > > > > Instead of hash, you can use any supported type. > > ? ? ? ? Wietse > > ----- End message from Wietse Venema <wie...@porcupine.org> ----- > > Sorry for the trouble.? But, after doing that, when I sent a mail from > outside to both these email addresses abcd@old.example and > abcd@new.example (in a single mail) , 2 emails came instead of one.? I > want that, if both these domains are listed in the same mail, only one > mail should be received.
You need to prove (logs!) that Postfix received ONE message with multiple recipients. If Postfix receives multiple messages, then Postfix will not combine them into one. Wietse