[Exim] Question about shadow passwords...

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Spaced
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: [Exim] Question about shadow passwords...
Hello

I've got SMTP authentication setup that'll read /etc/passwd for username and
passwords.. as per one of the examples posted on the site (I want to say
Q034, but don't quote me on that).. same config has been around for some
time - it's worked wonderfully for quite some time.

Anyhow, I noticed that recently certain accounts havn't been able to send..
when I had a closer look, I determined it was because these accounts didn't
hold the password in /etc/passwd, but in /etc/shadow.

Anyone know how I could get exim to read from both /etc/passwd and
/etc/shadow?

The SMTP auth. part of my config is included below.

Thanks,

Tim



fixed_plain:
driver = plaintext
public_name = PLAIN
server_condition = ${if and
{{!eq{$2}{}}{!eq{$3}{}}{crypteq{$3}{${extract{2}{:}{${lookup{$2}lsearch{/etc
/passwd}{$value}{*:*}}}}}}}{1}{0}}
server_set_id = $2

fixed_login:
driver = plaintext
public_name = LOGIN
server_prompts = "Username:: : Password::"
server_condition = ${if and
{{!eq{$1}{}}{!eq{$2}{}}{crypteq{$2}{${extract{1}{:}{${lookup{$1}lsearch{/etc
/passwd}{$value}{*:*}}}}}}}{1}{0}}
server_set_id = $1