Help - Search - Members - Calendar
Full Version: Using Exim Filters
Hostony Board > General > Anything and Everything
MartinB
Hi ppl:

i want to keep a copy of all incoming/outgoing mails from/to test@mydomain.com in a folder at my home.

Support give me important info about the Exim filters for do that, so i put a .forward in my /home/myuser/mail/.forward, with:

--------------------------------------------
if $header_to: contains "test@mydomain.com" or
$header_from: contains "test@mydomain.com" then
logfile $home/filter.log 0644
logwrite "$tod_log $message_id processed"
save $home/mail_log/
finish
endif
---------------------------------------------

But nothing happen! I think i'm doing something wrong.

so, somebody here have some experience using Exim filters ?

I'm continue surfing the web, if I get the solution i will post it here for your future use (I think It's very usefull).

Thank you all in advance. smile.gif
- Martin.
Alec
We are looking for solution as well smile.gif
MartinB
Thanks Alec!

I see an example here and change my .forward to:

CODE
# Exim filter

logfile $home/filter.log

if $header_to: contains "test@xxxx.com.ar" or
  $header_from: contains "test@xxxx.com.ar" then
    logwrite "$tod_log $message_id processed"
      save $home/mail/.test_copy
      finish
endif



Not working sad.gif but I'm still trying.
greetings wink.gif
Alexandre
What is the value of the variable $home ? wink.gif
MartinB
In the tutorial of Exim Filters says than I don't need to set the value of $home, is like a native variable setted by Exim.

Anyways, I have tried replacing the $home by the absolute path to my home, and don't work wink.gif
Alexandre
Did you try $home = "/home/username"
where "username" is your login to cpanel.
MartinB
yes
Alexandre
Do you have any suggestions?
MartinB
biggrin.gif

I have not clear if i need put the .forward in my , in my /home/wizhosti/mail, in my ~/mail/maildomain/mailaccount/, or what.

Sergey say me ~/mail, and I think I have tried all the alternatives.... maybe Exim is not configured for support .forward files ?

I know we'll make it work sometime smile.gif
ser_pros
Exim support .forward files.
They are located in users root directory.
MartinB
Thank you ser_pros, do you mean like /home/wizhosti/.forward ? sad.gif

well....i hace tried it in this location and it does'nt work, so, i'm doing something wrong.

Somebody here have some ideas ? smile.gif smile.gif
MartinB
If somebody is interested (wink.gif) here is a tutorial of Exim Filters with examples:
http://www.exim.org/exim-html-3.30/doc/html/filter.html
MartinB
for the record:

I think than the Exim Filter is not executed because i put the lines:

logfile /home/wizhosti/filter.log
logwrite "Exim filter executed."

in the .forward and nothing happen.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.
IPS Driver Error

IPS Driver Error

There appears to be an error with the database.
You can try to refresh the page by clicking here