Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Postfix mail being sent, never arrives.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
infecticide
Apprentice
Apprentice


Joined: 10 Mar 2004
Posts: 262
Location: Regina, SK Canada

PostPosted: Fri Nov 23, 2007 4:29 pm    Post subject: Postfix mail being sent, never arrives. Reply with quote

I'm trying to setup email notifications for my websites so that when a user creates an account an email is sent to them for verification, I'm using Drupal.

I can send and receive email just fine with postfix in Thunderbird.

The following comes up in the log files when the mail is sent after the user creates their account.

Code:

Nov 23 10:17:04 [postfix/pickup] D109DC00110: uid=81 from=<apache>
Nov 23 10:17:04 [postfix/cleanup] D109DC00110: message-id=<20071123161704.D109DC00110@server.domain.net>
Nov 23 10:17:04 [postfix/qmgr] D109DC00110: from=<apache@domain.net>, size=1134, nrcpt=1 (queue active)
Nov 23 10:17:05 [postfix/smtp] D109DC00110: to=<user@hotmail.com>, relay=mx1.hotmail.com[65.54.245.8]:25, delay=0.68, delays=0.05/0.01/0.25/0.38, dsn=2.0.0, status=sent (250  <20071123161704.D109DC00110@server.domain.net> Queued mail for delivery)
Nov 23 10:17:05 [postfix/qmgr] D109DC00110: removed



The email never arrives at hotmail and I never get a failure email back.

Any ideas?
Back to top
View user's profile Send private message
magic919
Advocate
Advocate


Joined: 17 Jun 2005
Posts: 2182
Location: Berkshire, UK

PostPosted: Fri Nov 23, 2007 5:21 pm    Post subject: Reply with quote

Hotmail servers silently dumping it or sidelining as spam.
Back to top
View user's profile Send private message
infecticide
Apprentice
Apprentice


Joined: 10 Mar 2004
Posts: 262
Location: Regina, SK Canada

PostPosted: Fri Nov 23, 2007 7:53 pm    Post subject: Reply with quote

Is there a way to prevent this? I checked the spam folder and they're not arriving there.
Back to top
View user's profile Send private message
magic919
Advocate
Advocate


Joined: 17 Jun 2005
Posts: 2182
Location: Berkshire, UK

PostPosted: Fri Nov 23, 2007 8:26 pm    Post subject: Reply with quote

Apart from not sending them to Hotmail...?

You can take some steps. Hotmail and some other providers will want to see your machine has a static IP, reverse DNS that maps back to the domain, valid From address on the message and a valid domain. They may even take note of SPF these days I think, although my domains don't use it and have no problems. Correct and valid FQHN used in the HELO too.

Can't 100% guarantee that everyone will accept your mail all the time but that should do it.
Back to top
View user's profile Send private message
infecticide
Apprentice
Apprentice


Joined: 10 Mar 2004
Posts: 262
Location: Regina, SK Canada

PostPosted: Thu Nov 29, 2007 6:20 pm    Post subject: Reply with quote

- My machine does have a static ip
- I created a mailbox for the user I am sending automated email as.


What do you mean about "reverse DNS that maps back to the domain?"
Back to top
View user's profile Send private message
magic919
Advocate
Advocate


Joined: 17 Jun 2005
Posts: 2182
Location: Berkshire, UK

PostPosted: Thu Nov 29, 2007 6:24 pm    Post subject: Reply with quote

You have a static IP. When you do an nslookup/dig whatever on that IP does it resolve to yourmachine.example.com. That's what I mean about the reverse DNS. Should resolve to something - yet some do not...
Back to top
View user's profile Send private message
infecticide
Apprentice
Apprentice


Joined: 10 Mar 2004
Posts: 262
Location: Regina, SK Canada

PostPosted: Thu Nov 29, 2007 6:27 pm    Post subject: Reply with quote

I think I see what's happened.

The IP address is resolving to my ISP's DNS name for the ip address:

Code:

nslookup 24.72.ooo.xxx

Name:    static24-72-ooo-xxx.city.accesscomm.ca
Address:  24.72.ooo.xxx


Would that do it?
Back to top
View user's profile Send private message
Dagger
Retired Dev
Retired Dev


Joined: 11 Jun 2003
Posts: 765
Location: UK

PostPosted: Thu Nov 29, 2007 7:12 pm    Post subject: Reply with quote

I would recommend this website. This will check few spam blacklists and gives all the reasons why you're there. As long as you are on this list you can forget about sending emails to people who don't like spam.
_________________
95% of all computer errors occur between chair and keyboard (TM)
Join the FSF as an Associate Member!
Post under CC license.
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 3526

PostPosted: Thu Nov 29, 2007 8:26 pm    Post subject: Reply with quote

infecticide wrote:
I think I see what's happened.

The IP address is resolving to my ISP's DNS name for the ip address:

Code:

nslookup 24.72.ooo.xxx

Name:    static24-72-ooo-xxx.city.accesscomm.ca
Address:  24.72.ooo.xxx


Would that do it?


It might. The fact that forward and reverse DNS disagree indicates that you're trying to send out mail directly from inside an ISP service. The most likely conclusion is that your system has been compromised and is a bot spewing spam. That's not to say that you are, that's just the most likely thing to be happening in this circumstance. Like good little sheep, we're supposed to relay through our ISPs smart relay. That also gives them a leg on fighting outgoing spam, if they choose to use it. To be fair, the "spamspewing bot" assumption is probably usually justified.

Personally I use the outbound relay service at DynDNS.org and have an SPF record to match it. You have to authenticate in order to relay out.
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
infecticide
Apprentice
Apprentice


Joined: 10 Mar 2004
Posts: 262
Location: Regina, SK Canada

PostPosted: Fri Nov 30, 2007 7:38 pm    Post subject: Reply with quote

Well my ip isn't on the blacklist, so I can only assume the rDNS issue is culperate.


But why then can I send email from my mail client successfully? I should point out that most, if not all of my mail ends up in the spam folder at hotmail but at least it gets there.
Back to top
View user's profile Send private message
magic919
Advocate
Advocate


Joined: 17 Jun 2005
Posts: 2182
Location: Berkshire, UK

PostPosted: Fri Nov 30, 2007 7:59 pm    Post subject: Reply with quote

You can't really be 100% sure why one specific provider is dumping your mail. If they published all the details it would be great. I guess they don't want spammers working around it.

They might not like your helo, your FQDN, reverse DNS, your subnet, your provider's network, your email address etc.

Your email client is none the wiser. It just hands off to Postfix.

It would be great if they refused the email rather than quietly dumping it, of course.
Back to top
View user's profile Send private message
xbmodder
Guru
Guru


Joined: 25 Feb 2004
Posts: 404

PostPosted: Mon Dec 03, 2007 8:06 am    Post subject: Reply with quote

Hotmail, Yahoo, and several other mail providers have been known to throw out mail from home IP addresses. You can try to find a relay, but that rarely works
_________________
http://xbmodder.us/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum