8 lines
300 B
Bash
8 lines
300 B
Bash
|
#!/bin/sh
|
||
|
if [ "$1" == "c" ] && [ "$2" == "/etc/postfix/aliases.d/" ] && [ "$3" == "virtual" ]; then
|
||
|
cp /etc/postfix/aliases.d/virtual /etc/postfix/virtual
|
||
|
chown root:root /etc/postfix/virtual
|
||
|
postmap /etc/postfix/virtual
|
||
|
echo "$(date +"%b %d %H:%M:%H"): remapped virtual aliases"
|
||
|
fi
|