Hello

thank you Viktor for your advice, it was very helpful.
I do hold temporarily incoming mails for migrating users with a transport table with retry: transport.

As you said it's better clean than with smtpd_restrictions avec hold queue

- no need to release manually hold mails
- no trouble with multi-recipients mails

Thank you again.

--
Arnaud
[email protected]


I am guessing English is a 'second language' for you.  The error
messages above are remarkably precise as to the nature of the
problem, and what you should do.  Specifically:

Append the new table to proxy_read_maps (list it in proxy_read_maps
as instructed in the log message):

     # postconf -e "$(postconf proxy_read_maps), 
proxy:mysql:/etc/postfix/users_hold_mail_migration_zimbra.mysql"

Finally, I strongly recommend against "HOLD" in smtpd_restrictions
for your migration use-case.  It is flawed in multiple ways:

     * Holds too much mail, when messages have multiple recipients. some
       of whom are not being migrated.

     * Fails to hold mail where the target user receives the mail via an
       alias or list.

     * Makes it difficult to release mail in a safe way, requiring careful
       manual manipulation of the HOLD queue.

Instead, configure per-user transport entries with "defer" as the transport:

     main.cf:
        # Use MySQL if you like
        #
        transport_maps = some:table

     # Logical content, possible in a database of some sort
     #
     transport:
        # Make sure to cover all domains for which the user receives mail
        # after rewriting (not aliases, rewritten addresses ready for delivery).
        #
        [email protected]    retry:4.2.1 Mailbox maintenance in progress

See:

     http://tools.ietf.org/html/rfc3463#section-3.3
     http://www.postfix.org/error.8.html

By using transport_maps not only do you avoid all the problems with
HOLD, but you also don't need to customize proxy_read_maps, because
$transport_maps is there by default.

Plus mail is delivered automatically, once the table entry is removed.
You can optionally enable or disable delay notices to suit your
taste.

     http://www.postfix.org/postconf.5.html#delay_warning_time

--
        Viktor.

Reply via email to