LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-23-2005, 02:21 PM   #1
dcabbar
LQ Newbie
 
Registered: Jul 2005
Posts: 4

Rep: Reputation: 0
SMTP & Reverse Lookup


Hi,

I have two domains hosted on my linux, and while e-mails sent from one domain goes through fine (to yahoo), the ones sent from the second domain is silently discarded by yahoo, and I am a bit confused about this.

Assuming that I am sending an e-mail from an e-mail address myuser@mydomain.com with HELO: xyz.com and from IP address x.x.x.x, can anyone explain (in Layman's terms) how the receiving SMTP server performs reverse lookup in detail? I have tried to find how it works, but getting a bit confusing explanations.

Basically, when the recipient's SMTP server receives this message, does it:

i) Perform a reverse lookup on x.x.x.x and try to find out if this IP has a valid hostname and leaves it at that?

ii) Perform a reverse lookup on x.x.x.x and finds out the hostname (xyz2.com), and checks that xyz2.com is equal to xyz.com?

iii) Perform an IP lookup for xyz.com and checks that x.x.x.x is equal to this IP address?


Also, how does myuser@mydomain.com fit into this picture? Does the receiving SMTP try to match that with xyz.com and/or x.x.x.x?

I would appreciate it if someone can explain the details here...

Thanks...

Last edited by dcabbar; 10-23-2005 at 02:25 PM.
 
Old 10-24-2005, 08:50 AM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
To quote from the ever so lovely "Linux Email" book (Reviewed shortly!) ISBN 1-904811-37-X

All three are checked..

The ehlo provided by your email MTA server/client should be it's own fqdn.
So long your ip number reverse resolves ok, the receiving server has no reason to drop you so far.
You may get dropped if the reverse record doesn't match the ehlo hostname. (strict controls)

If you check your reverse dns, you may find your isp hasn't registered your hostname, rather their own.
In which case, change your hostname to match their name, or get your isp to update their dns records to your fqdn domain name.

Checks may also be made against the sender's domain dns A & MX records.
Mail from xyz.com should come from xyz.com's smtp servers..
If both of these records exist, and point back to your fqdn, that's ok.
An A record is the fqdn domain name, and MX is the mail server name.

There may be some more checks using SPF dns records, info at http://spf.pobox.com/

Then there are the usual block/blacklists and bad recipient addresses etc
Yahoo will only accept mail for it's domains, not for relay.
 
Old 10-24-2005, 04:26 PM   #3
dcabbar
LQ Newbie
 
Registered: Jul 2005
Posts: 4

Original Poster
Rep: Reputation: 0
How does this work on shared hosting scenarios though? The domain part of mail sender's e-mail address never matches SMTP server and/or EHLO in these cases.
 
Old 10-25-2005, 04:37 AM   #4
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
That's fine..
It doesn't need to match..
So long as there's a connection in dns between your email sender's domain name and the ip number of your server, with at least an A or MX record and also an SPF record, the spam checks will pass.

The A record isn't necessary as many sites have separate mail and other servers, but the MX and SPF records should point to your email server's hostname and ip address. These are enough proof that it's the correct server for the domain used as the sender's address.
 
Old 10-25-2005, 12:38 PM   #5
dcabbar
LQ Newbie
 
Registered: Jul 2005
Posts: 4

Original Poster
Rep: Reputation: 0
I am a bit confused about this, and not sure if these checks are reasonable.

Suppose you are hosted on a share hosting with your own IP address, and you are using a clustered e-mail solution. Then, the SMTP, which is sending out the e-mail via web --i.e. PHP code--, will have a different IP then your own domain, and your MX records will be point to a different server. This is not an extreme stretch, and a typical configuration nowadays.

In this case, your e-mails that you send from your web page will be marked as SPAM according to what you are saying, right?

Thanks...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bind and reverse lookup, something ain't right. Sizam Linux - Networking 1 04-25-2005 06:51 PM
reverse lookup question greyhammer Linux - Networking 1 01-26-2005 03:50 PM
Reverse lookup on Postfix Phaethar Linux - Software 1 05-03-2004 04:00 PM
Bind reverse lookup Kostko Linux - Networking 2 12-07-2002 09:06 AM
reverse DNS lookup phil1076 Linux - General 1 01-22-2002 03:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration