1

Topic: Footer based on database field

Is it possible to add a footer to outgoing emails based on a "boolean" in a database field?

I have enabled the disclaimer as described in this topic:
http://www.iredmail.org/forum/topic210- … mails.html

It is working, but i want to only add it to the mailaccounts that have a new database field called add_footer set to 1.

Regards,
René

==== information ====
- iRedMail 0.8.1 MySQL
- CentOS 6.2
====

----

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

2

Re: Footer based on database field

Amavisd + AlterMIME doesn't support this. Sorry.

3

Re: Footer based on database field

ZhangHuangbin wrote:

Amavisd + AlterMIME doesn't support this. Sorry.

Thank you for your reply.

Would it be possible to do this using a custom script? Can i modify a message as soon as it is send by postfix?

4

Re: Footer based on database field

klompie wrote:

Would it be possible to do this using a custom script? Can i modify a message as soon as it is send by postfix?

Sure. You can write a program/script to replace AlterMIME, then make Amavisd invokes it. smile

5

Re: Footer based on database field

ZhangHuangbin wrote:
klompie wrote:

Would it be possible to do this using a custom script? Can i modify a message as soon as it is send by postfix?

Sure. You can write a program/script to replace AlterMIME, then make Amavisd invokes it. smile

I can make a wrapper script around AlterMIME to only execute AlterMIME when this field is set smile.
How could I configure Amavisd to invoke this script?