1

Topic: Dynamic Signatures - Per User

I am trying to figure out how to add an outgoing email signature on a per user basis.
I know postfix allows for adding disclaimers, but I need them to be different for each sender.
Since IredMail mysql stores accounts in MySQL i figured i could simply add a new column called "signature" to hold the extra text.

Questions:
1. Does Postfix / MySQL allow for disclaimers to be appended based on mysql rules?  If so, any guidance on how to achieve this.
2. If not, does a product like Altermime work for this scenario?

Best Regards

Frank


==== Provide required information ====
- iRedMail 8.0 MySQL backend
- Ununtu 12.04
====

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Dynamic Signatures - Per User

frankbasti wrote:

1. Does Postfix / MySQL allow for disclaimers to be appended based on mysql rules?  If so, any guidance on how to achieve this.

Unfortunately, no.

iRedMail ships AlterMIME (open source edition) for this, but it doesn't support read signature text from SQL/LDAP directly. Not sure whether the AlterMIME Pro works or not.

frankbasti wrote:

2. If not, does a product like Altermime work for this scenario?

I don't know, sorry.

3

Re: Dynamic Signatures - Per User

amavis/conf.d/50-user
here is a section where you can define per user disclaimer:
'boss@domain.com' => 'boss.domain.com.txt'

this works fine, but how do I insert a variable so that its:
%variable + '@domain.com' => %variable + 'domain.com.txt'

I guess what my question is how do you pass the email address of the sender as a variable in the amavis configuration.   
Looked everywhere on Amavis site and message boards without any luck.

4

Re: Dynamic Signatures - Per User

Please try to ask in Amavisd mailing list:
http://amavis.org/#support

5

Re: Dynamic Signatures - Per User

For anyone that is interested this has been resolved thanks to Mark Martinec
Where it still needs work is keeping disclaimers (signatures) from repeating on subsequent replies.

Here is a breakdown of what worked for me.
http://serverfault.com/questions/401900 … 664#403664


Now just trying to figure out how i can DETACH all email ATTACHMENTS.
Store them on a APACHE share and give users a link to download versus actually sending them with the message.
Email attachments suck storage for no good reason.  Last thing I want is my thunderbird, ipad, or android phone wasting space on saving large PDF attachments.  If anyone has any insights on this I would GREATLY appreciate it.

Here is a starting point, dont know if it works with iRedMail MYSQL
http://www.developertoolshed.com/how-to/141/