[Dovecot] strip domains

Peter Fern dovecot at obfusc8.org
Tue Apr 11 18:21:07 EEST 2006


Netlink Tech wrote:
> Hello,
> Running FC5 x86_64 with dovecot-1.0-0_8.beta3.rhfc5.at
> Using system user/passwds for 99.99% of users...have sql user/pass 
> enabled to test virtual users from mysql.
>
> How do I strip off the domain when users provide user at domain.com so 
> that my userdb and passdb use just 'user'? (disregarding sql 
> auth...I'm not concerned with that right now).
>
> My dovecot.conf auth config:
>
>  passdb pam {
>    args = dovecot
>   }
>
>   passdb sql {
>     args = /etc/dovecot-sql.conf
>   }
>
>   userdb passwd {
>   }
>
>   userdb sql {
>     args = /etc/dovecot-sql.conf
>   }
>
> Can I just pass userdb the 'user' using an args= statement? %d?
> ....and then also to the passdb?
>
> Thanks, Curt
This was answered on the list quite recently, you might want to search 
the archives.


More information about the dovecot mailing list