View Single Post
  #1  
Old 23rd April 2010, 17:56
kongi123 kongi123 is offline
Junior Member
 
Join Date: Apr 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default PostFix: forward/redirect All emails to another fixed address

Hello,

I am new to PostFix. I would like to have PostFix (SMTP) forward/redirect "all" sent emails to another fixed desired address (such as admin@myserver.com) and most important field headers don't change (e.g. to cc bcc from subject...)

This is my example code:

1 /etc/postfix/main.cf:
2 virtual_alias_maps = hash:/etc/postfix/virtual
3
4 /etc/postfix/virtual:
5 * admin@myserver.com

I think the problem may be at Line 5 where I don't know which syntax can represent "all emails". I use *(star), but it seems not working. Thanks.
Reply With Quote
Sponsored Links