OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Forward mail to another address

From: Adam Siegel (adamsycamore.us)
Date: Sun Mar 26 2006 - 11:42:07 CST


I would like to have all the mail sent to a domain forwarded to a
another mail account. My mail server is at mail.host1.com. host1.com
is made-up for this discussion. My main.cf file looks like

myhostname = mail.host1.com
mydomain = host1.com
myorigin = host1.com
mydestination = localhost.localdomain
mynetworks = 127.0.0.0/8 192.168.0.0/24
biff = no
virtual_alias_domains = host1.com
virtual_alias_maps = hash:/etc/postfix/virtual

My virtual file looks like

host1.com bobhost2.com

If postfix receives an email to bobhost1.com, it gets rejected as
"relaying denied".

If I change the main.cf to receive the mail locally, everything works
fine and the mail is delivered to the "bob" file on the local machine.

myhostname = mail.host1.com
mydomain = host1.com
myorigin = host1.com
mydestination = localhost.localdomain host1.com
mynetworks = 127.0.0.0/8 192.168.0.0/24
biff = no

Thanks for any thoughts.