]> git.proxmox.com Git - pmg-api.git/commit
reload postfix instead of restart on config change
authorStoiko Ivanov <s.ivanov@proxmox.com>
Tue, 9 Apr 2019 16:13:17 +0000 (18:13 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 12 Apr 2019 07:46:53 +0000 (09:46 +0200)
commit2473cb81ec3085bcd4c2f21be12a2c905f44cd21
tree086bc59f39eb76575d29e971d4d8cdbb19f9bbf3
parent9206d25bf70ee439c559fbbbbbb26be045270a93
reload postfix instead of restart on config change

From `man 1 postfix`:
```
Note: in order to refresh the Postfix mail system after a
configuration change, do not use the start and stop commands in
succession. Use the reload command instead.
```

Additionally restarting postfix, while a mail has been passed to
pmg-smtp-filter but has not beed fed back to postfix again, causes it
to get passed a second time to pmg-smtp-filter (by qmgr) and this
results in duplicate maildelivery

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
PMG/API2/MyNetworks.pm
PMG/Config.pm