Jobst Schmalenbach
2019-Sep-11 23:34 UTC
[CentOS] Increase logging verbosity of saslauthd?
On Wed, Sep 11, 2019 at 09:43:32AM -0400, Jonathan Billings (billings at negate.org) wrote:> 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 > If you look at the systemd unit for saslauthd, you can see this: > > [Unit] > Description=SASL authentication daemon. > After=syslog.target > > [Install] > WantedBy=multi-user.target >I have tried that as well before I asked for help, however systemd refuses to accept this as the "-d" keeps saslauthd in foreground. Systemd kills the process after a minute as systemd cannot see that required PID's. I can also see that saslauth logs when started normally, the logging is just NOT enough. I want to increase the verbosity so I can see what is going on. For example it does not seem to log the failed username. thanks anyway. -- Jobst Schmalenbach This country, with its institutions, belongs to the people who inhabit it. Whenever they shall grow weary of the existing Government, they can exercise their constitutional right of amending it, or their revolutionary right to dismember or overthrow it.
On Sep 11, 2019, at 7:34 PM, Jobst Schmalenbach <jobst at barrett.com.au> wrote:> I have tried that as well before I asked for help, however systemd refuses to accept this as the "-d" keeps saslauthd in foreground. > Systemd kills the process after a minute as systemd cannot see that required PID's.You?ll need to also create an /etc/systemd/systemd/saslauthd.service.d/override.conf that has: [Service] Type=simple (`systemctl edit saslauthd.service` should do this for you) This shouldmake systemd leave saslauthd alone rather than waiting for it to fork. -- Jonathan Billings <billings at negate.org>
Jobst Schmalenbach
2019-Sep-12 02:54 UTC
[CentOS] Increase logging verbosity of saslauthd?
On Wed, Sep 11, 2019 at 08:36:47PM -0400, Jonathan Billings (billings at negate.org) wrote:> On Sep 11, 2019, at 7:34 PM, Jobst Schmalenbach <jobst at barrett.com.au> wrote: > > I have tried that as well before I asked for help, however systemd refuses to accept this as the "-d" keeps saslauthd in foreground. > > Systemd kills the process after a minute as systemd cannot see that required PID's. > You???ll need to also create an /etc/systemd/systemd/saslauthd.service.d/override.conf that has: > > [Service] > Type=simple > This shouldmake systemd leave saslauthd alone rather than waiting for it to fork.Good idea and it does, thanks! Logging still isn't enough, though. Like it seems debugging some incorrect usernames still is a search in the bloody dark. Just found a mailing list of cyrau sasl, just subscribed to it. Sending an email to the list aafter this. -- Jobst Schmalenbach All we need is love, but all we get is work.