<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.qmailtoaster.org:80/index.php?action=history&amp;feed=atom&amp;title=Smtproutes</id>
	<title>Smtproutes - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.qmailtoaster.org:80/index.php?action=history&amp;feed=atom&amp;title=Smtproutes"/>
	<link rel="alternate" type="text/html" href="http://wiki.qmailtoaster.org:80/index.php?title=Smtproutes&amp;action=history"/>
	<updated>2026-04-29T14:13:41Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>http://wiki.qmailtoaster.org:80/index.php?title=Smtproutes&amp;diff=444&amp;oldid=prev</id>
		<title>Ebroch at 20:20, 26 March 2024</title>
		<link rel="alternate" type="text/html" href="http://wiki.qmailtoaster.org:80/index.php?title=Smtproutes&amp;diff=444&amp;oldid=prev"/>
		<updated>2024-03-26T20:20:48Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:20, 26 March 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l33&quot;&gt;Line 33:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 33:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The &amp;#039;&amp;#039;&amp;#039;qmail&amp;#039;&amp;#039;&amp;#039; system does not protect you if you create an artificial mail loop between machines. However, you are always safe using &amp;lt;u&amp;gt;smtproutes&amp;lt;/u&amp;gt; if you do not accept mail from the network.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The &amp;#039;&amp;#039;&amp;#039;qmail&amp;#039;&amp;#039;&amp;#039; system does not protect you if you create an artificial mail loop between machines. However, you are always safe using &amp;lt;u&amp;gt;smtproutes&amp;lt;/u&amp;gt; if you do not accept mail from the network.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;http://wiki.qmailtoaster.org/index.php?title=&lt;/del&gt;Control_Files_by_Function#qmail-remote qmail-remote]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Control_Files_by_Function#qmail-remote&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|&lt;/ins&gt;qmail-remote]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Ebroch</name></author>
	</entry>
	<entry>
		<id>http://wiki.qmailtoaster.org:80/index.php?title=Smtproutes&amp;diff=431&amp;oldid=prev</id>
		<title>Ebroch at 20:07, 26 March 2024</title>
		<link rel="alternate" type="text/html" href="http://wiki.qmailtoaster.org:80/index.php?title=Smtproutes&amp;diff=431&amp;oldid=prev"/>
		<updated>2024-03-26T20:07:46Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:07, 26 March 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l32&quot;&gt;Line 32:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 32:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The &amp;#039;&amp;#039;&amp;#039;qmail&amp;#039;&amp;#039;&amp;#039; system does not protect you if you create an artificial mail loop between machines. However, you are always safe using &amp;lt;u&amp;gt;smtproutes&amp;lt;/u&amp;gt; if you do not accept mail from the network.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The &amp;#039;&amp;#039;&amp;#039;qmail&amp;#039;&amp;#039;&amp;#039; system does not protect you if you create an artificial mail loop between machines. However, you are always safe using &amp;lt;u&amp;gt;smtproutes&amp;lt;/u&amp;gt; if you do not accept mail from the network.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[http://wiki.qmailtoaster.org/index.php?title=Control_Files_by_Function#qmail-remote qmail-remote]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Ebroch</name></author>
	</entry>
	<entry>
		<id>http://wiki.qmailtoaster.org:80/index.php?title=Smtproutes&amp;diff=61&amp;oldid=prev</id>
		<title>Ebroch: Created page with &quot;&lt;u&gt;&#039;&#039;&#039;smtproutes&#039;&#039;&#039;&lt;/u&gt;  This option can be very useful when sending email to flaky or large domains.  As an example, we send a lot of email to sympatico.ca users, and they are always making changes to their DNS, which sometimes cause CNAME lookup failure errors on our mail server.  To get around this, I did a &#039;dig&#039; of their domain for MX records, and got this:    ANSWER SECTION:   sympatico.ca.           59      IN      MX      5 toip4.bellnexxia.net.   sympatico.ca....&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.qmailtoaster.org:80/index.php?title=Smtproutes&amp;diff=61&amp;oldid=prev"/>
		<updated>2024-03-16T05:42:30Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;u&amp;gt;&amp;#039;&amp;#039;&amp;#039;smtproutes&amp;#039;&amp;#039;&amp;#039;&amp;lt;/u&amp;gt;  This option can be very useful when sending email to flaky or large domains.  As an example, we send a lot of email to sympatico.ca users, and they are always making changes to their DNS, which sometimes cause CNAME lookup failure errors on our mail server.  To get around this, I did a &amp;#039;dig&amp;#039; of their domain for MX records, and got this:    ANSWER SECTION:   sympatico.ca.           59      IN      MX      5 toip4.bellnexxia.net.   sympatico.ca....&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;u&amp;gt;&amp;#039;&amp;#039;&amp;#039;smtproutes&amp;#039;&amp;#039;&amp;#039;&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This option can be very useful when sending email to flaky or large domains.  As an example, we send a lot of email to sympatico.ca users, and they are always making changes to their DNS, which sometimes cause CNAME lookup failure errors on our mail server.  To get around this, I did a &amp;#039;dig&amp;#039; of their domain for MX records, and got this:&lt;br /&gt;
