logging in mail {} stanza and STARTTLS error

Sergey A. Osokin osa at freebsd.org.ru
Thu Mar 17 02:02:55 UTC 2022


Hi Jeremy,

hope you're doing well these days.

On Wed, Mar 16, 2022 at 03:36:03PM +0800, Jeremy Ardley wrote:
> Hi,
> 
> I'm attempting to implement an IMAP proxy using ngx_mail module.
> 
> How do I enable logging inside a mail {} stanza, or indeed anywhere 
> other than an http {} stanza which doesn't seem to log any mail {} 
> related traffic.

Here's the answer [1].

> Secondly, the reason I want to log activity is because the mail module 
> returns an error "BAD  invalid command" when my IMAP client issues a 
> STARTTLS. Any suggestions?

If [1] can't help, you'd probably need to start with a debugging log [2].

References:

[1] https://mailman.nginx.org/pipermail/nginx/2018-January/055490.html
[2] https://nginx.org/en/docs/debugging_log.html

-- 
Sergey A. Osokin



More information about the nginx mailing list