1 (edited by j.smith1981 2012-08-08 22:13:38)

Topic: Amavisd problems sending HTML emails but with the HTML tags disclaimer

I am having problems configuring alterMIME in Amavisd the problem I am having is when I try and sent HTML emails using the following configuration:

# ------------ Disclaimer Setting ---------------
# Uncomment this line to enable singing disclaimer in outgoing mails.
$defang_maps_by_ccat{+CC_CATCHALL} = [ 'disclaimer' ];

# Program used to signing disclaimer in outgoing mails.
$altermime = '/usr/bin/altermime';

# Disclaimer in plain text formart.
#@altermime_args_disclaimer = qw(--disclaimer=/etc/postfix/disclaimer/_OPTION_.txt --disclaimer-html=/etc/postfix/disclaimer/_OPTION_.txt --force-for-bad-html);
@altermime_args_disclaimer = qw(--disclaimer=/etc/postfix/disclaimer/_OPTION_.txt --disclaimer-html=/etc/postfix/disclaimer/_OPTION_.html);

@disclaimer_options_bysender_maps = ({
    # Per-domain disclaimer setting: /etc/postfix/disclaimer/host1.iredmail.org.txt
    #'host1.iredmail.org' => 'host1.iredmail.org',

    # Sub-domain disclaimer setting: /etc/postfix/disclaimer/iredmail.org.txt
    #'.iredmail.org'      => 'iredmail.org',
   
    # Sub-domain disclaimer setting: /etc/postfix/disclaimer/hsmedia.co.uk.txt
    '.mydomain.co.uk'      => 'mydomain.co.uk',

    # Per-user disclaimer setting: /etc/postfix/disclaimer/boss.iredmail.org.txt
    #'boss@iredmail.org'  => 'boss.iredmail.org',

    # Catch-all disclaimer setting: /etc/postfix/disclaimer/default.txt
    '.' => 'default',
},);
# ------------ End Disclaimer Setting ---------------

The problem is is sending out the HTML emails with the the HTML signature fine but right below the first signaure it's sending out the html one but showing the tags which I was hoping it would not.

Can someone help me with this?

Thank you in advance again,
Jeremy.

==== Required information ====
- iRedMail version: 0.8.1
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL 5.1
- Linux/BSD distribution name and version: CentOS 6.3
- Related log if you're reporting an issue:

This is the detailed debug maillog messages:
Aug  8 13:18:22 server postfix/smtpd[8755]: warning: 192.168.0.3: address not listed for hostname server.mydomain.co.uk
Aug  8 13:18:22 server postfix/smtpd[8755]: connect from unknown[192.168.0.3]
Aug  8 13:18:23 server postfix/smtpd[8755]: 2924E1C20CA: client=unknown[192.168.0.3], sasl_method=LOGIN, sasl_username=admin@mydomain.co.uk
Aug  8 13:18:23 server postfix/cleanup[8764]: 2924E1C20CA: message-id=<3b493d30285579c88a2e905b7a8c2ef3@mydomain.co.uk>
Aug  8 13:18:23 server postfix/qmgr[7844]: 2924E1C20CA: from=<myuser@mydomain.co.uk>, size=1159, nrcpt=1 (queue active)
Aug  8 13:18:23 server amavis[8749]: (08749-01) ESMTP::10024 /var/spool/amavisd/tmp/amavis-20120808T131823-08749: <myuser@mydomain.co.uk> -> <myuser@mydomain.co.uk> SIZE=1159 Received: from mail.mydomain.co.uk ([127.0.0.1]) by localhost (mail.mydomain.co.uk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP for <myuser@mydomain.co.uk>; Wed,  8 Aug 2012 13:18:23 +0100 (BST)
Aug  8 13:18:23 server amavis[8749]: (08749-01) Checking: b0xGQKMKzLwQ MYNETS/MYUSERS [192.168.0.3] <myuser@mydomain.co.uk> -> <myuser@mydomain.co.uk>
Aug  8 13:18:24 server postfix/smtpd[8755]: disconnect from unknown[192.168.0.3]
Aug  8 13:18:25 server amavis[8749]: (08749-01) mangling by altermime (disclaimer) done, new size: 2990, orig 1159 bytes
Aug  8 13:18:25 server postfix/smtpd[8779]: connect from localhost[127.0.0.1]
Aug  8 13:18:25 server postfix/smtpd[8779]: 933BB1C3C3A: client=localhost[127.0.0.1]
Aug  8 13:18:25 server postfix/cleanup[8764]: 933BB1C3C3A: message-id=<3b493d30285579c88a2e905b7a8c2ef3@mydomain.co.uk>
Aug  8 13:18:25 server postfix/qmgr[7844]: 933BB1C3C3A: from=<myuser@mydomain.co.uk>, size=4047, nrcpt=1 (queue active)
Aug  8 13:18:25 server postfix/smtpd[8779]: disconnect from localhost[127.0.0.1]
Aug  8 13:18:25 server amavis[8749]: (08749-01) FWD via SMTP: <myuser@mydomain.co.uk> -> <myuser@mydomain.co.uk>,BODY=7BIT 250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 933BB1C3C3A
Aug  8 13:18:25 server amavis[8749]: (08749-01) Passed CLEAN, MYNETS/MYUSERS LOCAL [192.168.0.3] [192.168.0.3] <myuser@mydomain.co.uk> -> <myuser@mydomain.co.uk>, Message-ID: <3b493d30285579c88a2e905b7a8c2ef3@mydomain.co.uk>, mail_id: b0xGQKMKzLwQ, Hits: -9.999, size: 1159, queued_as: 933BB1C3C3A, 2355 ms
Aug  8 13:18:26 server postfix/smtp[8769]: 2924E1C20CA: to=<myuser@mydomain.co.uk>, relay=127.0.0.1[127.0.0.1]:10024, delay=3.1, delays=0.16/0.05/0.01/2.9, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 933BB1C3C3A)
Aug  8 13:18:26 server postfix/qmgr[7844]: 2924E1C20CA: removed
Aug  8 13:18:26 server postfix/pipe[8781]: 933BB1C3C3A: to=<myuser@mydomain.co.uk>, relay=dovecot, delay=1.2, delays=0.05/0.11/0/1, dsn=2.0.0, status=sent (delivered via dovecot service)
Aug  8 13:18:26 server postfix/qmgr[7844]: 933BB1C3C3A: removed

