On 4/9/2010 2:33 PM, Brian Sebby wrote:
> We reject mail coming into our mail server that is not an approved address,
> so I have a cron job that gets the list of approved addresses twice an hour,
> updates the relay_recipients file that we use with relay_recipients_maps,
> and then reload postfix.
>
> We had a case the other morning where someone sent email to an address that
> is in our relay_recipient_maps file, but it came in at the same second that
> the reload of the maps file was being done.  As a result, it was rejected 
> with a "User unknown in relay recipient table" message in the log file.
>
> The script just does:
>
> * Copy in new relay_recipients file
> * postmap relay_recipients
> * postfix reload
>
> Is there a better way to do this?  Should I stop postfix completely during
> this time?  Will putting the queue on hold avoid this problem, or do I need
> to stop Postfix completely from responding?
>   

FAQ: http://www.postfix.org/DATABASE_README.html#safe_db

In addition, there is no need to do "postfix reload" as per
http://www.postfix.org/DATABASE_README.html#detect

Reply via email to