1 Dec 2003 01:54
Selective AUTH LOGIN failures with exim4+PAM
Marek Szuba <scriptkiddie <at> wp.pl>
2003-12-01 00:54:06 GMT
2003-12-01 00:54:06 GMT
Hello,
Trying to enable SMTP AUTH over SSL/TLS with exim version 4.22 as found
in Debian sarge packages, I have noticed that authentication fails for
certain users.
The system in question handles user accounts provided in many different
ways, it was therefore quite natural for us to employ PAM for
authentication purposes. In exim, the following rule has been put into
auth configuration:
login:
driver = plaintext
public_name = LOGIN
server_prompts = "Username:: : Password::"
server_condition = "${if pam{$1:${sg{$2}{:}{::}}}{yes}{no}}"
server_set_id = $1
whereas /etc/pam.d/exim4 and exim (just in case) both contain:
auth sufficient pam_ldap.so
auth required pam_unix.so try_first_pass
account sufficient pam_ldap.so
account required pam_unix.so
session sufficient pam_ldap.so
session required pam_unix.so
This setup works. The bad news is that, for a reason unknown to me, it
doesn't work for certain users (error 535). At first, knowing about the
colon issue, I thought the cause of that behaviour were non-alphanumeric
(Continue reading)
Answers below..
> I am running exim-4.24, SA 2.60, sa-exim-3.1, exiscan, clam and vexim.
> When i send a mail to my virtual domain, with no local-account (mysql auth),
> I get
> the following error:
>
> <snip>
> 2003-12-01 10:46:14 1AQjgc-0000BU-9z <= thomask <at> mail-rbk.mtnns.net
> H=(protea.int.citec.net) [209.212.109.146] P=esmtp S=1952
> id=4625C59C329BC447AFFB52E7F8BFF2750E1F1D3C <at> protea.int.citec.net
> 2003-12-01 10:46:14 1AQjgc-0000BU-9z ==
> /var/mail/ack-sys.co.za/thomas/Maildir <thomas <at> ack-sys.co.za>
> R=virtual_domains T=mysql_delivery defer (20): Not a directory: while
> creating file
> /var/mail/ack-sys.co.za/thomas/Maildir/temp.719.mail.ack-sys.co.za
> <snip>
>
>
> Sorry for this really DUMB question, but where does exim store the mail?
> mbox or maildir?
Does /var/mail exist?
If so, I usually change the ownership of that directory to 1777. This
lets Exim create the directories it needs to.
It looks like "/var/mail/ack-sys.co.za/thomas/Maildir" does not exist.
Are you using the example configure file from vexim?
RSS Feed