Logging when proxying SMTP / IMAP / POP sessions
Luis E. Muñoz
lem at uniregistry.link
Tue Jan 16 20:23:31 UTC 2018
For an email proxying setup using the open source version of Nginx, I
have a configuration stanza along these lines:
imap_capabilities "IMAP4rev1" "UIDPLUS";
imap_auth login plain;
listen [::]:993 ssl;
listen 993 ssl;
Proxying and authentication works as advertised, no issues. However,
I've been unable to locate any piece of documentation indicating how to
produce a suitable access log message (ie, a log tying the mail client
with the backend server its connection was sent to). I've tried the
`access_log` / `error_log` directives at various places in the
configuration, to no avail.
HTTP/HTTPS logging works as usual.
Given how I've not seen any mention to logging in the various documents
that describe SMTP/IMAP/POP proxying, I believe the functionality for
this does not currently exist. This logging is very important for
troubleshooting and support.
Is there something I'm overlooking? If indeed the functionality doesn't
exist, would it be possible for me to write and contribute the code
required to add said logging?
Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx