[CentOS] Increase logging verbosity of saslauthd?

Wed Sep 11 13:43:32 UTC 2019
Jonathan Billings <billings at negate.org>

On Wed, Sep 11, 2019 at 01:34:27PM +1000, Jobst Schmalenbach wrote:
> CentOS 7.X, sendmail.x86_64 8.14.7-5.el7, cyrus-sasl.x86_64 2.1.26-23.el7
> There are conflicting message on how to increase the logging of saslauthd.
> I know I can do this:
>    /usr/sbin/saslauthd -d -n0 -m /var/run/saslauthd -a pam 
> but that requires a terminal as saslauthd logs the output to STDOUT, this is not what I want.
> I would like to have it started as a daemon and verbosity of logging increased into a log file.
> How can I increase the verbosity of logging for saslauthd?

If you look at the systemd unit for saslauthd, you can see this:

Description=SASL authentication daemon.

ExecStart=/usr/sbin/saslauthd -m $SOCKETDIR -a $MECH $FLAGS


So all you have to do is edit /etc/sysconfig/saslauthd and put the
additional flags in the $FLAGS definition (which is empty by default).

Then the output of the saslauthd will be sent to stdout, which is
captured by the journal.  You can watch the journal for the saslauthd
service unit by running:

journalctl -xfl -u saslauthd.service

Jonathan Billings <billings at negate.org>