&lt;br /&gt;
  ANSWER SECTION:&lt;br /&gt;
  sympatico.ca.           59      IN      MX      5 toip4.bellnexxia.net.&lt;br /&gt;
  sympatico.ca.           59      IN      MX      5 toip5.bellnexxia.net.&lt;br /&gt;
  sympatico.ca.           59      IN      MX      5 toip6.bellnexxia.net.&lt;br /&gt;
  sympatico.ca.           59      IN      MX      5 toip7.bellnexxia.net.&lt;br /&gt;
  sympatico.ca.           59      IN      MX      5 toip1.bellnexxia.net.&lt;br /&gt;
  sympatico.ca.           59      IN      MX      5 toip2.bellnexxia.net.&lt;br /&gt;
  sympatico.ca.           59      IN      MX      5 toip3.bellnexxia.net.&lt;br /&gt;
&lt;br /&gt;
Which as you can see is a dirty lookup since their email get&amp;#039;s redirected to a different domain name, which in turn can cause CNAME lookup failures.  No problem.  I chose one of their mail servers by random (ping it&amp;#039;s name to get the IP address), and added the following to my /var/qmail/control/smtproutes file to FORCE all emails to user@sympatico.ca to go to that particular IP address:&lt;br /&gt;
&lt;br /&gt;
  sympatico.ca:209.226.175.87&lt;br /&gt;
&lt;br /&gt;
Some pitfalls to note on this: you will no longer be using DNS to find the mail server for users at that domain name.  If the server you choose is down, email will not get delivered since it will no longer try and move to the next MX record in DNS.  Be careful with this.  If they decide to change mail servers (to different IP addresses), email will no longer get delivered to this domain until you change the IP address used in the smptroutes file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note, the qmail-remote-auth patch has been applied to the toaster, so you may specify a username and password in the smtproutes entry:&lt;br /&gt;
  desinationdomain.com:relay.server.com:port|username|password&lt;br /&gt;
&lt;br /&gt;
man &amp;#039;&amp;#039;&amp;#039;qmail-remote&amp;#039;&amp;#039;&amp;#039; excerpt:&lt;br /&gt;
&lt;br /&gt;
Artificial SMTP routes. Each route has the form &amp;lt;u&amp;gt;domain&amp;lt;/u&amp;gt;:&amp;lt;u&amp;gt;relay&amp;lt;/u&amp;gt;, without any extra spaces. If &amp;lt;u&amp;gt;domain&amp;lt;/u&amp;gt; matches &amp;lt;u&amp;gt;host&amp;lt;/u&amp;gt;, &amp;#039;&amp;#039;&amp;#039;qmail-remote&amp;#039;&amp;#039;&amp;#039; will connect to &amp;lt;u&amp;gt;relay&amp;lt;/u&amp;gt;, as if &amp;lt;u&amp;gt;host&amp;lt;/u&amp;gt; had &amp;lt;u&amp;gt;relay&amp;lt;/u&amp;gt; as its only MX. (It will also avoid doing any CNAME lookups on &amp;lt;u&amp;gt;recip&amp;lt;/u&amp;gt;.) &amp;lt;u&amp;gt;host&amp;lt;/u&amp;gt; may include a colon and a port number to use instead of the normal SMTP port, 25:&lt;br /&gt;
  inside.af.mil:firewall.af.mil:26&lt;br /&gt;
&amp;lt;u&amp;gt;relay&amp;lt;/u&amp;gt; may be empty; this tells &amp;#039;&amp;#039;&amp;#039;qmail-remote&amp;#039;&amp;#039;&amp;#039; to look up MX records as usual. &amp;lt;u&amp;gt;port&amp;lt;/u&amp;gt; value of smtps (465) causes TLS session to be started. &amp;lt;u&amp;gt;smtproutes&amp;lt;/u&amp;gt; may include wildcards:&lt;br /&gt;
  .af.mil:&lt;br /&gt;
  :heaven.af.mil&lt;br /&gt;
Here any address ending with &amp;#039;&amp;#039;&amp;#039;.af.mil&amp;#039;&amp;#039;&amp;#039; (but not &amp;#039;&amp;#039;&amp;#039;af.mil&amp;#039;&amp;#039;&amp;#039; itself) is routed by its MX records; any other address is artificially routed to &amp;#039;&amp;#039;&amp;#039;heaven.af.mil&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;qmail&amp;#039;&amp;#039;&amp;#039; system does not protect you if you create an artificial mail loop between machines. However, you are always safe using &amp;lt;u&amp;gt;smtproutes&amp;lt;/u&amp;gt; if you do not accept mail from the network.&lt;/div&gt;</summary>
		<author><name>Ebroch</name></author>
	</entry>
</feed>