On 3 July 2011 01:07, /dev/rob0 <r...@gmx.co.uk> wrote: > BTW, please do not use real domain names as examples. We have > example.com and example in all gTLDs as well as many other TLDs, > which has been set aside for examples. Or better yet, when seeking > help on mail routing issues, use the real names!
Thank you Rob, you are absolutely right, I didn't think of this. Will take this into account next time! > Wildcard forwarding is a very bad idea. You WILL be abused by > spammers into becoming a backscatter source. > >> f...@bar.com > forward to foo...@gmail.com > > Same-envelope forwarding to external sites is also quite likely to > become a source of problems for you. When you receive and forward > spam to this address, gmail content filtering will identify it as > such, and will regard you as the spammer. I just tried the virtual_alias_maps option, and indeed this works. Like you said, it does not change the envelop. Gmail does in fact accept it, but this might not be the case for other MX's. Is there an option for postfix to change the envelop? >> From reading the documentation, I think I need to implement >> virtual_maps, > > Did you note in the documentation that virtual_maps was deprecated > with Postfix 2.0? Actually I didn't; I found the manual page while googling. It might have referred to an old version of the manual, or might have got it from another source. I searched and read many pages before consulting the mailing list. > I do not know what you read. You can indeed use virtual_alias_maps > with any and all address classes. See: > http://www.postfix.org/ADDRESS_CLASS_README.html > http://www.postfix.org/postconf.5.html#virtual_alias_maps > http://www.postfix.org/VIRTUAL_README.html (might also help) Thank you, I will look into this! >> The configuration is now based on a relay_domains hash file, >> relay_recipients hash file and a transport hash file. > > Good. Sounds right to me. No catchall in relay_recipient_maps means > that my backscatter warning above is moot in your case. > virtual_alias_maps = hash:/path/to/your/virtual_alias_maps > > /path/to/your/virtual_alias_maps contains: > f...@bar.com foo...@gmail.com > > Note the problem as mentioned above, but otherwise, it works. Thanks Rob!