i have a qmail server which hosts multiple domains (domain1, domain2, domain3, etc.)..i want to route outbound emails from a single domain to a smarthost (external smtp) server...basically i want sender_dependent_relayhost_maps functionality for qmail
Google support for smtp/qmail relay says this:
To set up a smarthost for Qmail:
Edit (or create) the file /var/qmail/control/smtproutes and append the following line:
:smtp-relay.gmail.com:25
If you have certain internal domains whose traffic should not be routed to Google, you will want to add specific routing to the appropriate mail server to the /var/qmail/control/smtproutes file using the following syntax:
<InternalDomain>:<ServerForInternalDomain>
But what i want is email from domain2.com to be routed to the smarthost (e.g. google smtp) and all other domains (domain1, domain3, etc.) to be delivered normally.
What is the normal/default setting for "<ServerForInternalDomain>" (i.e, use my current setup) and what is the correct syntax for InternalDomain and ServerForInternalDomain....
My research indicates that InternalDomain followed by a server is for forwarding SELECTIVE TO recipients not SELECTIVE FROM (domain) recipients filtering
Google implies that every other "internal" domain needs to be routed manually, while another thread implies that the /var/qmail/control/smtproutes file is hierarchical, but again it's still unclear whether this is TO or FROM filtering--i want FROM)
Google support for smtp/qmail relay says this:
To set up a smarthost for Qmail:
Edit (or create) the file /var/qmail/control/smtproutes and append the following line:
:smtp-relay.gmail.com:25
If you have certain internal domains whose traffic should not be routed to Google, you will want to add specific routing to the appropriate mail server to the /var/qmail/control/smtproutes file using the following syntax:
<InternalDomain>:<ServerForInternalDomain>
But what i want is email from domain2.com to be routed to the smarthost (e.g. google smtp) and all other domains (domain1, domain3, etc.) to be delivered normally.
What is the normal/default setting for "<ServerForInternalDomain>" (i.e, use my current setup) and what is the correct syntax for InternalDomain and ServerForInternalDomain....
My research indicates that InternalDomain followed by a server is for forwarding SELECTIVE TO recipients not SELECTIVE FROM (domain) recipients filtering
Google implies that every other "internal" domain needs to be routed manually, while another thread implies that the /var/qmail/control/smtproutes file is hierarchical, but again it's still unclear whether this is TO or FROM filtering--i want FROM)