Hi
I have a question regarding Postfix 2.6. Here is a 'shortened' configuration dump :
/etc/postfix/main.cf
Code:
virtual_alias_domains = mydomain.com
virtual_alias_maps = hash:/etc/postfix/virtual
local_recipient_maps =
relay_domains = $mydestination, mydomain.com
relayhost = [smtp.gmail.com]:587
/etc/postfix/virtual
When I receive an email from @mydomain.com the From field is re-wrote to
myemail@gmail.com within my GMail mail box, which is what is supposed to happen when you configure postfix virtual_alias_maps.
How can I prevent the SMTP header from being re-wrote but still forwarded to a catch-all address, which is a GMail account.
example :
Code:
I receive an email from music@lyrics.com
That email From: field is re-wrote to myemail@gmail.com so I can't see who wrote the original email.
The reply-to field holds the email address but i'd like to be able to not have it modified.
I have tried removing the virtual mapping, but this is mandatory, else i'll receive an error message (see below) from Postfix and the message will bounce back to the sender.
Code:
Diagnostic-Code: X-Postfix; User unknown in virtual alias table
Thanks