<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000099">
<br>
Hi Folks, I'm hoping some one can set me straight here please.<br>
<br>
Postfix 2.1.5<br>
Dovecot 0.99.11-2<br>
<br>
I have Postfix set up on a new box with Virtual Domains and Virtual
Users using MailDir format with their mail homes in
/var/spool/mail/<domain>/<user><br>
<br>
I want Dovecot to login using PAM Authentication. The idea is to host
multiple domains which each have multiple aliases which resolve to one
email account for their respective domain but using a user name which
actually _is_ a system user. <br>
<br>
So I might have; <br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:jo@abc.com">jo@abc.com</a><br>
<a class="moz-txt-link-abbreviated" href="mailto:joe@abc.com">joe@abc.com</a><br>
<a class="moz-txt-link-abbreviated" href="mailto:joey@abc.com">joey@abc.com</a><br>
<a class="moz-txt-link-abbreviated" href="mailto:pete@abc.com">pete@abc.com</a><br>
<a class="moz-txt-link-abbreviated" href="mailto:peter@abc.com">peter@abc.com</a><br>
<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:jo@xyz.com">jo@xyz.com</a><br>
<a class="moz-txt-link-abbreviated" href="mailto:joe@xyz.com">joe@xyz.com</a><br>
<a class="moz-txt-link-abbreviated" href="mailto:joey@xyz.com">joey@xyz.com</a><br>
<a class="moz-txt-link-abbreviated" href="mailto:pete@xyz.com">pete@xyz.com</a><br>
<a class="moz-txt-link-abbreviated" href="mailto:peter@xyz.com">peter@xyz.com</a><br>
<br>
<br>
where 'joe' and 'peter' are both system users each with mail homes of;<br>
<br>
/var/spool/mail/abc.com/joe<br>
/var/spool/mail/abc.com/peter<br>
<br>
/var/spool/mail/xyz.com/joe<br>
/var/spool/mail/xyz.com/peter<br>
<br>
<br>
In my dovecot.conf, I have;<br>
<br>
auth_userdb = static uid=89 gid=89 home=/var/spool/mail/%d/%u<br>
auth_passdb = pam<br>
<br>
If I login with just 'joe', I get; <br>
<br>
Fatal: chdir(/var/spool/mail//joe) failed with uid 89: Not a directory<br>
<br>
Fair enough, that sounds logical to me. But if I then login with
'<a class="moz-txt-link-abbreviated" href="mailto:joe@abc.com">joe@abc.com</a>', I get;<br>
<br>
PAM: pam_authenticate(<a class="moz-txt-link-abbreviated" href="mailto:joe@abc.com">joe@abc.com</a>) failed: Authentication failure<br>
<br>
So it appears Dovecot is checking PAM for '<a class="moz-txt-link-abbreviated" href="mailto:joe@abc.com">joe@abc.com</a>' rather than
just 'joe'. How can I make it check for just 'joe' please?<br>
<br>
<br>
<div class="moz-signature">-- <br>
<span
style="padding: 0px; color: rgb(0, 0, 153); font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; font-family: Verdana,Arial,Helvetica,sans-serif;">
<hr align="left" color="#000099" size="1" width="200">Kind Regards
<p>Kyle <br>
</p>
</span></div>
</body>
</html>