Email Problems

Discussion in 'Server Operation' started by ShadyB, Feb 9, 2011.

  1. ShadyB

    ShadyB New Member

    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..

    Feb  9 13:42:37 webforma sendmail[27691]: p19Dgamu027691: from=webforma, size=186, class=0, nrcpts=1, msgid=<[email protected]>, [email protected]
    Feb  9 13:42:37 webforma sm-mta[27692]: p19Dgbfd027692: from=<[email protected]>, size=439, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA-v4, relay=localhost.localdomain []
    Feb  9 13:42:37 webforma sendmail[27691]: p19Dgamu027691: [email protected], ctladdr=webforma (1001/1001), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30186, relay=[] [], dsn=2.0.0, stat=Sent (p19Dgbfd027692 Message accepted for delivery)
    Feb  9 13:42:39 webforma sm-mta[27694]: p19Dgbfd027692: to=<[email protected]>, ctladdr=<[email protected]> (1001/1001), delay=00:00:02, xdelay=00:00:02, mailer=esmtp, pri=120439, [], 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=<[email protected]>, 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
    I could see how it might be confusing.
    Last edited: Feb 9, 2011
  2. falko

    falko Super Moderator ISPConfig Developer

    Can you post an excerpt from the same time from the mail log on the mail server?
  3. ShadyB

    ShadyB New Member

    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?
  4. ShadyB

    ShadyB New Member

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

    Say I have the domain "" 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!
  5. falko

    falko Super Moderator ISPConfig Developer

    Please make sure that your server isn't blacklisted:

    Take a look here:
  6. ShadyB

    ShadyB New Member

    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!
  7. falko

    falko Super Moderator ISPConfig Developer

    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.
  8. ShadyB

    ShadyB New Member

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

  9. falko

    falko Super Moderator ISPConfig Developer

    Yes, it's just a different name.
  10. ShadyB

    ShadyB New Member

    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,

Share This Page