Viktor Dukhovni: > This depends on how urgent the change is. If the OP wants to see the > change take effect immediately, a "reload" is recommended when lists of > domains or similar are configured directly in main.cf or in flat text > files.
"postfix reload" is safe, as long as it is a low-frequency action. Without "postfix reload" many Postfix daemons will detect that an indexed file has changed (hash, lmdb, cdb, etc) and will restart before accepting the next connection. However the trivial-rewrite service detects such changes only every 10 seconds. What happens during those 10s depends on the table implementation: - Updating cdb is safe because the postmap command renames the new indexed file into place - Updating lmdb is safe because it implements multi-version concurrency control (with snapshots, etc.) - But Berkeley DB has evolved and it's best to use the safe update strategy in https://www.postfix.org/DATABASE_README.html#safe_db so that programs won't look at stale data that they have cached in-memory. Wietse
