On Tue, 28 Apr 2020 10:21:46 -0400 (EDT),Wietse Venema <wie...@porcupine.org> 
wrote:


>That brings the question, how do you maintain these files? One way
>to temporarily 'lose' aliases is if you manage the files with scp
>which overwrites, instead of using rsync which creates a copy under
>a temporary name, and renames the copy to the permanent name after
>the file is complete.
>

The file /etc/postfix/virtual and virtual_regexp are rather static and 
maintained manually.

-rw-rw-r--. 1 root postfix  6227 2019-06-22 12:51 virtual_regexp
-rw-rw-r--. 1 root postfix 20528 2020-02-17 20:02 virtual
-rw-r-----. 1 root postfix 53248 2020-04-28 01:05 virtual.db

The example domains (currently two observed with problems) are all located in 
the 'virtual' file
 
postmap is used once every night at 1:05 AM to generate the virtual.db file 
including some addresses
from a database.

/usr/sbin/postmap /etc/postfix/virtual
/usr/sbin/postmap -i hash:/etc/postfix/virtual </etc/postfix/mailinglists.txt

There is thus considerable time between regenerating the database and the wrong 
delivery
and at 2020-04-25T07:20:25.630342+02 one hour before one of the incorrect 
deliveries a correct
delivery was made. During this hour no change was made to the virtual.db file.

/Jørgen


Venlig hilsen
Jørgen Thomsen

Reply via email to