Have you considered using make (Makefile) in /etc/mail directory?
It should allow you more atomic & fail-safe generation of new map version.
Hello,
it's been years since we had Usenet, I miss it so.
I noticed that while running the command '/usr/sbin/makemap hash /etc/mail/access.db < /etc/mail/access' sendmail says "User unknown"
for users for a few fractions of a second.
Am I doing it wrong? Shouldn't there be a seamless gap between the old and new access db's?
14:05:00.999160066 username@ourdomain.com... deliverable: mailer esmtp, host ourdomain.onmicrosoft.com., username@ourdomain.onmicrosoft.com.
14:05:01.014579615 username@ourdomain.com... deliverable: mailer esmtp, host ourdomain.onmicrosoft.com., username@ourdomain.onmicrosoft.com.
14:05:01.030263277 username@ourdomain.com... User unknown
14:05:01.057106599 username@ourdomain.com... User unknown
14:05:01.074483391 username@ourdomain.com... deliverable: mailer esmtp, host ourdomain.onmicrosoft.com., username@ourdomain.onmicrosoft.com.
14:05:01.091811253 username@ourdomain.com... deliverable: mailer esmtp, host ourdomain.onmicrosoft.com., username@ourdomain.onmicrosoft.com.
AFAIK /etc/mail/Makefile provided by Debian-Linux uses 4 step procedure
1. create new map version *in new/separate file* 2. fix ownership
3. fix access permissions 4. do atomic replacement (file rename) of old version by new version
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 85:35:29 |
Calls: | 6,658 |
Files: | 12,203 |
Messages: | 5,333,708 |