Moving from single to multi-domain. Mailboxes from default domain not being the same as before

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello guys,

I'm needing help with something you surely have already done/helped.. it is like this:

We used to run Cyrus with a single domain. "virtdomains" and even "defaultdomain" commented out. The authentication method is "saslauthd" and it retrieved the "account" by UID only from our ldap. (ldap_filter: (&(objectClass=inetOrgPerson)(uid=%u)))

Every user is a single username, like mine is "heiler.bemerguy". Then my mailbox is located at "/var/spool/cyrus/mail/h/user/heiler^bemerguy".

Everything is OK with that config. But now, my manager wants to use other domains for receiving and sending emails. I THINK the best way to set up each user domain would be by creating new accounts on LDAP with the "mail" field pointing to those new domains. Right now, everyone already have a "mail" field set to "UID@xxxxxxxxxxxxxxxxx".

I managed to change the way it would authenticate the account, using "mail" instead of "uid" field, with this: "ldap_filter: (&(objectClass=inetOrgPerson)(mail=%U@%d))". I've tested with POP3 and it authenticates successfully whenever I use only "uid" or "uid@xxxxxxxxxxxxxxxxx" as login.


The problem is: When I authenticate with @ourcompany.com.br, it auto-creates another mailbox (/var/spool/cyrus/mail/domain/o/ourcompany.com.br/h/user/heiler^bemerguy/).

As the "ourcompany.com.br" is the default domain, it would be better (and a lot less troublesome) if it continued to use the old "/var/spool/cyrus/mail/h/user/heiler^bemerguy" mailbox. Is it possible?

And is it possible to use a smaller path for users from other domains?! I thought it would just append a @newdomain at each one..

The log says: Jul  3 18:00:10 localhost cyrus/pop3[122602]: autocreateinbox: User heiler^bemerguy@xxxxxxxxxxxxxxxxx, INBOX was successfully created

PS.: is it a good practice to let it auto-create the mailbox ? I thought it was disabled


-- 
Atenciosamente,

Heiler Bensimon Bemerguy - CINBESA
Analista de Redes, Wi-Fi,
Virtualização e Serviços Internet
(55) 91 98151-4894
----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux