Line 534: |
Line 534: |
| ====How to block email from one address to another address with check_badmailfromto plugin==== | | ====How to block email from one address to another address with check_badmailfromto plugin==== |
| | | |
− | Enable the check_badmailfromto plugin. From [http://forums.contribs.org/index.php/topic,35667.0.html this Forum post] | + | Enable the check_badmailfromto plugin. Adapted from [http://forums.contribs.org/index.php/topic,35667.0.html this Forum post] |
| | | |
| This is much like the similar check_badmailfrom, but this plugin references both the | | This is much like the similar check_badmailfrom, but this plugin references both the |
Line 543: |
Line 543: |
| harassment). Based heavily on check_badmailfrom. | | harassment). Based heavily on check_badmailfrom. |
| | | |
− | | + | To control mail from external locations to internal locations do |
| mkdir -p /etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/0 | | mkdir -p /etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/0 |
| mkdir -p /etc/e-smith/templates-custom/var/service/qpsmtpd/config/plugins | | mkdir -p /etc/e-smith/templates-custom/var/service/qpsmtpd/config/plugins |
Line 557: |
Line 557: |
| ln -s /etc/e-smith/templates-custom/var/service/qpsmtpd/config/plugins/31check_badmailfromto /etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/0/31check_badmailfromto | | ln -s /etc/e-smith/templates-custom/var/service/qpsmtpd/config/plugins/31check_badmailfromto /etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/0/31check_badmailfromto |
| signal-event email-update | | signal-event email-update |
| + | |
| + | To control mail sent from internal locations to internal locations, in addition to the above also do |
| + | mkdir -p /etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/local |
| + | ln -s /etc/e-smith/templates-custom/var/service/qpsmtpd/config/plugins/31check_badmailfromto /etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/local/31check_badmailfromto |
| + | signal-event email-update |
| + | |
| | | |
| Configure the badmailfromto config file | | Configure the badmailfromto config file |