<div dir="ltr">I have normal system users, some and some virtual domains (2 different flavors).<div><br></div><div>I have this job that runs from cron on my own userid to archive mail</div><div>I want Dovecot to use my system password for mail authentication.</div><div>I, therefore, use PAM to authenticate system users</div><div>Everything works great, modulo getting the auto-index to be visible using RoundCube (which if I log into roundcube using <user>@<domain> it does). </div><div>by default if I'm logged in as my normal OS user, default doveadm commands (as issued from the shell or from my archive script) use the user I'm logged in as *WITHOUT A DOMAIN*.</div><div><br></div><div>I want to default PAM auth'd users to append @<a href="http://lerctr.org">lerctr.org</a> (DOMAIN) to the OS user.</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 15, 2019 at 7:34 AM John Fawcett via dovecot <<a href="mailto:dovecot@dovecot.org" target="_blank">dovecot@dovecot.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 15/04/2019 13:43, Larry Rosenman via dovecot wrote:<br>
> Again, this doesn't help with doveadm running as the local user, and<br>
> also doesn't help with<br>
> the PAM authentication.<br>
><br>
> passdb {<br>
>   driver = pam<br>
>   #[session=yes] [setcred=yes] [failure_show_msg=yes] [max_requests=20]<br>
>   #[cache_key=<key>] [<service name>]<br>
>   args = failure_show_msg=yes session=yes max_requests=20<br>
>   skip = authenticated<br>
> }<br>
><br>
> How can I default the domain for PAM authentication?<br>
> (I've set auth_default_realm and it doesn't help in this case).<br>
<br>
Larry<br>
<br>
I guess I don't understand enough about your setup or what is not now<br>
working.<br>
<br>
My understanding was that everything is now working when logging in as<br>
user@domain, but that you would like to login as user and have dovecot<br>
treat that as though you had logged in as user@domain, but at this point<br>
I admit I may have misinterpreted your emails.<br>
<br>
What's also not clear for me is the purpose in your setup of the three<br>
passdb methods (sql, static, and pam) and two userdb methods (sql and<br>
passwd-file). That's why I've pointed you to the docs and I'm hestitant<br>
to give specific advice that may leave you worse off. Others on the list<br>
may have more insights.<br>
<br>
John<br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_1440387707962775229gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Larry Rosenman                     <a href="http://www.lerctr.org/~ler" target="_blank">http://www.lerctr.org/~ler</a><br><span>Phone: <span title="Call with Google Voice"><span title="Call with Google Voice"><span title="Call with Google Voice">+1 214-642-9640</span></span></span> (c)     E-Mail: </span><a href="mailto:larryrtx@gmail.com" target="_blank">larryrtx@gmail.com</a><br>US Mail: 5708 Sabbia Dr, Round Rock, TX 78665-2106</div></div></div></div></div></div></div></div>