Crie um arquivo chamado 30_exim4-config_system_filter
in /etc/exim4/conf.d/main
, que contém o seguinte:
# System wide filter:
# http://exim.org/exim-html-current/doc/html/spec_html/ch-systemwide_message_filtering.html
system_filter = /etc/mail/exim.filter
system_filter_user = Debian-exim
system_filter_group = Debian-exim
system_filter_file_transport = address_file
system_filter_pipe_transport = address_pipe
# System wide filter end.
Em seguida, execute os seguintes comandos:
sudo exim -bF /etc/mail/exim.filter < /etc/mail/spam-test
sudo update-exim4.conf
sudo service exim4 restart
Seu novo filtro deve estar funcionando ...