====

This is what the email contains if I send out an email using Outlook 2003:

Testing from outlook email






The information in this e-mail may be confidential and/or legally privileged. It is intended solely for the addressee. Access to this e-mail by anyone else is
unauthorised. If you have received this in error please delete email immediately and notify sender. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful.

Unless expressly agreed otherwise, HS Media will only contract on its standard terms and conditions (if applicable). If you require a copy please email your request. Products or services will only be paid following issue of a project agreement from HS Media, this does not affect your satutary rights.

Whilst HS Media has the most up to date anti-virus software, we do not guarantee that any mail coming from this server is virus free.------=_NextPart_000_000E_01CD7577.F2A2DC90
Content-Type: text/html;
    charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><META =
HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii"><meta name=3DGenerator content=3D"Microsoft Word 12 =
(filtered medium)"><style><!--
/* Font Definitions */
@font-face
    {font-family:Calibri;
    panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
    {font-family:Tahoma;
    panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
    {margin:0cm;
    margin-bottom:.0001pt;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
    {mso-style-priority:99;
    color:blue;
    text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
    {mso-style-priority:99;
    color:purple;
    text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
    {mso-style-priority:99;
    mso-style-link:"Balloon Text Char";
    margin:0cm;
    margin-bottom:.0001pt;
    font-size:8.0pt;
    font-family:"Tahoma","sans-serif";}
span.EmailStyle17
    {mso-style-type:personal-compose;
    font-family:"Calibri","sans-serif";
    color:windowtext;}
span.BalloonTextChar
    {mso-style-name:"Balloon Text Char";
    mso-style-priority:99;
    mso-style-link:"Balloon Text";
    font-family:"Tahoma","sans-serif";}
.MsoChpDefault
    {mso-style-type:export-only;}
@page WordSection1
    {size:612.0pt 792.0pt;
    margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
    {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-GB link=3Dblue =
vlink=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal>Testing =
from outlook email<o:p></o:p></p><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div>
<br>=
<p>The information in this e-mail may be confidential and/or legally privileged. It is intended solely for the addressee. Access to this e-mail by anyone else is=0Aunauthorised. If you have received this in error please delete email immediately and notify sender. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful.</p>=0A=0A<p>Unless expressly agreed otherwise, HS Media will only contract on its standard terms and conditions (if applicable). If you require a copy please email your request. Products or services will only be paid following issue of a project agreement from HS Media, this does not affect your satutary rights.</p>=0A<br>=0A<p>Whilst HS Media has the most up to date anti-virus software, we do not guarantee that any mail coming from this server is virus free.</p>=0A</center>=0A
<br>=
</body></html>

----

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

2

Re: Amavisd problems sending HTML emails but with the HTML tags disclaimer

Did you write disclaimer file in HTML format? e.g.

<p>disclaimer text</p>

3

Re: Amavisd problems sending HTML emails but with the HTML tags disclaimer

Yea sorry I haven't replied in ages but I did use tags I think from as far as I can remember, is that a thing I want to avoid?

It just crossed my mind about a week ago maybe I should not be doing that but haven't tested anything as I thought logically you'd need tags in there, am I think about this in the wrong way?