1

Topic: Domain based disclaimer not working with roundcube+outlook

Using latest Iredadmin pro LDAP version
we are facing problem on setting domain based disclaimer.
we have followed everything as you mentioned for setting domain based disclaimer. catch all disclaimer is working properly.  dump_disclimer.py is working fine. no error. but disclaimer is not getting attaching with the mail.

mail header content as follows

Return-Path: <user1@xyz.com>
Delivered-To: user1@xyz.com
Received: from localhost (mailsrv.xyz.com [127.0.0.1])
    by mailsrv.xyz.com (Postfix) with ESMTP id 5CFFBCC0066
    for <user1@xyz.com>; Fri, 7 Dec 2012 17:48:06 +0530 (IST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xyz.com; h=
    user-agent:message-id:subject:subject:to:from:from:date:date
    :content-transfer-encoding:content-type:content-type
    :mime-version; s=dkim; t=1354882661; x=1355746661; bh=Xtvwt7Cb0W
    352Oz91uI6OPSbAdpWr71PAW0aGQhUBh0=; b=2DY63hvIjWO83GEZ87KZbrt2KG
    jexE3CkXSYfcc8AMFQsaGj9bZ0qURTSyANkeVbFjWWQHdoIht51P1jMQ2f0lTmS0
    7CIK+jfD1xKrAjwD2v8FKwxTONM6AafKYVcyXdMTWc0TvAKES+dkeRwKbPYGVSbJ
    7XZYqTLjzIyO8zpRI=
X-Amavis-Modified: Mail body modified (using disclaimer) - mailsrv.xyz.com
X-Virus-Scanned: amavisd-new at mailsrv.xyz.com
Received: from mailsrv.xyz.com ([127.0.0.1])
    by localhost (mailsrv.xyz.com [127.0.0.1]) (amavisd-new, port 10024)
    with ESMTP id DnbOO1eCzdaX for <user1@xyz.com>;
    Fri, 7 Dec 2012 17:47:41 +0530 (IST)
Received: from mailsrv.xyz.com (mailsrv.xyz.com [127.0.0.1])
    by mailsrv.xyz.com (Postfix) with ESMTPA id 11BF2CC0055
    for <user1@xyz.com>; Fri, 7 Dec 2012 17:47:41 +0530 (IST)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8;
    format=flowed
Content-Transfer-Encoding: 7bit
Date: Fri, 07 Dec 2012 17:47:41 +0530
From: user1@xyz.com
To: user1 <user1@xyz.com>
Subject: 2gg
Message-ID: <d501d7874b3f4aec30a0bdb8f4351cf9@xyz.com>
X-Sender: user1@xyz.com
User-Agent: RoundCube WebMail

2

Re: Domain based disclaimer not working with roundcube+outlook

bijuedathodi wrote:

X-Amavis-Modified: Mail body modified (using disclaimer) - mailsrv.xyz.com

According to this mail header, Amavisd should already modified mail body. Could you please try this:

- Stop amavisd service first.
- Start Amavisd service with command line:

# amavisd debug

It will log all messages to terminal directly until you press Ctrl+C to stop Amavisd service.
- Send a test email again, and check amavisd output message. Paste related log here to help troubleshoot.

3

Re: Domain based disclaimer not working with roundcube+outlook

Output of debug command

config file "/etc/amavisd.conf does not exists, at /usr/sbin/amavisd line 1799

4

Re: Domain based disclaimer not working with roundcube+outlook

/var/log/mailog


Dec  7 19:30:01 mailsrv postfix/pickup[1870]: 7297BCC0078: uid=0 from=<root>
Dec  7 19:30:01 mailsrv postfix/cleanup[1872]: 7297BCC0078: message-id=<20121207140001.7297BCC0078@mailsrv.xyz.com>
Dec  7 19:30:01 mailsrv postfix/qmgr[1871]: 7297BCC0078: from=<root@mailsrv.xyz.com>, size=1217, nrcpt=1 (queue active)
Dec  7 19:30:12 mailsrv postfix/smtpd[2701]: connect from unknown[xx.xxx.xxx.xxx]
Dec  7 19:30:12 mailsrv postfix/smtpd[2701]: C00B7CC0075: client=unknown[xx.xxx.xxx.xxx], sasl_method=LOGIN, sasl_username=user1@xyz.in
Dec  7 19:30:13 mailsrv postfix/cleanup[2317]: C00B7CC0075: message-id=<009b01cdd483$1605de20$42119a60$@in>
Dec  7 19:30:13 mailsrv postfix/qmgr[1871]: C00B7CC0075: from=<user1@xyz.in>, size=2767, nrcpt=1 (queue active)
Dec  7 19:30:16 mailsrv postfix/smtpd[2701]: disconnect from unknown[xx.xxx.xxx.xxx]
Dec  7 19:30:26 mailsrv postfix/smtpd[2648]: connect from mailsrv.xyz.com[127.0.0.1]
Dec  7 19:30:26 mailsrv postfix/smtpd[2648]: E01F3CC007F: client=mailsrv.xyz.com[127.0.0.1]
Dec  7 19:30:26 mailsrv postfix/cleanup[1872]: E01F3CC007F: message-id=<20121207140001.7297BCC0078@mailsrv.xyz.com>
Dec  7 19:30:26 mailsrv postfix/smtpd[2648]: disconnect from mailsrv.xyz.com[127.0.0.1]
Dec  7 19:30:26 mailsrv postfix/qmgr[1871]: E01F3CC007F: from=<root@mailsrv.xyz.com>, size=1761, nrcpt=1 (queue active)
Dec  7 19:30:26 mailsrv postfix/cleanup[2317]: EA58ECC0082: message-id=<20121207140001.7297BCC0078@mailsrv.xyz.com>
Dec  7 19:30:26 mailsrv amavis[2640]: (02640-04) Passed CLEAN, MYUSERS <root@mailsrv.xyz.com> -> <root@mailsrv.xyz.com>, Message-ID: <20121207140001.7297BCC0078@mailsrv.xyz.com>, mail_id: tdMgrcoY6NjP, Hits: -0.001, size: 1217, queued_as: E01F3CC007F, 25455 ms
Dec  7 19:30:26 mailsrv postfix/local[2651]: E01F3CC007F: to=<root@mailsrv.xyz.com>, relay=local, delay=0.08, delays=0.04/0/0/0.04, dsn=2.0.0, status=sent (forwarded as EA58ECC0082)
Dec  7 19:30:26 mailsrv postfix/qmgr[1871]: EA58ECC0082: from=<root@mailsrv.xyz.com>, size=1897, nrcpt=1 (queue active)
Dec  7 19:30:27 mailsrv postfix/qmgr[1871]: E01F3CC007F: removed
Dec  7 19:30:27 mailsrv postfix/smtp[2668]: 7297BCC0078: to=<root@mailsrv.xyz.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=26, delays=0.1/0/0/25, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as E01F3CC007F)
Dec  7 19:30:27 mailsrv postfix/qmgr[1871]: 7297BCC0078: removed
Dec  7 19:30:27 mailsrv postfix/pipe[2652]: EA58ECC0082: to=<postmaster@xyz.com>, relay=dovecot, delay=0.14, delays=0.04/0/0/0.1, dsn=2.0.0, status=sent (delivered via dovecot service)
Dec  7 19:30:27 mailsrv postfix/qmgr[1871]: EA58ECC0082: removed
Dec  7 19:30:38 mailsrv postfix/smtpd[2648]: connect from mailsrv.xyz.com[127.0.0.1]
Dec  7 19:30:38 mailsrv postfix/smtpd[2648]: C0C4ACC0078: client=mailsrv.xyz.com[127.0.0.1]
Dec  7 19:30:38 mailsrv postfix/cleanup[1872]: C0C4ACC0078: message-id=<009b01cdd483$1605de20$42119a60$@in>
Dec  7 19:30:38 mailsrv postfix/smtpd[2648]: disconnect from mailsrv.xyz.com[127.0.0.1]
Dec  7 19:30:38 mailsrv postfix/qmgr[1871]: C0C4ACC0078: from=<user1@xyz.in>, size=3327, nrcpt=1 (queue active)
Dec  7 19:30:38 mailsrv amavis[2641]: (02641-04) Passed CLEAN, MYUSERS LOCAL [xx.xxx.xxx.xxx] [xx.xxx.xxx.xxx] <user1@xyz.in> -> <user2cj@gmail.com>, Message-ID: <009b01cdd483$1605de20$42119a60$@in>, mail_id: 1IuHXISd2dao, Hits: -9.998, size: 2767, queued_as: C0C4ACC0078, 25251 ms
Dec  7 19:30:38 mailsrv postfix/smtp[2703]: C00B7CC0075: to=<user2cj@gmail.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=26, delays=0.8/0/0/25, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as C0C4ACC0078)
Dec  7 19:30:38 mailsrv postfix/qmgr[1871]: C00B7CC0075: removed
Dec  7 19:30:41 mailsrv postfix/smtp[2708]: C0C4ACC0078: to=<user2cj@gmail.com>, relay=gmail-smtp-in.l.google.com[74.125.25.27]:25, delay=2.7, delays=0.02/0.01/0.65/2, dsn=2.0.0, status=sent (250 2.0.0 OK 1354888978 f9si15189852paz.87)
Dec  7 19:30:41 mailsrv postfix/qmgr[1871]: C0C4ACC0078: removed
Dec  7 19:31:01 mailsrv postfix/pickup[1870]: 962E9CC0078: uid=0 from=<root>
Dec  7 19:31:01 mailsrv postfix/cleanup[2317]: 962E9CC0078: message-id=<20121207140101.962E9CC0078@mailsrv.xyz.com>
Dec  7 19:31:01 mailsrv postfix/qmgr[1871]: 962E9CC0078: from=<root@mailsrv.xyz.com>, size=1217, nrcpt=1 (queue active)
Dec  7 19:31:04 mailsrv postfix/qmgr[1871]: 8DB27CC0066: from=<root@mailsrv.xyz.com>, size=1217, nrcpt=1 (queue active)
Dec  7 19:31:27 mailsrv postfix/smtpd[2648]: connect from mailsrv.xyz.com[127.0.0.1]
Dec  7 19:31:27 mailsrv postfix/smtpd[2648]: 1F0F0CC0069: client=mailsrv.xyz.com[127.0.0.1]
Dec  7 19:31:27 mailsrv postfix/cleanup[1872]: 1F0F0CC0069: message-id=<20121207140101.962E9CC0078@mailsrv.xyz.com>
Dec  7 19:31:27 mailsrv postfix/smtpd[2648]: disconnect from mailsrv.xyz.com[127.0.0.1]
Dec  7 19:31:27 mailsrv postfix/qmgr[1871]: 1F0F0CC0069: from=<root@mailsrv.xyz.com>, size=1761, nrcpt=1 (queue active)
Dec  7 19:31:27 mailsrv postfix/cleanup[2317]: 29D6ACC007F: message-id=<20121207140101.962E9CC0078@mailsrv.xyz.com>
Dec  7 19:31:27 mailsrv amavis[2640]: (02640-05) Passed CLEAN, MYUSERS <root@mailsrv.xyz.com> -> <root@mailsrv.xyz.com>, Message-ID: <20121207140101.962E9CC0078@mailsrv.xyz.com>, mail_id: ygcZCh8i-mTj, Hits: -0.001, size: 1217, queued_as: 1F0F0CC0069, 25520 ms
Dec  7 19:31:27 mailsrv postfix/smtp[2668]: 962E9CC0078: to=<root@mailsrv.xyz.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=26, delays=0.1/0/0/26, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 1F0F0CC0069)
Dec  7 19:31:27 mailsrv postfix/qmgr[1871]: 962E9CC0078: removed
Dec  7 19:31:27 mailsrv postfix/local[2651]: 1F0F0CC0069: to=<root@mailsrv.xyz.com>, relay=local, delay=0.09, delays=0.04/0/0/0.05, dsn=2.0.0, status=sent (forwarded as 29D6ACC007F)
Dec  7 19:31:27 mailsrv postfix/qmgr[1871]: 29D6ACC007F: from=<root@mailsrv.xyz.com>, size=1897, nrcpt=1 (queue active)
Dec  7 19:31:27 mailsrv postfix/qmgr[1871]: 1F0F0CC0069: removed
Dec  7 19:31:27 mailsrv postfix/pipe[2652]: 29D6ACC007F: to=<postmaster@xyz.com>, relay=dovecot, delay=0.15, delays=0.05/0/0/0.1, dsn=2.0.0, status=sent (delivered via dovecot service)
Dec  7 19:31:27 mailsrv postfix/qmgr[1871]: 29D6ACC007F: removed
Dec  7 19:31:29 mailsrv postfix/smtpd[2648]: connect from mailsrv.xyz.com[127.0.0.1]
Dec  7 19:31:29 mailsrv postfix/smtpd[2648]: E0222CC0069: client=mailsrv.xyz.com[127.0.0.1]
Dec  7 19:31:29 mailsrv postfix/cleanup[1872]: E0222CC0069: message-id=<20121207135401.8DB27CC0066@mailsrv.xyz.com>
Dec  7 19:31:29 mailsrv postfix/smtpd[2648]: disconnect from mailsrv.xyz.com[127.0.0.1]
Dec  7 19:31:29 mailsrv postfix/qmgr[1871]: E0222CC0069: from=<root@mailsrv.xyz.com>, size=1761, nrcpt=1 (queue active)
Dec  7 19:31:29 mailsrv postfix/cleanup[2317]: E7C81CC0078: message-id=<20121207135401.8DB27CC0066@mailsrv.xyz.com>
Dec  7 19:31:29 mailsrv amavis[2641]: (02641-05) Passed CLEAN, MYUSERS <root@mailsrv.xyz.com> -> <root@mailsrv.xyz.com>, Message-ID: <20121207135401.8DB27CC0066@mailsrv.xyz.com>, mail_id: 4PxqyPx0ChC3, Hits: -0.001, size: 1217, queued_as: E0222CC0069, 25296 ms
Dec  7 19:31:29 mailsrv postfix/smtp[2703]: 8DB27CC0066: to=<root@mailsrv.xyz.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=448, delays=423/0/0/25, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as E0222CC0069)
Dec  7 19:31:29 mailsrv postfix/qmgr[1871]: 8DB27CC0066: removed
Dec  7 19:31:29 mailsrv postfix/qmgr[1871]: E7C81CC0078: from=<root@mailsrv.xyz.com>, size=1897, nrcpt=1 (queue active)
Dec  7 19:31:29 mailsrv postfix/local[2651]: E0222CC0069: to=<root@mailsrv.xyz.com>, relay=local, delay=0.07, delays=0.03/0/0/0.03, dsn=2.0.0, status=sent (forwarded as E7C81CC0078)
Dec  7 19:31:29 mailsrv postfix/qmgr[1871]: E0222CC0069: removed
Dec  7 19:31:30 mailsrv postfix/pipe[2652]: E7C81CC0078: to=<postmaster@xyz.com>, relay=dovecot, delay=0.14, delays=0.03/0/0/0.1, dsn=2.0.0, status=sent (delivered via dovecot service)
Dec  7 19:31:30 mailsrv postfix/qmgr[1871]: E7C81CC0078: removed

