1

Topic: disclaimer problem !!!

Hello,
I have uncomment disclaimer setting on amavisd.conf like :

$defang_maps_by_ccat{+CC_CATCHALL} = [ 'disclaimer' ];

But when i send mail, nothing happen. I have checked on mail log, i see :

(!)mangling by altermime failed: altermime not available: disclaimer at /usr/sbin/amavisd line 11976, <GEN14> line 6309., mail will pass unmodified: 1 Time(s)

Please help me fix it !
Thanks you and sorry for my bad english!

2

Re: disclaimer problem !!!

Do you have 'altermime' installed on your system?

3

Re: disclaimer problem !!!

ZhangHuangbin wrote:

Do you have 'altermime' installed on your system?

Sorry, now i have installed altermime and it working now. But when i try send mail, i see on disclaimer content:

--------------
Disclaimer text------=_NextPart_000_003C_01CA7EF5.2DB11DF0
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:"Cambria Math";
    panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
    {font-family:Calibri;
    panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
    {margin:0in;
    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;}
span.EmailStyle17
    {mso-style-type:personal-compose;
    font-family:"Calibri","sans-serif";
    color:windowtext;}
.MsoChpDefault
    {mso-style-type:export-only;}
@page Section1
    {size:8.5in 11.0in;
    margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
    {page:Section1;}
-->
</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-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal>Gdsg sgsd gsgsd<o:p></o:p></p>

</div>

</body>

</html>

I dont know why !!!

4

Re: disclaimer problem !!!

Could you please paste your amavisd configuration (only disclaimer related settings) and your disclaimer content?

5

Re: disclaimer problem !!!

ZhangHuangbin wrote:

Could you please paste your amavisd configuration (only disclaimer related settings) and your disclaimer content?

Disclaimer content :

--------------
Disclaimer text

amavisd.conf :

# 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_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',

    # 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 ---------------

6

Re: disclaimer problem !!!

mrcancel wrote:

Disclaimer content :

--------------
Disclaimer text

It's the content of file /etc/postfix/disclaimer/default.txt, right?

Could you please paste value of '@local_domains_maps' in amavisd configuration file?

7 (edited by mrcancel 2009-12-17 11:03:52)

Re: disclaimer problem !!!

ZhangHuangbin wrote:

ntent of file /etc/postfix/disclaimer/default.txt, right?

Could you please paste value o

Yes, disclaimer file is located on /etc/postfix/disclaimer/ and named default.txt.

@local_domains_maps value:

@local_domains_maps = ( [".$mydomain","mydomain.com"] );  # list of all local domains

8

Re: disclaimer problem !!!

Altermime uses plain text as disclaimer content by default in iRedMail, but you mail was composed in HTML format, maybe you need to change altermime setting to use HTML format too.

Please refer to altermime manual page or document in its official page for using HTML format.

9

Re: disclaimer problem !!!

Thanks for your suggest, but i can not see anything to config altermime (free edition) to display plaintext or html. How can i do it ?

10

Re: disclaimer problem !!!

I am having the same problem. I think the latest release makes this a lot easier.