View Single Post
Old 12-05-2012, 02:25 AM  
GFED
Confirmed User
 
GFED's Avatar
 
Industry Role:
Join Date: May 2002
Posts: 8,098
After editing the /etc/mail/access entries I began receiving the following errors:

Code:
Dec  5 03:03:45 freebsd sm-mta[1106]: My unqualified host name (localhost) unknown; sleeping for retry
Dec  5 03:04:45 freebsd sm-mta[1106]: unable to qualify my own domain name (localhost) -- using short name
This was resolved by editing the /etc/hosts file and changing

Code:
::1                     localhost freebsd
127.0.0.1               localhost freebsd
to

Code:
::1                     localhost freebsd freebsd.local freebsd.local.home
127.0.0.1               localhost freebsd freebsd.local freebsd.local.home
Additionally, I added this line to /etc/rc.conf to load the sendmail daemon:

Code:
sendmail_enable="YES"
and verified that it had opened up the SMTP ports 25 and 587

Code:
freebsd# sockstat -4 -l
USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS         FOREIGN ADDRESS
www      httpd      1216  4  tcp4   *:80                  *:*
www      httpd      1215  4  tcp4   *:80                  *:*
www      httpd      1214  4  tcp4   *:80                  *:*
www      httpd      1213  4  tcp4   *:80                  *:*
www      httpd      1212  4  tcp4   *:80                  *:*
root     sendmail   1104  3  tcp4   *:25                  *:*
root     sendmail   1104  6  tcp4   *:587                 *:*
root     sshd       1099  4  tcp4   *:22                  *:*
root     httpd      1076  4  tcp4   *:80                  *:*
mysql    mysqld     1063  10 tcp4   *:3306                *:*
root     syslogd    755   7  udp4   *:514                 *:*
but still not receiving messages sent via terminal to an outside destination...

Code:
freebsd# sendmail *******@yahoo.com
test
test
test
.
freebsd#
GFED is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote