Difference between revisions of "Qmail relay setup"

From Noah.org
Jump to navigationJump to search
(New page: Category:Engineering Category:mail You want to relay mail through your qmail server. This will only work if you are coming from a specific IP address. This is not very useful if yo...)
 
Line 1: Line 1:
 
[[Category:Engineering]]
 
[[Category:Engineering]]
[[Category:mail]]
+
[[Category:Mail]]
 
You want to relay mail through your qmail server. This will only work if you are coming from a specific IP address. This is not very useful if you are on the road, but it's good if you have a static IP address at home.
 
You want to relay mail through your qmail server. This will only work if you are coming from a specific IP address. This is not very useful if you are on the road, but it's good if you have a static IP address at home.
  
Line 8: Line 8:
 
127.:allow,RELAYCLIENT=""
 
127.:allow,RELAYCLIENT=""
 
67.138.110.125:allow,RELAYCLIENT=""
 
67.138.110.125:allow,RELAYCLIENT=""
 +
66.18.10.:allow,RELAYCLIENT=""
 
</pre>
 
</pre>
  
Line 13: Line 14:
  
 
<pre>
 
<pre>
cat /etc/tcp.smtp | tcprules /etc/tcp.smtp.cdb ~/tcp.smtp.tmp
+
tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp < /etc/tcp.smtp
 
</pre>
 
</pre>
 +
 +
You don't have to restart qmail.

Revision as of 12:50, 20 August 2007

You want to relay mail through your qmail server. This will only work if you are coming from a specific IP address. This is not very useful if you are on the road, but it's good if you have a static IP address at home.

Edit /etc/tcp.smtp. The first line should be the default which allows the local machine to send mail. The second line is the IP address of the machine you want to allow relaying through your qmail SMTP server. You can add additional lines for other acceptable hosts:

127.:allow,RELAYCLIENT=""
67.138.110.125:allow,RELAYCLIENT=""
66.18.10.:allow,RELAYCLIENT=""

Then rebuild your tcp.smtp.cdb databse:

tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp < /etc/tcp.smtp

You don't have to restart qmail.