iredmail-doc/en_US/howto/sign.disclaimer.md

55 lines
1.8 KiB
Markdown
Raw Normal View History

2016-04-25 07:44:06 -05:00
# Sign disclaimer on outgoing mails
!!! note
If you're not sure which is Amavisd config file on your server, please
check our document to find it:
* [Locations of configuration and log files of major components](./file.locations.html)
With iRedMail, it's able to sign disclaimer on outgoing email with Amavisd-new
and alterMIME, it is pre-configured but disabled by default.
To enable the signing, please find setting in Amavisd config file `amavisd.conf`:
```
#$defang_maps_by_ccat{+CC_CATCHALL} = [ 'disclaimer' ];
```
Uncomment the `$defang_maps_by_ccat` line and restart Amavisd service will
enable signing disclaimer on outgoing email, default disclaimer text is stored
in `/etc/postfix/disclaimer/default.txt` (Linux/OpenBSD) or
`/usr/local/etc/postfix/disclaimer/default.txt`.
If you need a per-domain disclaimer, please update setting `@disclaimer_options_bysender_maps`
in Amavisd config file:
```
@disclaimer_options_bysender_maps = ({
# Per-domain disclaimer setting: /etc/postfix/disclaimer/host1.iredmail.org.txt
#'host1.iredmail.org' => 'host1.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',
},);
```
Just add your domain name with the same syntax, then create required file with
disclaimer text. For example, for domain `example.com`:
```
@disclaimer_options_bysender_maps = ({
# domain 'example.com'
# disclaimer text file: /etc/postfix/disclaimer/example.com.txt
'example.com' => 'example.com',
# Catch-all disclaimer setting: /etc/postfix/disclaimer/default.txt
'.' => 'default',
},);
```
Restarting Amavisd service is required each time you changed its config file.