[Dovecot] Migrate from Maildir to mdbox

Stan Hoeppner stan at hardwarefreak.com
Mon Dec 27 19:23:37 EET 2010


Thomas Leuxner put forth on 12/27/2010 9:55 AM:
> Am 27.12.2010 um 15:04 schrieb Ralf Hildebrandt:
> 
>>> How about this. Implement a header check in Postfix and put the mail for the account to be maintained on HOLD:
>>>
>>> [ master.cf ]
>>> cleanup   unix  n       -       -       -       0       cleanup
>>>  -o header_checks=pcre:/etc/postfix/header_checks_maintenance
> 
>> Usually you do this in main.cf
> 
>>> $ cat /etc/postfix/header_checks_maintenance
>>> /^To:.*user at domain.tld.*/      HOLD Planned maintenance for account
>>> [&]
> 
>> And usually one uses "check_recipient_access" for this, not
>> header_checks
> 
> Aren't the smtp restrictions enforced before accepting the mail? How would one hold something he hasn't got yet? :)

Yes, they are.

man 5 access

HOLD is a valid action for access tables.  In Ralf's example the HOLD
action is what is "enforced", causing the mail to be accepted queued.

-- 
Stan


More information about the dovecot mailing list