5

Re: Domain based disclaimer not working with roundcube+outlook

bijuedathodi wrote:

config file "/etc/amavisd.conf does not exists, at /usr/sbin/amavisd line 1799

Which Linux distribution do you use? Amavisd config file location is different on different Linux distributions: /etc/amavisd.conf, or /etc/amavisd/amavisd.conf, or /etc/amavis/conf.d/*.
Try this:

# amavisd -c /etc/amavisd/amavisd.conf debug

6 (edited by bijuedathodi 2012-12-07 23:00:35)

Re: Domain based disclaimer not working with roundcube+outlook

using CentOs 6.3

while debugging not getting any message only shows Its running........

dump_disclaimer.py output is
* [2012-12-07 20:25:17] Loading config file: /var/www/iRedAdmin-Pro-LDAP-1.8.1/tools/../settings.ini
* [2012-12-07 20:25:17] Connecting to LDAP server
* [2012-12-07 20:25:17] Binding with dn: o=domains,dc=xyz,dc=com
* [2012-12-07 20:25:17] Searching accounts which have disclaimer configured
* [2012-12-07 20:25:17] Dumping ...
* [2012-12-07 20:25:17] + xyz.com -> /etc/postfix/disclaimer/xyz.com.{txt,html}
* [2012-12-07 20:25:17] + xyz.in -> /etc/postfix/disclaimer/xyz.in.{txt,html}
* [2012-12-07 20:25:17] Total 2 domains.
* [2012-12-07 20:25:17] Connection closed.

7

Re: Domain based disclaimer not working with roundcube+outlook

Disclaimer Started working .no changes made