Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Built a server (Red Hat 8) waaaaaaay back in 2001 which houses, among other things, my family's email. Run it in my basement on a cable ISP (Comcast). It uses Sendmail. Every few months, Comcast changes my IP address and when that happens, I have to go and redirect the DNS in my Network Solutions page. Well, this happened two weeks ago. Always worked fine in the past, but for some reason it is now not working. The weird thing is that the website is up, but email is not working. Test mails return with the following error:
Technical details of permanent failure:
PERM_FAILURE: Gmail tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further information about the cause of this error. The error that the other server returned was: 553 553 5.3.0 Message from 18.104.22.168 rejected - see http://njabl.org/lookup? 22.214.171.124 (state 13).
The domain is bartlett-family.net. I've checked and Sendmail is running. I even restarted it to be sure. I need some troubleshooting help as I don't know whether this is an issue with address resolution or a more local problem. I'd greatly appreciate any assistance!
It could be that GMail has rejected your email because it is not from a fixed IP address. Some email systems out there will not receive email from dynamically assigned ip addresses.
The solution is to use SMARTHOST and send all of your emails to your ISP's email server for redistribution. This is what I do, but I use Postfix so I can't help you with the sendmail changes you'll need to make.
Hope that helps
EDIT: It may be more likely that the IP address you have now has been used previously by a spambot and has a bad reputation with the DNSBL crowd. The solution is the same though, relay your mail via your ISP.
Last edited by blacky_5251; 05-29-2008 at 01:00 AM.
Thanks for your input. I've checked into the blacklisting and am hoping to be off the few I'm on soon. But I've now noticed something else and I can't help but think there's a connection. My server is giving me repeated messages saying:
126.96.36.199 sent an invalid ICMP error to a broadcast.
I have no idea what this means and don't know what this address is. What I do know is that if I traceroute it from a Windows clients I get:
Tracing route to 188.8.131.52 over a maximum of 30 hops
1 <1 ms <1 ms <1 ms 192.168.5.1
2 7 ms 9 ms 7 ms 184.108.40.206
The 192.168.5.1 is the address of the server itself (eth1), which is facing my LAN. ETH0 is facing the ISP and is getting the address via DHCP. So whatever this other address is, it's only one hop away and I don't see how that is possible. Have I been hacked somehow? Hijacked?
You haven't been hacked - at least I don't think you have been. "dig -x" reveals that IP address belongs to Comcast, so you're probably safe, although as I explained initially I'm not a sendmail expert so I can't interpret the message for you. Here's what "dig" tells us about the suspect IP address:-
Thanks so much for all your help. Let me say, though, that I do relay mail through Comcast (smtp.comcast.net). That was the only way it ever worked. Now, bear in mind that the original error I posted above is not when I try to send from my domain to Gmail, but rather from Gmail to my domain. I am getting very weird behavior here. A few things...
1. When I send a mail from Gmail to my address at my domain, I get the error you see in my original post.
2. When I try to send an email from my domain ON the server to Gmail using the mail command, I get no errors, but no mail delivery either. Never shows up in Gmail, but doesn't seem to error out locally. Is there a log I can check?
3. If I login to the server as root, I can send mail to other users. For example, I logged in as root and typed "mail chris". I sent it. I then checked that chris account on a Windows machine on the LAN with Outlook Express and it was there!
Does that clarify my issue a little more? Sorry if I was unclear earlier.
Perhaps your DNSBL list contains a bad server? This happened to me once where one of the server I checked for RBL and DNSBL went bad. I removed it from the list and mail was back to normal again.
Back to your original post, the error reported from your server to your gmail account is that the IP address 220.127.116.11 has been rejected based on information from njabl.org. Now the IP address 18.104.22.168 is one of Googles, so I don't know why it would be on anyone's bad list. Perhaps you can't rely on njabl.org anymore?