OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: howto HOLD all mails for a specific user?

From: Wietse Venema (wietseporcupine.org)
Date: Fri Jun 12 2009 - 06:46:33 CDT


One correction for missing ":" below.

Wietse Venema:
> Stefan Palme:
> > Hi all,
> >
> > As far as I have understood, check_recipient_access in
> > smtpd_recipient_restrictions uses the original RCPT TO addresses for
> > lookup (and not on the results after resolving (virtual) aliases).
> >
> > I want all mails received for a certain user to put on HOLD
> > for a while (because I am repairing her IMAP mailbox).
> >
> > This user receives mail for a lot of (virtual) email addresses, e.g.
> > infoexample1.com, webmasterexample2.net, etc.
> >
> > Do I really have to write my check_recipient_access map in the form
> >
> > infoexample1.com HOLD
> > webmasterexample2.net HOLD
> > ...
>
> With Postfix 2.4+:
>
> /etc/postfix/main.cf:
> transport_maps = /etc/postfix/transport
>
> /etc/postfix/transport:
> userexample.com retry 4.0.0 Mailbox being migrated

Should be: userexample.com retry:4.0.0 Mailbox being migrated

        Wietse
> This avoids the need to hold and release mail.
>
> Wietse
>
>