Enabling a debug for dovecot-lda
Why?
To increase mail server logging level when sending emails in ispmanager 6.
Instructions
The ispmanager 6 panel uses the binary file /usr/local/mgr5/sbin/dovecot_lda
to send emails.
To enable logging for this file, add the log_output
directive to the dovecot_deliver_pipe
section in the Exim configuration file at /etc/exim/exim.conf
(/etc/exim4/exim4.conf.template
for Debian and Ubuntu).
Section example:
dovecot_deliver_pipe:
driver = pipe
environment = "HOME=$home"
command = "/usr/local/mgr5/sbin/dovecot_lda"
return_path_add
log_output
delivery_date_add
envelope_to_add
check_string = "From "
escape_string = ">From "
user = ${extract{1}{:}{${lookup{$local_part@$domain}lsearch{/etc/exim4/passwd}}}}
group = ${extract{2}{:}{${lookup{$local_part@$domain}lsearch{/etc/exim4/passwd}}}}
begin retry
* * F,2h,15m; G,16h,1h,1.5; F,4d,6h
begin rewrite
begin authenticators
After introducing the changes, restart the Exim service:
systemctl restart exim
Learn more how to customize Dovecot LDA logging with Dovecot documentation!