sendmail not working.
Hi,
OS = debian I have my laptop and desktop on same subnet. From my laptop(FC11) I can send email from command line Code:
echo $HOSTNAME | mail -s test my@email.com I copied same sendmail.cf on both machines. On debian it sort of hangs for a long time. I there any way to diagnose the issue? Thanks |
on both machines try- 'echo $hostname | /usr/sbin/sendmail -v my@email.com' and compare the output and post it here, also what do your logs on the debian machine say and is sendmail actually currently running?
|
This one works(FC)
Code:
Code:
test:~# echo $HOSTNAME | /usr/sbin/sendmail -v my@email.com |
The problem is on the deferred line, the sendmail daemon doesn't have correct permissions to write to a directory that it needs.
Check /tmp, /var/tmp, /var/spool/mqueue, and /var/mail. Sendmail needs to be able to write to those locations (and it sounds silly but make sure /var or / isn't full) |
Code:
Every thing is mounted under / , so there is still space there. Thanks. |
What do you get when you 'cat /etc/group | grep 107'? and what are perms on /tmp?
|
Code:
chmod 1777 /var/spool/mqueue But its still extremely slow compare to FC machine. |
Slowness in sendmail I've found 9/10 times is related to dns. Check your resolv.conf settings and make sure your dns servers resolve both your local machine name and the names of machines connecting.
|
Yes. dns had to be corrected.
Its working like a charm now, thanks your your helpl. |
Excellent, no problem, glad it's working for you!
|
All times are GMT -5. The time now is 02:31 AM. |