[exim] smtp authenticator for pam_pwdfile

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Jack
Datum:  
To: exim
Betreff: [exim] smtp authenticator for pam_pwdfile
Hi,

I just installed cyrus-imap2 and cyrus-sasl2.1.20 with pam_pwdfile 0.95.
I also created imap, pop, smtp in the /etc/pam.d/ directory with the 
following content:
auth       required     /usr/local/lib/pam_pwdfile.so pwdfile 
/usr/local/etc/imap.passwd
account    required     /usr/lib/pam_permit.so


Login cyrus server has no problem.
But failed to send email thru Exim 4.43
Exim is built with cyrus-sasl and saslauthd enbled.

I have tried the following authenticators, but no luck to get it working.:

Use pam:
plain:
    driver = plaintext
    public_name = PLAIN
    server_condition = ${if pam{$1:${sg{$2}{:}{::}}}{yes}{no}}
    server_set_id = $1
and the error in mainlog is:
Incorrect authentication data.


Use saslauthd:
fixed_login:
        driver = plaintext
        public_name = LOGIN
        server_prompts = UserName:: : Password::
        server_condition = ${if saslauthd{{$1}{$2}}{1}{0}}
        server_set_id = $1


plain:
        driver = plaintext
        public_name = PLAIN
        server_condition = ${if saslauthd{{$2}{$3}}{1}{0}}
        server_set_id = $2
and the error in /var/log/message is:
Nov 16 12:18:15 gateway saslauthd[431]: in openpam_read_chain(): 
/etc/pam.d/(1): invalid facility 'ý`' (ignored)


Does anyone know how to define smtp pam authentication for pam_pwdfile
in Exim?

Thanks
Jack