Difference between revisions of "Smtproutes"
From SME Server
Jump to navigationJump to search (Minor typos) |
|||
Line 1: | Line 1: | ||
To use an external mail server to deliver mails to some domains, but use the built-in mail server for delivering mails to all other domains, you should: | To use an external mail server to deliver mails to some domains, but use the built-in mail server for delivering mails to all other domains, you should: | ||
− | + | # In server-manager choose "E-mail" under menu heading "Configuration", and choose "Change e-mail delivery settings" | |
− | + | # Fill out the entries under "SMTP server": Address of the external mail server, and – if needed – the user id and password to use for getting access to the external mail server | |
− | # In server manager choose "E-mail" under menu heading "Configuration" | + | # If you need to use a special port (e.g. 587) on the external mail server:<br /><code>$ /sbin/e-smith/db configuration setprop smtp-auth-proxy PeerPort 587</code> |
− | # Fill out the entries under "SMTP server": Address of the external mail server, and | + | # It may be advisable to also do:<br /><code>$ /sbin/e-smith/db configuration setprop smtp-auth-proxy Debug enabled</code><br />This will show the communication with the external mail server, helping solve potential problems regarding login etc. |
− | # If you need to use a special port (e.g. 587) on the external mail server:<br />$ /sbin/e-smith/db configuration setprop | + | # Create a custom-template for <code>/var/qmail/control/smtproutes</code>, e.g. the file <code>/etc/e-smith/templates-custom/var/qmail/control/smtproutes/01custom</code> with a content like this:<br /> <code>onedomain.com:localhost:26<br /> anotherdomain.org:localhost:26</code><br />with one line for each domain, for which you want to use the external mail server |
− | # It may be advisable to also do:<br />$ /sbin/e-smith/db configuration setprop | + | # <code>$ signal-event email-update</code> |
− | # Create a custom-template for /var/qmail/control/smtproutes, e.g. the file /etc/e-smith/templates-custom/var/qmail/control/smtproutes/01custom with a content like this:<br /> onedomain.com:localhost:26<br /> anotherdomain.org:localhost:26<br />with one line for each domain, for which you want to use the external mail server | ||
− | # $ signal-event email-update |
Latest revision as of 10:35, 7 July 2023
To use an external mail server to deliver mails to some domains, but use the built-in mail server for delivering mails to all other domains, you should:
- In server-manager choose "E-mail" under menu heading "Configuration", and choose "Change e-mail delivery settings"
- Fill out the entries under "SMTP server": Address of the external mail server, and – if needed – the user id and password to use for getting access to the external mail server
- If you need to use a special port (e.g. 587) on the external mail server:
$ /sbin/e-smith/db configuration setprop smtp-auth-proxy PeerPort 587
- It may be advisable to also do:
$ /sbin/e-smith/db configuration setprop smtp-auth-proxy Debug enabled
This will show the communication with the external mail server, helping solve potential problems regarding login etc. - Create a custom-template for
/var/qmail/control/smtproutes
, e.g. the file/etc/e-smith/templates-custom/var/qmail/control/smtproutes/01custom
with a content like this:
onedomain.com:localhost:26
anotherdomain.org:localhost:26
with one line for each domain, for which you want to use the external mail server $ signal-event email-update