|
Pages: [1] |  |
|
|
Author
|
Topic: Verizon/Spamhaus : Qmail SMTP Relay Control with /etc/tcprules.d/tcp.smtp (Read 5214 times)
|
    Joined: Jan 2006 Posts: 6215
Administrator
 
 United States
|
Jul 05, 2008, 01:58:09 AM | #1 |
If you're running Qmail and you're used to relaying through your own ISP and you happen to end up on a network like Verizon who don't allow any relaying through their mail servers like the normal high speed providers like Roadrunner, you're going to have to set your Qmail server to accept connection from your IP exclusively. More often than not, if your server is using an RBL list, specifically Spamhaus
#1 - You don't want to turn Spamhaus RBL off because that is an "all or nothing solution". The RBL does more help than harm so what you need to do is open your server's incoming mail relay to accept emails sent *only* from your IP address.
This can be done by editing the relaying rules for qmail. The access authorization file is :
/etc/tcprules.d/tcp.smtp
To allow relaying from localhost, you have to add
127.:allow,RELAYCLIENT=""
This setting will allow Qmail SMTP server to send email from any IP starting with 127.X.X.X
IP 127.0.0.1 is used by localhost and this is good for applications running on your server but we need to allow relaying from your IP address.. If your IP address is 192.144.33.121, we add following to the tcp.smtp file :
127.:allow,RELAYCLIENT="" 192.144.33.121:allow,RELAYCLIENT=""
After you've edited the tcp.smtp file, you'll need to run the tcprules command to add the rule to qmail compiled database (/etc/tcprules.d/cp.smtp.cdb). To do that, issue the following command :
# tcprules /etc/tcprules.d/tcp.smtp.cdb /etc/tcprules.d/tcp.smtp.tmp < /etc/tcprules.d/tcp.smtp
Note: If you can't find the files (/etc/tcprules.d/tcp.smtp.cdb) and (/etc/tcprules.d/tcp.smtp) try looking for /etc/tcp.smtp
Some systems store the files in /etc and others store them in /etc/tcprules.d/
Explaination: The tcp.smtp.cdb file is the complied database file for the plain text in tcp.smtp file. It contains IP's that your server is allowed to relay mail for. When you send an email using your home or business ISP account, you are relaying the mail from that network to your server's network.
Please be warned : Allowing trusted IP's to relay mail through your server can be dangerous if you're not proactive or you allow too many permissions.
|
|
Latest Blog Post :
8 Tips for Creating a Marketing Buzz
|
|
| |
|
 Joined: Oct 2007 Posts: 79
 
United States
|
Aug 02, 2008, 10:54:04 AM | #2 |
| Verizon is still living in the 1990's. Turning off relaying for valid customers while blocking port 25 is ridiculous. I would find another ISP. |
|
Latest Blog Post :
PHP – Pass by Reference or Pass by Value
|
|
|
 Joined: Aug 2008 Posts: 3

United States
|
Aug 24, 2008, 11:23:30 PM | #3 |
I agree, go for bright house  |
|
|
|
|
    Joined: Jan 2006 Posts: 6215
Administrator
 
 United States
|
Aug 25, 2008, 12:18:54 AM | #4 |
| Unfortunately I have two homes and my summer home in Delaware is only serviced by Verizon+Comcast. When I'm back in Florida, I'm on Brighthouse network and having been a BellSouth DSL customer for 7 years, the best move I ever made was dumping Bellsouth DSL for BrightHouse cable modem. Plus, I got to dump my sattelite (DISH) service and I get voice, cable, internet all in one nice monthly bill I can suspend for the 6 months I'm away from Florida (saving me thousands of $$$ per year). |
|
Latest Blog Post :
8 Tips for Creating a Marketing Buzz
|
|
|
 |
|
Pages: [1]
|
|
|
 |