The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> System Administration
> Mail Server Help
|
Ip address may be forged
Discuss Ip address may be forged in the Mail Server Help forum on Dev Shed. Ip address may be forged Mail Server Help forum discussing tips, tricks, techniques and Spam containment solutions. Topics include mail servers such as Sendmail and Qmail, webmail interfaces such as Squirrelmail and Horde and spam solutions such as SpamAssassin and Bayesian
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

September 26th, 2011, 04:03 PM
|
 |
They're coming to take me away
|
|
Join Date: Jan 2005
Location: Florida
|
|
|
Ip address may be forged
So I have a server that I hardly ever use other than for hosting websites for personal/developmental purposes. For this reason, I never really needed the mail server working at 100%. (Although, this server used to work fine in the past before it was updated to latest Sendmail version). I'm running Fedora Core, and my problem is that I can almost get my server to send email. I have about 15 domains here.
Yesterday is when I noticed the problem. (I have 2 people that want me to host their site because they don't want to pay the yearly price they normally would... and they are family, so I didn't want to say no). Anyways, here's I noticed as of yesterday:
I could not send from within any of the domains, using mail.domain.com. I kept receiving the error message IP address may be resolved.
I was able to send via Webmail (Squirrelmail) no problem, and I could send if I changed the SMTP server to smarthost provided from my ISP.
I eventually figured this problem out... Had to make sure all the domains were listed properly in:
/etc/hosts
All of the domains were correctly listed in
/etc/mail/local-host-names
When I added them to /etc/hosts, it seemed to work. Until I tried adding the accounts on my phone. Then I noticed the same IP forged error within /var/log/maillog.
Now I'm lost as to what to try as everything seems to fail:
- Within Sendmail conf, I have changed the Smarthost line to my ISP's smarthost
- I have, within the Sendmail conf, explicitly named the IP address needed
- I have added the domains to access and hosts.allow files
- I have added the domains to the Outgoing list
- I have 1 of the domains set with an SPF record (I only set up 1 so that I could test with and without an SPF to see if either way will work)
I'm currently in the process of setting up Authentication to see if that works, but figured I'd ask here to see if anyone has any additional ideas I can try.
Thanks for any input and if you need further info, just let me know.
__________________
"I don't need to get a life. I'm a gamer. I have lots of lives!"
|

September 29th, 2011, 06:51 PM
|
|
Contributing User
|
|
Join Date: May 2004
Location: surfing the interwebz
|
|
|
Hi Hiker, did you have any luck figuring this out? I'm curious as to what the culprit was.
|

September 29th, 2011, 11:03 PM
|
 |
They're coming to take me away
|
|
Join Date: Jan 2005
Location: Florida
|
|
|
Not yet. I've just informed them to use Webmail for now and let them know that if they want a reliable host, that they should actually host it elsewhere. So at that point, I'll work on it more. Don't want to keep taking it down over and over while trying to figure this out until I'm not actually hosting their mail.
That's one of the reasons I posted... was hoping someone could tell me the culprit so I could make a quick change or two and have it working as it should.
But I will let you know if I do come across the answer. I've seen many posts like this on various forums and searches, but nothing seems to fix the problem except the possibility of setting up AUTH. Which, because of my install, would require me to disable my current install and reinstall from a tarball.
|

October 1st, 2011, 07:22 PM
|
|
Contributing User
|
|
Join Date: May 2004
Location: surfing the interwebz
|
|
|
What was the error message again? Almost sounds like a dns issue or an authentication issue since you have to use a smart host.
Last edited by seack79 : October 2nd, 2011 at 04:42 PM.
|

October 2nd, 2011, 12:59 AM
|
|
|
|
Why do you need to edit /etc/hosts on the mail server? For email to work from anywhere outside your LAN DNS pretty much needs to work for your mail domain, and you shouldn't need to mess with the hosts file. External mail clients need to properly resolve your domain MX to your server external IP, and you need to have SMTP open through any firewalls (and your isp).
You also need a reverse DNS ptr set up, which you can't do through a hosts filee, and it wouldn't make any difference, it's the receiving server that does the reverse IP lookup.
__________________
======
Doug G
======
It is a truism of American politics that no man who can win an election deserves to. --Trevanian, from the novel Shibumi
|

October 2nd, 2011, 11:40 AM
|
 |
They're coming to take me away
|
|
Join Date: Jan 2005
Location: Florida
|
|
Quote: | Originally Posted by Doug G Why do you need to edit /etc/hosts on the mail server? For email to work from anywhere outside your LAN DNS pretty much needs to work for your mail domain, and you shouldn't need to mess with the hosts file.
|
Without the domains listed in /etc/hosts, I wasn't even able to send from one of my domains to another one of mine.
Quote:
External mail clients need to properly resolve your domain MX to your server external IP, and you need to have SMTP open through any firewalls (and your isp). |
The SMTP port is open through firewalls and ISP. I have been able to send in the past as well using this same server, but with an older version of Sendmail. Sendmail, by default now, has changed the way relaying is allowed/denied which, according to various searches, seems to be the problem for the forging error message. Although, I can't find an exact solution online...
Quote: |
You also need a reverse DNS ptr set up, which you can't do through a hosts filee, and it wouldn't make any difference, it's the receiving server that does the reverse IP lookup. |
Reverse DNS is already set up at the ISP. When I do a lookup, my IP properly shows my domain name.
Thanks for the reply.
|

October 2nd, 2011, 04:46 PM
|
|
Contributing User
|
|
Join Date: May 2004
Location: surfing the interwebz
|
|
|
Not being able to send mail from one domain to another sounds like a dns issue; is your server providing dns services?
|

October 2nd, 2011, 06:26 PM
|
 |
They're coming to take me away
|
|
Join Date: Jan 2005
Location: Florida
|
|
Quote: | Originally Posted by seack79 Not being able to send mail from one domain to another sounds like a dns issue; is your server providing dns services? |
Yes. I have a DNS server running as well.
|

October 3rd, 2011, 07:19 PM
|
|
Contributing User
|
|
Join Date: May 2004
Location: surfing the interwebz
|
|
|
If you run nslookup on the server for the domain names what do you get?
|

October 3rd, 2011, 07:26 PM
|
 |
They're coming to take me away
|
|
Join Date: Jan 2005
Location: Florida
|
|
Quote: | Originally Posted by seack79 If you run nslookup on the server for the domain names what do you get? |
I receive a Non-authoritative answer of the external IP address for each of the domains on the server.
|

October 3rd, 2011, 09:02 PM
|
|
Contributing User
|
|
Join Date: May 2004
Location: surfing the interwebz
|
|
|
If you run nslookup on the server for the domain names what do you get?
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|