On Mon, Dec 22, 2008 at 02:03:44PM -0500, Munroe Sollog wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I will try to be as verbose as possible. I have been working with a > few people in IRC and can't seem to get the functionality wanted. I > have half a dozen servers, all with hostnames on a fake domain. I > want mail bound for r...@hostname to be forwarded to a central > location so that I can then deliver all mail to a "real" address. > Auto-forwarding, is easy. I can get all the servers to forward mail > to a central location. However the central location is turning around > and trying to send it back to the source machine.
Set myorigin correctly. My null-client config is: main.cf: alias_database = alias_maps = # Uncomment if you have "cdb" support # default_database_type = cdb inet_interfaces = loopback-only local_header_rewrite_clients = static:all local_recipient_maps = local_transport = error:5.1.1 Mailbox unavailable mydestination = mydomain = example.com myorigin = $mydomain relayhost = [mailhub.example.com] smtp_generic_maps = ${indexed}generic generic: # Replace "hostname" with each host's name # Relies on "recipient_delimiter = +" on mailhub # Makes actual origin host clear in mail headers # "admin-mlist" is people who get root mail. root admin-mlist+hostname-root Mail from/to non-root accounts is sent from/to u...@domain, root mail is rewritten to admin-list+<hostname>-r...@domain. -- Viktor. Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the "Reply-To" header. To unsubscribe from the postfix-users list, visit http://www.postfix.org/lists.html or click the link below: <mailto:majord...@postfix.org?body=unsubscribe%20postfix-users> If my response solves your problem, the best way to thank me is to not send an "it worked, thanks" follow-up. If you must respond, please put "It worked, thanks" in the "Subject" so I can delete these quickly.