wiki:send-quarantine-reminders.pl

The send-quarantine-reminders.pl script

If you set a reminder threshold count or size from Maia Mailguard's System Configuration page, you'll want to add this script to your cron schedule to ensure that reminder e-mails are sent out to users at regular intervals (e.g. once per week) when the number of items in their quarantine area exceeds this threshold count, or when the total size of the items in their quarantine area exceeds the threshold size. Users can individually opt out of these reminders, of course, and for some types of users (e.g. system accounts, spam-traps, etc.) you'll want to disable reminder notices, but for most regular users this setting should probably be enabled by default, to ensure that users are aware of Maia Mailguard and the status of their quarantine area.

The reminder.tpl template file is used to generate the reminder e-mails, so you'll probably want to edit that template to suit your needs. The following placeholders can be used to substitute for certain values you may wish to include in your template:

PlaceholderExpands To
%%VIRUSCOUNT%%Number of viruses in quarantine
%%SPAMCOUNT%%Number of suspected spam items in quarantine
%%BANNEDCOUNT%%Number of items with banned file attachments in quarantine
%%HEADERCOUNT%%Number of items with invalid mail headers in quarantine
%%VIRUSSIZE%%Total size of all viruses in quarantine
%%SPAMSIZE%%Total size of all suspected spam items in quarantine
%%BANNEDSIZE%%Total size of all items with banned file attachments in quarantine
%%HEADERSIZE%%Total size of all items with invalid mail headers in quarantine
%%MAIAURL%%URL users should visit to login to Maia Mailguard
%%ADMINEMAIL%%E-mail address of the mail administrator
%%EXPIRYPERIOD%%Number of days items are allowed to live in quarantine
%%OLDESTITEMTTL%%Number of days before the oldest quarantined item is deleted
%%OLDESTITEMAGE%%Age (in days) of the oldest item in quarantine
Last modified 17 years ago Last modified on Apr 12, 2006, 10:33:21 PM