#1  
Old 9th February 2011, 14:46
ShadyB ShadyB is offline
Junior Member
 
Join Date: Nov 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation Email Problems

Hi there all,

I seem to have some issues with my mail (SPF related I think).

Basically my setup is this.

I have 4 servers running.
  • DNS Server
  • Mail Server
  • Webserver #1
  • Webserver #2

Now, the main mail server is running perfectly fine using a slightly customised variant of the 'Virtual Users With MySQL Postfix' setup.

The issue I'm having (which isn't really related to that mail server) is that on the webservers, some people using the PHP mail function aren't having their messages delivered. The server is trying to deliver them via sendmail.

From what I gather it may have something to do with reverse lookups, but I'm not sure.

Is it fine to have sendmail running standalone on the server, or do I need to install Postfix on the webservers as well?

My mail log file looks like this..

Code:
Feb  9 13:42:37 webforma sendmail[27691]: p19Dgamu027691: from=webforma, size=186, class=0, nrcpts=1, msgid=<201102091342.p19Dgamu027691@webforma.core01.zen-studios.com>, relay=webforma@localhost
Feb  9 13:42:37 webforma sm-mta[27692]: p19Dgbfd027692: from=<webforma@webforma.core01.zen-studios.com>, size=439, class=0, nrcpts=1, msgid=<201102091342.p19Dgamu027691@webforma.core01.zen-studios.com>, proto=ESMTP, daemon=MTA-v4, relay=localhost.localdomain [127.0.0.1]
Feb  9 13:42:37 webforma sendmail[27691]: p19Dgamu027691: to=lbrooks@webforma.co.uk, ctladdr=webforma (1001/1001), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30186, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (p19Dgbfd027692 Message accepted for delivery)
Feb  9 13:42:39 webforma sm-mta[27694]: p19Dgbfd027692: to=<lbrooks@webforma.co.uk>, ctladdr=<webforma@webforma.core01.zen-studios.com> (1001/1001), delay=00:00:02, xdelay=00:00:02, mailer=esmtp, pri=120439, relay=mailserver.webforma.co.uk. [213.171.216.118], dsn=5.1.1, stat=User unknown
Feb  9 13:42:39 webforma sm-mta[27694]: p19Dgbfd027692: p19Dgdfd027694: DSN: User unknown
Feb  9 13:42:39 webforma sm-mta[27694]: p19Dgdfd027694: to=<webforma@webforma.core01.zen-studios.com>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30000, dsn=2.0.0, stat=Sent
I'm not too sure what the DSN errors mean, or why it's saying user unknown.

Any help on this matter would be greatly appreciated.

Edit: Just to clarify, the webserver in question is 'webforma.core01.....', and it's obviously delivering to mailserver.webforma.co.uk.
I could see how it might be confusing.

Last edited by ShadyB; 9th February 2011 at 14:49.
Reply With Quote
Sponsored Links
  #2  
Old 10th February 2011, 19:47
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Can you post an excerpt from the same time from the mail log on the mail server?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 10th February 2011, 23:24
ShadyB ShadyB is offline
Junior Member
 
Join Date: Nov 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Unfortunately I can't access the logs on the other mail server.

The strange thing is some servers will accept the emails, but others will reject it (so I know it's not a problem with sendmail on the actual webserver.

Any other suggestions?
Reply With Quote
  #4  
Old 10th February 2011, 23:37
ShadyB ShadyB is offline
Junior Member
 
Join Date: Nov 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry for the double post, but on another note..

Say I have the domain "example.com" who's mail is handled on one server, and I want to send mail (e.g through sendmail) from another server, what are the relevant SPF records I'd need in my DNS zonefile?

I've tried to read up on it but there's so many variations so I'm quite confused.

Thanks in advance!
Reply With Quote
  #5  
Old 11th February 2011, 14:36
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Quote:
Originally Posted by ShadyB View Post
Unfortunately I can't access the logs on the other mail server.

The strange thing is some servers will accept the emails, but others will reject it (so I know it's not a problem with sendmail on the actual webserver.

Any other suggestions?
Please make sure that your server isn't blacklisted: http://mxtoolbox.com/blacklists.aspx

Quote:
Say I have the domain "example.com" who's mail is handled on one server, and I want to send mail (e.g through sendmail) from another server, what are the relevant SPF records I'd need in my DNS zonefile?
Take a look here: http://old.openspf.org/wizard.html
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 12th February 2011, 00:51
ShadyB ShadyB is offline
Junior Member
 
Join Date: Nov 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks falko.

I checked my IP range in all the blacklists and that seems to be ok, and I think I've now got my head around the whole SFP situation.

Final request (as you seem to know alot ) is PTR records.
What is the importance of setting these up, and how would I go about formatting them?

Thanks for all your help!
Reply With Quote
  #7  
Old 12th February 2011, 11:42
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

You must contact your ISP or hoster to set the PTR records up for you - this is the task of the admin that owns your IP. Some hosters also have a web interface where you can configure your PTR records.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 12th February 2011, 16:39
ShadyB ShadyB is offline
Junior Member
 
Join Date: Nov 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

So is a PTR records basically the same as an RDNS entry?

Thanks
Reply With Quote
  #9  
Old 13th February 2011, 19:51
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Yes, it's just a different name.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #10  
Old 14th February 2011, 02:47
ShadyB ShadyB is offline
Junior Member
 
Join Date: Nov 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Thanks for clearing everything up falko.
This sites been a really useful resource to me for the past few years now and I couldn't have got where I am today without it.

Will find a nice donation coming your way in the next few days or so

Thanks again for all your help,
Lee.
Reply With Quote
Reply

Bookmarks

Tags
mail, php, sendmail

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Outgoing email problems Sarcha Installation/Configuration 27 31st May 2010 21:05
email problems mrtornado79 Installation/Configuration 8 27th January 2008 20:27
My turn - Email problems Wickednix Server Operation 1 16th December 2006 23:48
Sending email problems: Relay access denied jaffaizal HOWTO-Related Questions 35 24th April 2006 10:04
Problems on setting new site always www on email!!! lyndros Installation/Configuration 3 14th March 2006 05:45


All times are GMT +2. The time now is 15:14.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.