Use of .forward file
Posted: Mon Sep 01, 2025 1:49 pm
Hello there,
I'm checking the use of exim4 filters with the .forward file, under the user Maildir folder, p.e:
With no luck. The sample forward is:
The Test folder exists, and contain {new, cur, etc} subfolders.
Seems Ok, as it says test-email would be moved to the desired folder.
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
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