mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2024-12-12 10:45:14 +02:00
[Postfix] Fix alias for spam and ham addresses
This commit is contained in:
parent
4d393d9265
commit
ef8c79c0e5
@ -5,9 +5,9 @@ trap "postfix stop" EXIT
|
|||||||
[[ ! -d /opt/postfix/conf/sql/ ]] && mkdir -p /opt/postfix/conf/sql/
|
[[ ! -d /opt/postfix/conf/sql/ ]] && mkdir -p /opt/postfix/conf/sql/
|
||||||
|
|
||||||
cat /dev/null > /etc/aliases;
|
cat /dev/null > /etc/aliases;
|
||||||
echo "null: /dev/null" >> /etc/aliases;
|
echo 'null: /dev/null' >> /etc/aliases;
|
||||||
echo "ham: '|/usr/bin/curl -s --data-binary @- --unix-socket /rspamd-sock/rspamd.sock http://rspamd/learnham'" >> /etc/aliases;
|
echo '"ham: "|/usr/bin/curl -s --data-binary @- --unix-socket /rspamd-sock/rspamd.sock http://rspamd/learnham"' >> /etc/aliases;
|
||||||
echo "spam: '|/usr/bin/curl -s --data-binary @- --unix-socket /rspamd-sock/rspamd.sock http://rspamd/learnspam'" >> /etc/aliases;
|
echo 'spam: "|/usr/bin/curl -s --data-binary @- --unix-socket /rspamd-sock/rspamd.sock http://rspamd/learnspam"' >> /etc/aliases;
|
||||||
newaliases;
|
newaliases;
|
||||||
|
|
||||||
cat <<EOF > /opt/postfix/conf/sql/mysql_relay_recipient_maps.cf
|
cat <<EOF > /opt/postfix/conf/sql/mysql_relay_recipient_maps.cf
|
||||||
|
Loading…
Reference in New Issue
Block a user