Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
fetchmail/procmail log question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
CaribbeanKnight
Apprentice
Apprentice


Joined: 27 Apr 2003
Posts: 240
Location: Earth -> Europe -> Belgium -> Diest

PostPosted: Wed Feb 25, 2004 8:45 am    Post subject: fetchmail/procmail log question Reply with quote

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
View user's profile Send private message
CaribbeanKnight
Apprentice
Apprentice


Joined: 27 Apr 2003
Posts: 240
Location: Earth -> Europe -> Belgium -> Diest

PostPosted: Thu Feb 26, 2004 4:55 am    Post subject: Reply with quote

...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
View user's profile Send private message
Ijon Tichy
Tux's lil' helper
Tux's lil' helper


Joined: 25 Feb 2004
Posts: 80
Location: Seattle, WA

PostPosted: Thu Feb 26, 2004 5:44 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum