View Single Post
Old 12-04-2012, 09:37 PM  
GFED
Confirmed User
 
GFED's Avatar
 
Industry Role:
Join Date: May 2002
Posts: 8,098
Quote:
Originally Posted by edgeprod View Post
Here's some things to get you going in your troubleshooting:

* Check your error logs.
* Check your sendmail config, if that's what you're using.
* Check if you can mail any of the local accounts on the server.
output of the error statements per the failed transmission of email
/var/log/maillog

Code:
Dec  4 22:46:12 freebsd sendmail[3938]: qB53kC5j003938: from=www, size=125, class=0, nrcpts=1, msgid=<[email protected]>, relay=www@localhost
Dec  4 22:46:12 freebsd sm-mta[3939]: qB53kCiI003939: from=<[email protected]>, size=386, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=Daemon0, relay=localhost [127.0.0.1]
Dec  4 22:46:12 freebsd sendmail[3938]: qB53kC5j003938: to=*******@yahoo.com, ctladdr=www (80/80), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30125, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (qB53kCiI003939 Message acce
all settings are default. assuming these might be relevant to my problem? should port 587 be port 25 or is port 25 no longer used for smtp?
/etc/mail/sendmail.cf

Code:
O DaemonPortOptions=Name=IPv4, Family=inet
O DaemonPortOptions=Name=IPv6, Family=inet6, Modifiers=O
O DaemonPortOptions=Port=587, Name=MSA, M=E

# SMTP client options
#O ClientPortOptions=Family=inet, Address=0.0.0.0
changing the php script to send mail to root@freebsd was sucessful in transmitting.

Code:
freebsd# sendmail -bv root
root... deliverable: mailer local, user root
freebsd# sendmail -bv *******
*******... deliverable: mailer local, user *******
Code:
freebsd# mail
Mail version 8.1 6/6/93.  Type ? for help.
"/var/mail/root": 1 message 1 new
>N  1 *******@yahoo.com     Tue Dec  4 23:28  23/746   "testing mailform to root@freebsd"
& 1
Message 1:
From [email protected] Tue Dec  4 23:28:26 2012
Date: Tue, 4 Dec 2012 23:28:26 -0500 (EST)
To: [email protected]
Subject: testing mailform to root@freebsd
X-PHP-Originating-Script: 0:mailform.php
From:*******@yahoo.com

this
is
a
test


&

mail seems to be working fine internally just not outbound.
GFED is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote