[Dovecot] Mapping usernames

Henry henka at cityweb.co.za
Thu Feb 12 20:14:05 EET 2009


 On Thu 12/02/09 18:36 , Timo Sirainen tss at iki.fi sent:
> abc at 123.com:.
> ...:user=realnamea_abc

Thanks Timo,

Unfortunately this is still not working.  Any further comments would be appreciated.

I've tried it two ways:-

ATTEMPT 1
----------------

/etc/dovecot.conf:
auth default {

    userdb passwd-file {
        args = /etc/dovecot.passwd
    }

    passdb passwd-file {
        args = scheme=plain-md5 username_format=%u /etc/dovecot.passwd
    }
}

/etc/dovecot.passwd:
bob at vh1.com:$1$Vh6a...::::::userdb_user=vh1_bob

Error:
auth(default): passwd-file(bob at vh1.com,::ffff:127.0.0.1): no passwd file: scheme=plain-md5 username_format=bob at vh1.com /etc/dovecot.passwd


ATTEMPT 2
----------------

/etc/dovecot.conf:
auth default {

    userdb passwd-file {
        args = /etc/dovecot.passwd
    }

    passdb passwd-file {
        args = /etc/dovecot.passwd
    }
}


/etc/dovecot.passwd:
bob at vh1.com:{PLAIN-MD5}$1$Vh6a...::::::userdb_user=vh1_bob

Error:
auth(default): passwd-file(bob at vh1.com,::ffff:127.0.0.1): unknown user


I'm missing something obvious, I'm sure of it.

Any pointers appreciated.

Thanks

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.5 (GNU/Linux)

mOIESXlwDRECAOycneJPOwSkETRkjJZdArag8V2rKOR2IUwlDOydIZXv/ITDlWDU
dookzEdWh7Ektf1Jlh+YbPNEGoPpQunL8O8AoJbWmNkpoX7jP0Sw/5rDN2eKGHR7
Af9mxTqQ/j3C5LkrTRo9iCTt1TxoqPi6R/w0KkIAuTXBq6j+vIFJcOFgABlMQoXs
V2crh1BUCmXVsV1puRJsLWKbAf4uL0V+N8WF4rvWHmJiYjgDn6exv3XHS0F6NhRz
n1KVnV0XDWMDq/B/tmj4L2JYxEzWzeNulC5yQBOdx/dLU12XtCNIZW5yeSAoemVu
LmNvLnphKSA8aGVucnlAemVuLmNvLnphPohgBBMRAgAgBQJJeXANAhsjBgsJCAcD
AgQVAggDBBYCAwECHgECF4AACgkQCHhhdg2iQafVGACdEMtEuUGIW2XJyn9Fig7n
sX4qzb4An0PGStBZvAP2qtzYP3SGlzsllzLjuI0ESXlwDRACAMsi4nl8/Yar2m9F
ex4dFDgWylLgScQrEhhb2xN0Upcglm60nHQD7c1rP+63Iu+lU0eWvyr8o3JTCN4y
PpoGMOMAAwUCAIUnLDMW/tz+qsYaOPyoh7HdAYqcrvVar7t+eKpihNBqfP4CT2Py
aRVMN6cSJj9NKZDW6b0QQSCGgN7PpzrLqf6ISQQYEQIACQUCSXlwDQIbDAAKCRAI
eGF2DaJBpxeiAJ9cNiuaftSoWke75RT1pn7qoibFfgCdHl6BgP9f450/oziDwaMM
w49UeHQ=
=qgmL
-----END PGP PUBLIC KEY BLOCK-----



More information about the dovecot mailing list