Menu

#199 LDAP AUID selection improvement

2.10.3
open
nobody
ldap (1)
5
2016-04-15
2016-04-15
No

Hello,

with opendkim and ldap I can choose the auid (i=) from LDAP query:
ldap://192.0.2.1/ou=people,dc=example,dc=com?DKIMSelector,DKIMIdentity?sub?(DKIMIdentity=$d)

An instance from example in contrib folder is:

 dn: ou=bar,ou=people,dc=example,dc=com
objectClass: organizationalUnit
objectClass: top
objectClass: DKIM
DKIMSelector: bar-2011
DKIMIdentity: @bar.example.com

In many LDAP servers setup, it is common to base the mail addresses by account, and each account can share different domain aliases. For instance:

dn: ...
mail: me@example.com
mailalternateaddress: me@subdomain.example.com
mailalternateaddress: aliasme@subdomain.example.com
DKIMSelector: bar-2011

So it should be useful a "DKIMIdentity" multivalue and multiattribute, with opendkim that choose the value of auid corresponding to the From header of the mail:

  • ldap://192.0.2.1/ou=people,dc=example,dc=com?DKIMSelector,mail,mailaternateaddress?sub?(|(mail=$d)(mailalternateaddress=$d))*

For instance, using above query If I sent a mail with header

From: me@example.com

I will see "i=me@example.com" in sign.

If I sent a mail with header

From: aliasme@subdomain@example.com

I will see "i=aliasme@subdomain@example.com" in header.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.