diff --git a/TODO.md b/TODO.md deleted file mode 100644 index 0e97698d..00000000 --- a/TODO.md +++ /dev/null @@ -1 +0,0 @@ -* How to block attachment with Amavisd diff --git a/en_US/howto/sign.disclaimer.md b/en_US/howto/sign.disclaimer.md new file mode 100644 index 00000000..ac1bfebd --- /dev/null +++ b/en_US/howto/sign.disclaimer.md @@ -0,0 +1,54 @@ +# 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. diff --git a/en_US/upgrade/1-iredmail.releases.md b/en_US/upgrade/1-iredmail.releases.md index 7854b356..47129366 100644 --- a/en_US/upgrade/1-iredmail.releases.md +++ b/en_US/upgrade/1-iredmail.releases.md @@ -1,12 +1,12 @@ # iRedMail release notes and upgrade tutorials -[TOC] - !!! note * iRedMail source code is hosted on [BitBucket](https://bitbucket.org/zhb/iredmail/src). * Download the [latest iRedMail stable release](../download.html). +[TOC] + ### Why keep your iRedMail server up to date * The latest iRedMail release brings new features, improvements, and bug fixes. diff --git a/html/index.html b/html/index.html index c50a0731..dbd31eaa 100644 --- a/html/index.html +++ b/html/index.html @@ -123,6 +123,7 @@
Note
+Note
-Note
+If you're not sure which is Amavisd config file on your server, please +check our document to find it:
+ +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.
All documents are available in BitBucket repository, and published under Creative Commons license. If you found something wrong, please do contact us to fix it. + \ No newline at end of file