Topic: REMOVE DISCLAIMER FOR MY INTERNAL domain
BASIC INFO OF IREDMAIL SERVER
- iRedMail version : 1.3.2 OPENLDAP edition.
- Deployed with iRedMail Easy or the downloadable installer? iRedMail Easy
- Linux/BSD distribution name and version: RHEL8
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx):NGINX
- Manage mail accounts with iRedAdmin-Pro? NO
Hi,
we configured a disclaimer in amavisd and it works fine it appends in all outgoing emails but we don't want a disclaimer in our internal communication. we need this only for external domains.
(means when a user 'user1@domain1.com' send mail to another user 'user2@domain1.com' in the same domain we don't want disclaimer in this mail, but if a user user1@domain1.com send mail to another domain like xyz@example.com or alluser@alldomain disclaimer should be automatically appended) need this type of configuration
amavisd.conf file
# Uncomment below 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, per-user disclaimer setting:
'mail.mydomain.in' => 'mydomain_default',
# 'google.com' => /opt/xyz.txt,
# Catch-all disclaimer setting: /etc/postfix/disclaimer/default.txt
'.' => 'default',
},);
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.