Page 1 of 1

Dynamic Email Signatures

Posted: 01 Apr 2014 10:18
by gcarn
HI,

I have setup MailScanner to add an outgoing signature to selected emails. This works well, however, what I would like to do pull the username, telephone number etc from LDAP/AD and include these in the generated signature.

Has any one attempted this before? I've been searching but have not found anything that matches what I am trying to do.

Thanks

Re: Dynamic Email Signatures

Posted: 01 Apr 2014 11:07
by shawniverson
By design, MailScanner only allows specific fields in the signature line.

In order to accomplish this, you would need to extend the custom function routines in MailScanner and write code to pull the information and insert it into the signature.

Not an easy task, but it can be done. If you look at /usr/lib/MailScanner/MailScanner/CustomFunctions/CustomAction.pm you can see how I added a token field to the signature line using this technique. You may be able to adapt this code to your needs as well.