Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: DBMail: users

mailAlternateAddress and LDAP

 

 

DBMail users RSS feed   Index | Next | Previous | View Threaded


hojnik at virtualizing

Apr 11, 2011, 12:26 PM

Post #1 of 4 (491 views)
Permalink
mailAlternateAddress and LDAP

Hi there,

Currently I'm thinking about to upgrade from DBmail 2 to DBmail 3 RC1
using a new Server. I'm using SOGo. Postfix, DBmail with an LDAP Backend.
Now I'm asking me what I have to fill in the DBmail.conf for the attribute
mailAlternateAddress to just use alternate adresses per each account.

example:

BIND_PW = topsecret
SCOPE = SubTree
USER_OBJECTCLASS = top,account,dbmailUser
FORW_OBJECTCLASS = top,account,dbmailForwardingAddress
CN_STRING = uid
FIELD_PASSWD = userPassword
FIELD_UID = dbmailUID
FIELD_NID = uidNumber
MIN_NID = 10000
MAX_NID = 15000
FIELD_CID = dbmailGID
MIN_CID = 10000
MAX_CID = 15000
FIELD_MAIL = mail
FIELD_QUOTA = mailQuota
FIELD_FWDTARGET = mailForwardingAddress


Could I write some like this?

FIELD_MAIL = mail,mailAlternateAddress


Or what should be better to define it?

best regards
Darko Hojnik
_______________________________________________
DBmail mailing list
DBmail [at] dbmail
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail


paul at nfg

Apr 11, 2011, 1:43 PM

Post #2 of 4 (468 views)
Permalink
Re: mailAlternateAddress and LDAP [In reply to]

On 04/11/2011 09:26 PM, Darko Hojnik wrote:
>
> Could I write some like this?
>
> FIELD_MAIL = mail,mailAlternateAddress


That should work just fine.

The fields listed in the FIELD_MAIL attribute are OR-ed:

(|(mail=%s)(mailAlternateAddress=%s))



--
________________________________________________________________
Paul Stevens paul at nfg.nl
NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31
The Netherlands________________________________http://www.nfg.nl
_______________________________________________
DBmail mailing list
DBmail [at] dbmail
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail


hojnik at virtualizing

Apr 11, 2011, 2:14 PM

Post #3 of 4 (463 views)
Permalink
Re: mailAlternateAddress and LDAP [In reply to]

Hello Paul,

Do you mean "FIELD_MAIL = (|(mail=%s)(mailAlternateAddress=%s))" ?

And it will works with dbmail-users to administrate Users in LDAP or do I
need a LDAP Editor such like Apache Directory Studio? Currently I've a
different configuration where couldn't use dbmail-users. Something to have
in the Shell I think it would be more comfortable. Well I will try that
Setup this week

kind regards
Darko Hojnik

Am 11.04.2011, 22:43 Uhr, schrieb Paul J Stevens <paul [at] nfg>:

> On 04/11/2011 09:26 PM, Darko Hojnik wrote:
>>
>> Could I write some like this?
>>
>> FIELD_MAIL = mail,mailAlternateAddress
>
>
> That should work just fine.
>
> The fields listed in the FIELD_MAIL attribute are OR-ed:
>
> (|(mail=%s)(mailAlternateAddress=%s))
>
>
_______________________________________________
DBmail mailing list
DBmail [at] dbmail
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail


paul at nfg

Apr 11, 2011, 11:43 PM

Post #4 of 4 (468 views)
Permalink
Re: mailAlternateAddress and LDAP [In reply to]

On 04/11/2011 11:14 PM, Darko Hojnik wrote:
> Hello Paul,
>
> Do you mean "FIELD_MAIL = (|(mail=%s)(mailAlternateAddress=%s))" ?

No! comma separated fields in FIELD_MAIL are converted to an OR-ed query.

>
> And it will works with dbmail-users to administrate Users in LDAP or do
> I need a LDAP Editor such like Apache Directory Studio? Currently I've a
> different configuration where couldn't use dbmail-users. Something to
> have in the Shell I think it would be more comfortable. Well I will try
> that Setup this week

I never use dbmail-users to administer LDAP, and I don't recommend it.
Though it will work for simple setups, LDAP is simply too flexible and
complex. So: Use whatever fits your LDAP design. I use a framework of
shell scripts as well.


--
________________________________________________________________
Paul Stevens paul at nfg.nl
NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31
The Netherlands________________________________http://www.nfg.nl
_______________________________________________
DBmail mailing list
DBmail [at] dbmail
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail

DBMail users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.