On Sunday, June 9, 2013 at 10:09 PM, Charles Marcus wrote:
> > Dovecot uses login_log_format_elements to determine what it logs for > login attempts... you'll find the variables it supports here: > > http://wiki2.dovecot.org/Variables?highlight=%28login_log_format_elements%29 > > Mine (which logs the username) looks like: > > login_log_format_elements = user=<%u> method=%m rip=%r lport=%{lport} > mpid=%e %c session=<%{session}> > This works for IMAP/POP3/Managesieve services provided by Dovecot, and logged in Dovecot log file, but it won't appear in Postfix/Dovecot log files for SMTP service. ---- Zhang Huangbin iRedMail: free, open source mail server solution for Red Hat Enterprise Linux, CentOS, Scientific Linux, Debian, Ubuntu, openSUSE, FreeBSD, OpenBSD. http://www.iredmail.org/