I can't send out emails,
need to look into the logs,
but where is the log?
feedback
|
This question came from our site for professional and enthusiast programmers.
|
check /var/log/maillog or /var/log/messages if you're on *nix Also, if nothing is going out you may want to check your firewall as follows (be sure to do this as root):
[root@web01 ~]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:ms-v-worlds
ACCEPT tcp -- anywhere anywhere tcp dpt:imaps
ACCEPT tcp -- anywhere anywhere tcp dpt:imap
ACCEPT tcp -- anywhere anywhere tcp dpt:pop3
ACCEPT tcp -- anywhere anywhere tcp dpt:smtp
tcp -- anywhere anywhere tcp dpt:ssh state NEW recent: SET name: SSH side: source
DROP tcp -- anywhere anywhere tcp dpt:ssh state NEW recent: UPDATE seconds: 60 hit_count: 8 TTL-Match name: SSH side: source
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain RH-Firewall-1-INPUT (0 references)
target prot opt source destination
[root@xxxx ~]#
| |||
feedback
|
|
| |||
|
feedback
|
Where are the logs?The default location depends on your linux/unix system, but the most common places are
If it's not there, look up
sendmail writes logs to the If you system uses syslog-ng (instead of the more "traditional" syslog), then you'll have to look up your
Unable to send out emails?One of the most common reason I've seen for a freshly installed sendmail not being able to send out emails is the DAEMON_OPTIONS being set to listen only on 127.0.0.1 See /etc/mail/sendmail.mc
If that's your case, remove the "Addr=127.0.0.1" part, rebuild your conf file and you're good to go!
If you've been making changes to /etc/sendmail.cf manually thus far (instead of the *.m4 file) you can make similar changes in /etc/sendmail.cf. The offending line will look like this:
Change it to:
| ||||
|
feedback
|