Hi Guys,
I have recently discovered that sendmail is not able to send mail out of my server.
Looking at /var/log/maillog I can see that it is trying, but it is timing out:
I have a server at home which works fine, comparing the /usr/local/etc/php.ini and /etc/mail/sendmail.cf shows nothing different between them in the mail settings.
I am using FreeBSD 8.1, the webserver is a jailed server, and I am using IPFW. I think I have confirmed that it is not IPFW by stopping it and running the test.
The test consists of creating a page as below and browsing to it, it should automatically send an email to the specified address:
Could anyone please suggest some other options to trouble shoot this?
Thanks
I have recently discovered that sendmail is not able to send mail out of my server.
Looking at /var/log/maillog I can see that it is trying, but it is timing out:
Code:
Live Server from=www size=219 class=0 nrcpts=1 msgid=<201202081242.q18Cgw15058253@domain.com.au> relay=www@localhost
Live Server to=address@mail.com ctladdr=www (80/80) delay=00:01:16 xdelay=00:01:16 mailer=relay pri=30219 relay=[127.0.0.1] [127.0.0.1] dsn=4.0.0 stat=Deferred: Operation timed out with [127.0.0.1]
I have a server at home which works fine, comparing the /usr/local/etc/php.ini and /etc/mail/sendmail.cf shows nothing different between them in the mail settings.
Code:
Home Server from=<www@domain.net> size=478 class=0 nrcpts=1 msgid=<201202081256.q18CuUZn027418@domain.net> proto=ESMTP daemon=Daemon0 relay=localhost [127.0.0.1]
Home Server to=address@mail.com ctladdr=www (80/80) delay=00:00:00 xdelay=00:00:00 mailer=relay pri=30217 relay=[127.0.0.1] [127.0.0.1] dsn=2.0.0 stat=Sent (q18CuU1R027419 Message accepted for delivery)
I am using FreeBSD 8.1, the webserver is a jailed server, and I am using IPFW. I think I have confirmed that it is not IPFW by stopping it and running the test.
The test consists of creating a page as below and browsing to it, it should automatically send an email to the specified address:
Code:
<?php
$send_html_messages = "no";
$adminmail="sender@mail.com"; //change to your adminmail
$useremail="address@mail.com"; //change to your own personal mail
$subject = "subject test";
$content = "test content";
$xheaders = "From: " . $adminmail . " <" . $adminmail . ">\n";
$xheaders .= "X-Sender: <" . $adminmail . ">\n";
$xheaders .= "X-Mailer: PHP\n"; // mailer
$xheaders .= "X-Priority: 6\n"; // Urgent message!
if ($send_html_messages == "yes") {
$xheaders .= "Content-Type: text/html; charset=iso-8859-1\n"; // Mime type
}
mail("$useremail","$subject","$content",$xheaders);
?>
Could anyone please suggest some other options to trouble shoot this?
Thanks
