View Full Version : [Solved] root mail
unicyclist
January 2nd, 2009, 13:32
I am running FreeBSD mybox.my.domain 7.1-RC2 FreeBSD 7.1-RC2.
I don't get any local (system only) mail. It all stays in /var/spool/clientmqueue/
I can't "mail" myself or another user (or visa versa).
I've checked /etc/hosts with /etc/rc.conf and the name is the same.
I can ping localhost and mybox.my.domain. Sendmail is running, but /var/mail/root and /var/mail/mike remain empty.
What do I check next?
SirDice
January 2nd, 2009, 13:54
This may be a little counter intuitive but make sure sendmail_enable="NO" is in /etc/rc.conf. That will make sendmail run as a local submit only.
You can use the mailq command to see what's in the queue. Also make sure /etc/aliases is set up properly. Run newaliases if you make any changes in /etc/aliases.
unicyclist
January 2nd, 2009, 14:13
mybox# mailq
/var/spool/mqueue is empty
/etc/aliases is setup correctly for user (mike) to receive roots email. Yes, I ran newaliases :)
Will try senmail_enable="NO". Hadn't thought of that. Thanks.
unicyclist
January 2nd, 2009, 18:07
A bit more info:
$ sockstat -l4 -p 25
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS
root sendmail 734 4 tcp4 127.0.0.1:25 *:*
Also, I can't telnet localhost 25 either as root or normal user.
DutchDaemon
January 2nd, 2009, 18:25
So none of these work?
telnet localhost 25
telnet 127.0.0.1 25
telnet 0 25
Tried /etc/rc.d/sendmail restart? Something may be stuck. Any firewalling in place without a pass all or skip rule for lo0?
unicyclist
January 2nd, 2009, 20:04
nope, telnet doesn't work to localhost.
I have stopped and started sendmail, and even rebooted. (I know, I know ;) )
Will check pf.conf. I am on another hd to run a bios upgrade for this old machine, so will get back with what I find in pf.conf.
Thanks for all the help/suggestions!
unicyclist
January 3rd, 2009, 01:58
DutchDaemon, the problem was with pf.conf.
Don't know how the set skip lo0 got commented out but it was :(
Thanks for your help.
DutchDaemon
January 3rd, 2009, 16:16
Ok!
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.