Friday, January 16, 2009

Postfix - Send to unknown local user

virtual_transport=smtp:next hop

eg virtual_transport=smtp:111.222.111.222

This option is useful is you have two mail servers, one local and one external with the same domain. Normally this is done to save bandwidth. The local mail server will only deliver mails to known users and will pass mails to unknown users within the same domain to the external server.

Say for example a local user sent two email to bob@domain.com and alice@domain.com to the local mail server. Mails for bob@domain.com, who exists in the local mail server, will be sent to Bob's mailbox while mail for alice@domain.com will be forwarded to the external mail server.

No comments: