20 February 2012 08:24 -
Because I got some complaints about my response speed to email, I will
try to give a small insight in the mysteries of how I handle my email.
Especially how I handle my email during the holidays. It is a little
technical, so if you do not know anything about Unix or mail, it is
probably better to take a look at the
pictures of my cats.
Anyway, the mail server which is the final destination for the jeroen.se email
runs postfix. Which of course is configured using the main.cf file.
In my
main.cf file there are 2 lines interesting for
understanding how I handle my email during the holidays:
smtpd_recipient_restrictions=
check_recipient_access hash:/usr/local/etc/postfix/holding,
Which checks all the recipients of incoming email against the
/usr/local/etc/postfix/holding file. Normally this file is empty, but
during my holidays it contains:
jeroen.se HOLD
Which puts all incoming mail for the jeroen.se domain into the hold
queue, instead of delivering it.
When coming back from a holiday, I remove said line, run
postmap on /usr/local/etc/postfix/holding and run
postsuper -r ALL hold to reprocess all mail and mail will start
coming into my mailbox again.