Smtproutes

From SME Server
Revision as of 21:01, 10 May 2023 by Holck (talk | contribs) (Using an external mail server to deliver mails to some domains, but use the built-in mail server for delivering mails to all other domains)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

If you want to use , you should:


  1. In server manager choose "E-mail" under menu heading "Configuration"
  2. 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
  3. If you need to use a special port (e.g. 587) on the external mail server:
    $ /sbin/e-smith/db configuration setprop smtpauthproxy PeerPort 587
  4. It may be advisable to also do:
    $ /sbin/e-smith/db configuration setprop smtpauthproxy Debug enabled
    This will show the communication with the external mail server, helping solve potential problems regarding login etc.
  5. 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
  6. $ signal-event email-update