1

Topic: Disclaimer Amavis

==== Required information ====
- iRedMail version (check /etc/iredmail-release):     v0.9.4
- Linux/BSD distribution name and version: Centos 7.2
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MYSQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====
Good morning,
       
        I configured disclaimer amavis and works well when the emails originate from the internal LAN (192.168.x.x), but it does not work when the emails come from outside LAN with smartphone or tablet from internet.

From LAN in the header i can find :
X-Amavis-Modified: Mail body modified (using disclaimer) -
    iredmail-server.xxxxxxxx.it
X-Virus-Scanned: amavisd-new at iredmail-server.xxxxxxxx.it

From INTERNET in the header i can find :
X-Virus-Scanned: amavisd-new at iredmail-server.xxxxxxxx.it

In amavisd.conf i have :
@mynetworks = qw( 127.0.0.0/8 [::1] [FE80::]/10 [FEC0::]/10
                  10.x.x.x/8 172.16.x.x/12 192.168.x.x/16 );

$policy_bank{'MYNETS'} = {
        allow_disclaimers => 1
};

$policy_bank{'ORIGINATING'} = {
        allow_disclaimers => 1
};
         


Thank you
Mark

----

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

2

Re: Disclaimer Amavis

Have to enable debug mode in Amavisd to see whether altermime works fine.
Reference: http://www.iredmail.org/docs/debug.amavisd.html

3

Re: Disclaimer Amavis

Hi,
 
    in my amavis log i have :

Email sent from LAN
Sep 29 15:33:04 iredmail-server amavis[25171]: (25171-18) Passed CLEAN {RelayedInternal}, MYNETS LOCAL [192.168.x.x]:35054 <claudia@xxxx.it> -> <info@xxx.it>, Queue-ID: B4CF11CDC5, Message-ID: <34d491afa82f7076d4870356005e3dbf@www.xxxx.it>, mail_id: VlxQEFGxvYx2, Hits: -0.999, size: 1396, queued_as: 8C2271CDD0, dkim_new=dkim:xxxx.it, 760 ms


Email sent from INTERNET
Sep 29 15:07:49 iredmail-server amavis[25171]: (25171-16) Passed CLEAN {RelayedInbound}, [31.19.8.25]:50519 [31.19.2.25] <claudia@xxxx.it> -> <info@yyyy.it>, Queue-ID: DD2D43CC, Message-ID: <7A574378-781A-491D-80D5-47C88706514F@xxxx.it>, mail_id: HFHqKnlAZuUM, Hits: -1, size: 588, queued_as: 459C0942, 1091 ms

The difference :
{RelayedInternal}, MYNETS LOCAL

{RelayedInbound}, [31.19.8.25]:50519




ZhangHuangbin wrote:

Have to enable debug mode in Amavisd to see whether altermime works fine.
Reference: http://www.iredmail.org/docs/debug.amavisd.html

4

Re: Disclaimer Amavis

We need the log related to altermime program. Could you please paste FULL log related to your testing email? (replace the real domain name by something like "example.com", "mydomain.com" before pasting.)