Hello,
Would you like to configure a qmail server to relay all outgoing messages to another mail server? The file to create is /var/qmail/control/smtproutes. you can create both entries to forward all e-mail for a domain, or all e-mail regardless of domain. Sorry, but wildcards are not allowed in a standard smtproutes file.
To relay e-mail for a specific domain.com to another mail server create the line:
domain.com:some-other-mail-server.com
To relay all e-mail to another mail server, regardless of the destination domain, create the line:
:some-other-mail-server.com.
It is OK to send e-mail for a few domains to alternate mail servers, and then have a catchall line at the end for any remaining domains, for example:
domain1.com:relay-mail-server.com
domain2.com:relay-mail-server.com
domain3.com:relay2-mail-server.com
:relay3-mail-server.com
Would you like to configure a qmail server to relay all outgoing messages to another mail server? The file to create is /var/qmail/control/smtproutes. you can create both entries to forward all e-mail for a domain, or all e-mail regardless of domain. Sorry, but wildcards are not allowed in a standard smtproutes file.
To relay e-mail for a specific domain.com to another mail server create the line:
domain.com:some-other-mail-server.com
To relay all e-mail to another mail server, regardless of the destination domain, create the line:
:some-other-mail-server.com.
It is OK to send e-mail for a few domains to alternate mail servers, and then have a catchall line at the end for any remaining domains, for example:
domain1.com:relay-mail-server.com
domain2.com:relay-mail-server.com
domain3.com:relay2-mail-server.com
:relay3-mail-server.com