1

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>&nbsp;</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.

2

Re: Amavis html signature problem

Sorry, what do you mean "freaky"?
I think AlterMIME add '<br>=' automatically.

3

Re: Amavis html signature problem

freaky = strange, not OK wink

4

Re: Amavis html signature problem

I know you mean strange, i just don't clearly understand which part is strange to you.

5

Re: Amavis html signature problem

The entire mail... what i paste here is the mail i receive, not the source or anything else...

6

Re: Amavis html signature problem

I'm afraid i have nothing to do with this issue.
The latest stable release of AlterMIME, version 0.3.10, was released on November 16, 2008, i guess it's out of date, and should be improved.

7

Re: Amavis html signature problem

OK, I'll go to amavis forums if exists.

Thanks