Log do Postfix não são gravados, a não ser quando ocorre o rotate.
Pessoal, só depois de algum tempo percebí isso :
eu executo um :
tail -f /var/log/mail.log
e nada aparece, e realmente vou conferir e esta com zero bytes.
reinicio o postfix e nada, reinicio o servidor e nada.
Estava presumindo que não haveria log, no entanto, ontem (segunda)
apareceu o tal do mail.log.0 completinho.
Achei muito estranho, e tenho difuculdades em configurar arquivos de log.
Meu /etc/syslog.conf esta assim :
#
# First some standard logfiles. Log by facility.
#
auth,authpriv.* /var/log/auth.log
*.*;auth,authpriv.none -/var/log/syslog
cron.* /var/log/cron.log
daemon.* -/var/log/daemon.log
kern.* -/var/log/kern.log
lpr.* -/var/log/lpr.log
mail.* -/var/log/mail.log
user.* -/var/log/user.log
uucp.* /var/log/uucp.log
#amavis.* -/var/log/amavis.log
#
# Logging for the mail system. Split it up so that
# it is easy to write scripts to parse these files.
#
mail.info -/var/log/mail.info
mail.warn -/var/log/mail.warn
mail.err /var/log/mail.err
# Logging for INN news system
#
news.crit /var/log/news/news.crit
news.err /var/log/news/news.err
news.notice -/var/log/news/news.notice
#
# Some `catch-all' logfiles.
#
*.=debug;\
auth,authpriv.none;\
news.none;mail.none -/var/log/debug
*.=info;*.=notice;*.=warn;\
auth,authpriv.none;\
cron,daemon.none;\
mail,news.none -/var/log/messages
#
# Emergencies are sent to everybody logged in.
#
*.emerg
#
# I like to have messages displayed on the console, but only on a virtual
# console I usually leave idle.
#
#daemon,mail.*;\
# news.=crit;news.=err;news.=notice;\
# *.=debug;*.=info;\
# *.=notice;*.=warn /dev/tty8
# The named pipe /dev/xconsole is for the `xconsole' utility. To use it,
# you must invoke `xconsole' with the `-file' option:
#
# $ xconsole -file /dev/xconsole [...]
#
# NOTE: adjust the list below, or you'll go crazy if you have a reasonably
# busy site..
#
#daemon.*;mail.*;\
# news.crit;news.err;news.notice;\
# *.=debug;*.=info;\
# *.=notice;*.=warn |/dev/xconsole
Enfim é muito esquisito para mim :
# ls -l mail.*
-rw-r--r-- 1 root root 0 2007-11-01 15:31 mail.err
-rw-r----- 1 root adm 0 2007-11-02 06:27 mail.info
-rw-r----- 1 root adm 34135274 2007-11-13 09:47 mail.info.0
-rw-r----- 1 root adm 0 2007-11-02 06:27 mail.log
-rw-r----- 1 root adm 35697634 2007-11-13 09:47 mail.log.0
-rw-r----- 1 root adm 0 2007-11-04 06:47 mail.warn
-rw-r----- 1 root adm 583864 2007-11-13 09:47 mail.warn.0
Os arquivos ficam com zerobytes até que rode o rotate.
O que pode ser ? Alguma luz do que pode estar ocorrendo ?
Reply to: