mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-07-19 09:34:56 +00:00
[Postfix] Fix alias for spam and ham addresses
This commit is contained in:
parent
4d393d9265
commit
ef8c79c0e5
1 changed files with 3 additions and 3 deletions
|
|
@ -5,9 +5,9 @@ trap "postfix stop" EXIT
|
|||
[[ ! -d /opt/postfix/conf/sql/ ]] && mkdir -p /opt/postfix/conf/sql/
|
||||
|
||||
cat /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 "spam: '|/usr/bin/curl -s --data-binary @- --unix-socket /rspamd-sock/rspamd.sock http://rspamd/learnspam'" >> /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 'spam: "|/usr/bin/curl -s --data-binary @- --unix-socket /rspamd-sock/rspamd.sock http://rspamd/learnspam"' >> /etc/aliases;
|
||||
newaliases;
|
||||
|
||||
cat <<EOF > /opt/postfix/conf/sql/mysql_relay_recipient_maps.cf
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue