Topic: Amavis html signature problem
==== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
Hello,
I want to integrate corporate signatures in my outgoing mails using Amavis.
I used this topic to help me.
Content of /etc/amavis/conf.d/50-user :
$altermime = '/usr/bin/altermime';
@altermime_args_disclaimer = qw( --verbose
--disclaimer=/etc/postfix/disclaimer/disclaimer.txt
--disclaimer-html=/etc/postfix/disclaimer/disclaimer.html );
$defang_maps_by_ccat{+CC_CATCHALL} = [ 'disclaimer' ];
and
$policy_bank{'MYNETS'} = { # mail originating from @mynetworks
originating => 1, # is true in MYNETS by default, but let's make it explicit
os_fingerprint_method => undef, # don't query p0f for internal clients
allow_disclaimers => 1, # enables disclaimer insertion if available
};
In roundcube, when I set "Always write emails in text format", the *txt file is well integrated.
In roundcube, when I set "Always write emails in HTML format" (what I need), the file is badly integrated.
In HTML format, amavis integrates the TXT file, and the HTML file, but the mail seems to be in TXT format.
Content of disclaimer.txt :
TXT Disclaimer
Content of disclaimer.html :
<p>HTML Disclaimer</p>
Resulting mail when using text format email :
Body of Test TXT mail.
TXT Disclaimer
Resulting mail when using html format email :
Body of HTML mail test
TXT Disclaimer--=_6449d3e64056f896a3e2578fbe80dbc1
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=UTF-8
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body style=3D'font-family: Verdana,Geneva,sans-serif'>
<p>Body of HTML mail test</p>
<div> </div>
<br>=
<p>HTML Disclaimer</p>
<br>=
</body></html>
As you can see, the two disclaimers are added, and the result is "freaky"...
Any suggestions ?
Thanks a lot in advance
Nicolas
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.