Line 249: |
Line 249: |
| *Modify subject of spam messages Enabled | | *Modify subject of spam messages Enabled |
| | | |
| + | ===spam retention in junk mailbox=== |
| + | The server will automatically delete old spam in the junkmail folders after 90 days. You can control the number of days old spam is kept with the following commands. Where 15 is the number of days you want to keep messages, do... |
| + | db configuration setprop spamassassin MessageRetentionTime 15 |
| + | signal-event email-update |
| + | svc -t /service/qpsmtpd |
| + | then |
| + | config show spamassassin |
| | | |
| + | ===Mail Statistics=== |
| + | |
| + | See [[Mailstats]] for details on the mailstats package. |
| + | |
| + | yum install --enablerepo=smecontribs smeserver-mailstats |
| + | |
| + | ===Whitelist and Blacklist=== |
| + | If mail comes in and it is misclassified as spam, you can add the sender to the whitelist so that future messages coming in from that sender are not filtered. |
| + | Conversely, you can add a spammer to the blacklist so you never see their spam again. |
| + | Add senders (or their entire domains) to the global whitelist (or blacklist) with commands similar to these (as root): |
| + | |
| + | db spamassassin setprop wbl.global *@vonage.com White |
| + | db spamassassin setprop wbl.global *domain2.com White |
| + | db spamassassin setprop wbl.global user@domain3.com White |
| + | db spamassassin setprop wbl.global spammer@spamdomain.com Black |
| + | expand-template /etc/mail/spamassassin/local.cf |
| + | svc -t /service/spamd |
| + | |
| + | You can view the lists with this command: |
| + | db spamassassin show |
| | | |
| ==MySQL== | | ==MySQL== |