> On Feb 2, 2016, at 1:10 AM, Roman Doe <roman.doe...@gmail.com> wrote: > > Using this can I do the following process? > > If 1...@gmail.com = 1...@mydomain.com > and 2...@gmail.com = 2...@mydomain.com > > When 1...@gmail.com sends to 2...@mydomain.com (gmail webmail) > Rewrite: 1...@gmail.com in 1...@mydomain.com > 2...@gmail.com receives from 1...@mydomain.com (gmail webmail)
No. You can only rewrite either the sender address, the recipient address or both. In your case it seems you'd want: http://www.postfix.org/postconf.5.html#sender_canonical_maps main.cf: indexed = ${default_database_type}:${config_directory}/ sender_canonical_maps = ${indexed}sender-canonical sender-canonical: us...@gmail.com us...@example.com This will apply to all mail sent by us...@gmail.com, regardless of the recipient address. -- -- Viktor.