Smtproutes

From Ye Ole Stash
Jump to: navigation, search

Default Behavior

Example #1
DOMAIN_TO_ROUTE:IP[:PORT]
More Examples
example.com:124.2.3.4:26
yahoo.com:192.168.1.10
hilton.com:8.8.4.1

With qmail-remote-auth.patch

  • Tom Clegg's qmail-remote-auth.patch allows qmail-remote to use AUTH when connecting to certain remote mail servers. The userids and passwords are set in the "smtproutes" file, after the IP[:PORT] value, separated by spaces. For example...
domain1.xyz:1.2.3.4
domain2.xyz:2.3.4.5 user pass
domain3.xyz:3.4.5.6:26 user pass
domain3.xyz:3.4.5.6:26 -user pass
By default (with the Simpson Patch) qmail-remote will only send the AUTH command if the STARTTLS command has already been sent in the same session. If the connection between your server and the remote server is known to be secure (i.e. through an encrypted VPN, or within a closed network) or if you care so little for security that you don't mind sending your userid and password across the internet in what amounts to plain text, you can bypass this security check by adding a "-" to the beginning of the userid in your smtproutes file (the "-" will be removed if present.)
Personal tools