~control/smtproutes

From Qmail-LDAP Wiki

Jump to: navigation, search

Artificial SMTP routes used by qmail-remote. This list can be used to define smarthost or do a mail route that is not defined on internet DNS.

Default:

none

Syntax:

[<email_domain>]:<mail_server_hostname_or_ip_address>

-or-

[<email_domain>]:<mail_server_hostname_or_ip_address> [<smtp_auth_username> <smtp_auth_password>] (since 20040401)

Example:

domain.com:mail.domain.com (using mail server hostname)
email.com:192.168.1.10     (using mail server IP address)
:smarthost.domain.com      (defining smarthost)
.domain.com:mail.domain.com (route all subdomains of domain.com)

domain.com:mail.domain.com joeusername joepass      (SMTP AUTH for smtproutes; only after 20040401)

Note:

  • Multilines.
  • You can specify a smarthost by just using :<smart_host_hostname_or_ip_address>. This will instruct qmail-remote to send all email that is not under ~control/locals to <smart_host_hostname_or_ip_address>.
  • If you enter more than one of the same domain into the list, it will only honor the first instance on the list.
  • Since patch 20040401, SMTP AUTH is supported in smtproutes (see syntax and example above)
Personal tools