add main transport to postfix on install

This commit is contained in:
James Tomasino 2019-01-02 14:55:11 -05:00
parent 4a08a3b383
commit 79428eb185
1 changed files with 3 additions and 0 deletions

View File

@ -27,6 +27,9 @@ menu:
stow -t "/etc" menu
postfix:
if ! grep -q 'transport_maps' "/etc/postfix/main.cf"; then \
printf "transport_maps = hash:/etc/postfix/transport" >> "/etc/postfix/main.cf"; \
fi
stow -t "/etc/postfix" postfix
sudo chown root /etc/postfix/transport
postmap /etc/postfix/transport