View previous topic :: View next topic |
Author |
Message |
CaribbeanKnight Apprentice
Joined: 27 Apr 2003 Posts: 240 Location: Earth -> Europe -> Belgium -> Diest
|
Posted: Wed Feb 25, 2004 8:45 am Post subject: fetchmail/procmail log question |
|
|
i've just setup a mailserver using the guide somewhere in this forum... now everything's working except i suspect a number of mails not getting through somewhere (more than 50%)..
so my question is, where are the logfiles of fetchmail/procmail/courier-imap so i can check what went wrong...? |
|
Back to top |
|
|
CaribbeanKnight Apprentice
Joined: 27 Apr 2003 Posts: 240 Location: Earth -> Europe -> Belgium -> Diest
|
Posted: Thu Feb 26, 2004 4:55 am Post subject: |
|
|
...bump...
already found out that the log file 'should' go in the /var/log/mail directory, but the last things logged in this directory are from before i switched from metalog to syslog-ng..
is this the default behaviour with syslog-ng? or does it log mail stuff somewhere else maybe..?
else i have to switch back to metalog... but i hear syslog-ng is better (why anyone..?) so i'd prefer to keep that logger.. |
|
Back to top |
|
|
Ijon Tichy Tux's lil' helper
Joined: 25 Feb 2004 Posts: 80 Location: Seattle, WA
|
Posted: Thu Feb 26, 2004 5:44 am Post subject: |
|
|
Procmail will log where you tell it to by way of your .procmailrc:
Code: |
VERBOSE=on
PMDIR=$HOME/.procmail
LOGFILE=$PMDIR/log
|
Looks like the default install of syslog-ng is to log everything to /var/log/messages, so that's probably where you'd find fetchmail logs. Either that or it'll log to where ever you've got MAIL.ERR/ALERT/INFO going. Make sure you've got fetchmail logging to syslog, of course:
Code: |
From 'man fetchmail':
The --syslog option (keyword: set syslog) allows you to redirect status
and error messages emitted to the syslog(3) system daemon if available.
Messages are logged with an id of fetchmail, the facility LOG_MAIL, and
priorities LOG_ERR, LOG_ALERT or LOG_INFO. This option is intended for
logging status and error messages which indicate the status of the dae-
mon and the results while fetching mail from the server(s). Error mes-
sages for command line options and parsing the .fetchmailrc file are
still written to stderr, or to the specified log file. The --nosyslog
option turns off use of syslog(3), assuming it's turned on in the
~/.fetchmailrc file, or that the -L or --logfile <file> option was
used.
|
Hope this helps a bit. |
|
Back to top |
|
|
|