Dynamic Email Signatures

General eFa discussion
Post Reply
gcarn
Posts: 1
Joined: 01 Apr 2014 10:13

Dynamic Email Signatures

Post 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
User avatar
shawniverson
Posts: 3650
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Dynamic Email Signatures

Post 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.
Post Reply