Saslauthd with pam mysql not working - size read failed

Discussion in 'Server Operation' started by Krystof Klima, Dec 28, 2022.

  1. Krystof Klima

    Krystof Klima New Member

    I am trying build new server Fedora 37 but when I trying to use PamMysql /because logins from postfix are stored in DB/ it is not working

    very strange is, that only one ask to saslauthd will stop and broke saslauthd

    I am using standard PamMysql and Saslauthd

    smtp.postfix in pam.d

    auth required pam_mysql.so user=postfix passwd=xxxx host=127.0.0.1 db=postfix table=mailbox usercolumn=username passwdcolumn=password crypt=1

    account sufficient pam_mysql.so user=postfix passwd=xxxx host=127.0.0.1 db=postfix table=mailbox usercolumn=username passwdcolumn=password crypt=1

    when I try only "testsaslauthd -u "yyy" -p "xxx" -s smtp"

    It fails, stops Saslauthd and write me "size read failed"

    Have anybody this error ?? on Fedora 37 ??

    BTW: When I change SMTP.POSTFIX in PAM.D -> crypt=0 and write password to DB manually in cleartext - all works fine - but unusable, because of second one of mail - Dovecot is not able to authenticate cleartext passwords ;-)
    I think, that problem will be in crypting of SASLAUTHD...because in Dovecot same logins are not problem...and on my older server is not problem too

    BTW: I have built maybe 10 mailservers, same situation with no problems. but this is first on Fedora37
     
    Last edited: Dec 28, 2022

Share This Page