On 08 Sep 2017, at 09:53, Wietse Venema <wie...@porcupine.org> wrote:
> CONFIGURATION PARAMETERS
>       Changes to main.cf are picked up automatically, as cleanup(8) processes
>       run for only a limited amount of time. Use the command "postfix reload"
>       to speed up a change.

Right, I knew that.

> That also applies to the content of lookup tables that are used by the
> cleanup daemon.

I did not know that, however. Thanks.

The script is stupidly simple, but I will include it anyway in case anyone 
cares:

#!/bin/bash

JDATE=$(gdate +%j)
cat << EOF > /etc/postfix/recipient_bcc.pcre
if !/backup.*@/
/^([^+_]*).*@([^.]*)/   backup+${JDATE}.\${1}-\${2}@southgaylord.com 
endif

EOF

this results in a maildir for today for my list email address of

.251.kremels-kreme

Which is certainly easier to sort and search through than the previous method, 
especially if I use an MUA instead of doing everything via the shell.

I was torn on doing the SI date, but decided since the backups are only short 
term, there was no reason not to simply use the day of the year for sorting.

I use cron to run it at midnight

-- 
Apple broke AppleScripting signatures in Mail.app, so no random signatures.

Reply via email to