Internet Marketing Forum

Internet Marketing Forum


For Webmasters and Entrepreneurs
|
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 17, 2012, 12:53:37 PM

Login with username, password and session length

It is said that if you know your enemies and know yourself, you will not be imperiled in a hundred battles; if you do not know your enemies but do know yourself, you will win one and lose one; if you do not know your enemies nor yourself, you will be imperiled in every single battle.


- Sun Tzu

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

SMTP server rejects email because of Spamhaus

0 Members and 2 Guests are viewing this topic.
Pages: [1] Reply to Thread
Author Topic: SMTP server rejects email because of Spamhaus  (Read 4881 times)
OfflineBrunoBertoli
Beginner
BrunoBertoli is on a distinguished road
Joined: Oct 2007
Posts: 33


anonymous avatar

View BrunoBertoli\s Profile
Italy
notepad Mar 03, 2008, 09:21:46 PM #1
Hello,

Today I tried to send an email using Thunderbird, but server responded :

"An error occurred while sending mail. The mail server responded:
http://www.spamhaus.org/query/bl?ip=xxx.xxx.xxx.xxx. Please check the message recipients and try again."

.....where xxx.xxx.xxx.xxx is my own IP address. Please note that this is the first time I send an email from my normal account and to the same recipient.
I'm using a DSL connection with a dynamic DHCP IP assignment.

How can I fix this?

Thank you.
Offlineneutron
New Member
neutron is on a distinguished road
Joined: Mar 2008
Posts: 5


anonymous avatar

View neutron\s Profile
United States
notepad Mar 04, 2008, 04:52:49 PM #2
Your IP is blacklisted in the Spamhus database. This is common is you are using a large ISP for your DSL, dial-up or cable modem. There are several solutions for this problem...

1. Use your ISP's SMTP mail server to relay your e-mail (most allow it)
2. If you are the admin of the server, you can remove spamhaus from your blacklists
3. If you're not the admin and you are hosting, contact your support, this is their responsibility.
OfflineBrunoBertoli
Beginner
BrunoBertoli is on a distinguished road
Joined: Oct 2007
Posts: 33


anonymous avatar

View BrunoBertoli\s Profile
Italy
notepad Mar 30, 2008, 05:44:52 PM #3
OK, I used your advise #1 and use my ISP to relay mail and is working for me.
OfflineJens Peter
Beginner
Jens Peter is on a distinguished road
Joined: Jun 2008
Posts: 38


Avatar of Jens Peter

.xxx:::.! Hello World !.:::xxx.

View Jens Peter\s Profile
Gender: MaleTaurus Germany
notepad Jun 16, 2008, 08:07:29 PM #4
I'm having the same problem but my ISP won't allow relaying from outside domains. Everything was working fine on my server until I switched to Verizon DSL and now I can't send any email through my own dedicated server.

I am using Red Hat Linux as the OS and I have SSH access to root account.

Any ideas ?
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 Jun 16, 2008, 08:15:15 PM #5
Jens, run the following command from SSH and post the results back here

ps ax | grep spam | grep -v grep

I'm also running RHEL on my server and I had problems when I was visiting family and they had Verizon DSL. You're probably going to have to whitelist your ip if you're server is running qmail.

Latest Blog Post : 8 Tips for Creating a Marketing Buzz

OfflineJens Peter
Beginner
Jens Peter is on a distinguished road
Joined: Jun 2008
Posts: 38


Avatar of Jens Peter

.xxx:::.! Hello World !.:::xxx.

View Jens Peter\s Profile
Gender: MaleTaurus Germany
notepad Jun 16, 2008, 08:49:12 PM #6
Seriously hope you can help me with this. Haven't been able to send mail for two days now  Sad  POP is working fine.

this is the output of  ps ax | grep spam | grep -v grep


18087 ?        S      1:06 /usr/bin/tcpserver -v -R -H -l ns1.myhostname.com -x /etc/tcprules.d/tcp.smtp.cdb -c 100 -u 89 -g 89 0 smtp /usr/bin/rblsmtpd -r zen.spamhaus.org /var/qmail/bin/qmail-smtpd /home/vpopmail/bin/vchkpw /bin/true
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 Jun 16, 2008, 09:12:02 PM #7
OK, no problem here. Your running qmail and your tcpserver is set to check the RBL @ spamhaus.org before it does the password authentication. This is a pretty standard setup but Verizon has this policy

Quote
From : http://www.spamhaus.org/pbl/query/PBL195571
It is the policy of Verizon Online that unauthenticated email sent from this IP address should be sent out only via the designated outbound mail server allocated to Verizon Online customers. To find the hostname of the correct mail server to use, customers should consult the original signup documentation or contact Verizon Online Technical Support.

So, your IP is automatically listed in the Policy Block List (PBL)   Anonymous

What you have to do is whitelist your IP (or IP block) to allow you to relay mail through your server. Here's how you do it :

Get your IP address (you can use http://www.whatismyip.com/), then SSH to your server and go to the following directory

Code:
cd /etc/tcprules.d/

Open the file tcp.smtp and add the following line (where xxx.xxx.xxx.xxx is your IP address):

Code:
xxx.xxx.xxx.xxx:allow,RELAYCLIENT="",RBLSMTPD=""

Run the following command to recreate the rules file

Code:
qmailctl cdb

That should do it !!!

Good Luck




Latest Blog Post : 8 Tips for Creating a Marketing Buzz

OfflineJens Peter
Beginner
Jens Peter is on a distinguished road
Joined: Jun 2008
Posts: 38


Avatar of Jens Peter

.xxx:::.! Hello World !.:::xxx.

View Jens Peter\s Profile
Gender: MaleTaurus Germany
notepad Jun 16, 2008, 09:53:42 PM #8
AAAAHHHH, Thank you so much !!!! 

One more question for you Dave.... will I have to do this process again if my IP changes ?
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 Jun 17, 2008, 03:08:14 AM #9
Yeah, it's a pain but you'll have to keep repeating the process. You can specify a block of IP's like this

Code:
xxx.xxx.xxx.:allow,RELAYCLIENT="",RBLSMTPD=""

or even

Code:
xxx.xxx.:allow,RELAYCLIENT="",RBLSMTPD=""

but both implementations create distinct vunerabilities. It's worth the effort to manually update on IP change. It probably possible to write a password protected Perl script that runs in a browser and updates a config file that is processed on the Crontab at regular intervals but that's another story.

Latest Blog Post : 8 Tips for Creating a Marketing Buzz

Sell Your Website - WebsiteBroker.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.