I'm checking the use of exim4 filters with the .forward file, under the user Maildir folder, p.e:
Code: Select all
/home/user/mail/domain.com/account/.forward
Code: Select all
# Exim filter
if $header_From: contains "[email protected]"
then
testprint "from=$header_From to=$h_To"
save /home/user/mail/domain.com/account/.Test/
finish
endif
Code: Select all
sudo -u user /usr/sbin/sendmail -bf /home/user/mail/domain.com/account/.forward -f [email protected] < test-email.eml
But when i try to check the filter with a mail, nothing happens. Am I missing something?
Edit: Debian 11 with Exim 4.94.2