[Dovecot] Logged out format in log
I was naive to not check the log more thoroughly for changes. I need "dovecot: imap(jerrale@sheltoncomputers.com): Disconnected: Logged out bytes=1921/2983" to say the rip (ip address) as 1.2.x did; how do I accompish such?
Jerrale G SC Senior Admin
SC Senior Admin
On Fri, 2010-08-20 at 11:58 -0400, Jerrale G wrote:
I was naive to not check the log more thoroughly for changes. I need "dovecot: imap(jerrale@sheltoncomputers.com): Disconnected: Logged out bytes=1921/2983" to say the rip (ip address) as 1.2.x did; how do I accompish such?
v1.2 didn't show rip there either. You can't put it only to logout line, but you can put it to all lines logged by mail processes:
mail_log_prefix = "%s(%u,rip=%r): "
Or if you want it only for imap, put it inside protocol imap {} section.
On 8/20/2010 12:11 PM, Timo Sirainen wrote:
On Fri, 2010-08-20 at 11:58 -0400, Jerrale G wrote:
I was naive to not check the log more thoroughly for changes. I need "dovecot: imap(jerrale@sheltoncomputers.com): Disconnected: Logged out bytes=1921/2983" to say the rip (ip address) as 1.2.x did; how do I accompish such? v1.2 didn't show rip there either. You can't put it only to logout line, but you can put it to all lines logged by mail processes:
mail_log_prefix = "%s(%u,rip=%r): "
Or if you want it only for imap, put it inside protocol imap {} section.
Thanks, Timo
I thought I might be able to put that in different service sections or something but globally is fine; I knew I couldn't do it for only logging out messages.
Jerrale G. SC Senior Admin
participants (2)
-
Jerrale G
-
Timo Sirainen