1

Topic: Disclaimer with amavisd just will not work, any help appreciated

Hi there, I was going by this guide here:

http://www.iredmail.org/forum/topic210- … mails.html

These are my configs for this:

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

@disclaimer_options_bysender_maps = ({
    # Per-domain disclaimer setting: /etc/postfix/disclaimer/host1.iredmail.org.txt
    #'host1.iredmail.org' => 'host1.iredmail.org',
   
    'mail.server.me.uk' => 'mail.server.me.uk',
    'mail.server1.co.uk' => 'mail.server1.co.uk',
   

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

A bit further up I have:
@local_domains_maps = ( [".$mydomain","mail.server.co.uk","mail.server1.co.uk"] );

I thought going by the guide I went by in the FAQ I followed everything have I got this right?

I created the files: mail.server.co.uk.txt and mail.server1.co.uk.txt in /etc/postfix/disclaimer but as I said it just refuses to work and I can't understand why.

Any helps appreciated,
Jeremy.

==== Required information ====
- iRedMail version: 0.8.1
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL 5
- Linux/BSD distribution name and version: Centos 6.3
- Related log if you're reporting an issue: Can't find any logs, but can't also find a way of turning any on so any suggestions to achieve this if necessary is greatly appreciated
====

----

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

2

Re: Disclaimer with amavisd just will not work, any help appreciated

Could you please turn on debug mode in Amavisd and paste detailed log here to help troubleshoot?

3 (edited by j.smith1981 2012-08-08 20:20:23)

Re: Disclaimer with amavisd just will not work, any help appreciated

Oh for some weird reason it's started to work.

Not exactly sure why.

Hmm very odd but on the flip side I am getting much more confident with changing logic and settings around so they can suit my own usage.

Thanks again,
Jeremy