Internet Marketing Forum

Internet Marketing Forum


For Webmasters and Entrepreneurs
468x60 Russell Simmons
|
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 17, 2012, 12:54:44 PM

Login with username, password and session length

The power of intuitive understanding will protect you from harm until the end of your days.


- Lao Tzu

|-   Internet Marketing Forum > Online Business Discussions > Website Design and Maintenance > Administration
+  

Verizon/Spamhaus : Qmail SMTP Relay Control with /etc/tcprules.d/tcp.smtp

0 Members and 3 Guests are viewing this topic.
Pages: [1] Reply to Thread
Author Topic: Verizon/Spamhaus : Qmail SMTP Relay Control with /etc/tcprules.d/tcp.smtp  (Read 5214 times)
OfflineCode4Gold
Administrator
Code4Gold is a jewel in the roughCode4Gold is a jewel in the roughCode4Gold is a jewel in the roughCode4Gold is a jewel in the rough
Joined: Jan 2006
Posts: 6215


Avatar of Code4Gold

Administrator

View Code4Gold\s ProfileWWW
Gender: MaleGemini United States
notepad 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

Quote
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 :

Quote
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 :

Quote
# 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

OfflineAceCoder
Junior Member
AceCoder is on a distinguished road
Joined: Oct 2007
Posts: 79



View AceCoder\s ProfileWWW
United States
notepad 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

Offlineinnovign
New Member
innovign is on a distinguished road
Joined: Aug 2008
Posts: 3


anonymous avatar

View innovign\s Profile
United States
notepad Aug 24, 2008, 11:23:30 PM #3
I agree, go for bright house  Wink

OfflineCode4Gold
Administrator
Code4Gold is a jewel in the roughCode4Gold is a jewel in the roughCode4Gold is a jewel in the roughCode4Gold is a jewel in the rough
Joined: Jan 2006
Posts: 6215


Avatar of Code4Gold

Administrator

View Code4Gold\s ProfileWWW
Gender: MaleGemini United States
notepad 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

Summer Savings! $7.49 .com domains at GoDaddy.com!
Pages: [1] Reply to Thread


Code4Gold Internet Marketing Forum © 2006-2011 Resdaz Media LLC - All Rights Reserved
Forum Software Powered by SMF - © 2001-2008, Lewis Media. All Rights Reserved.