Mailing List Archive

Newbie : . forward filter not working
We have installed Exim 3.3 on a FreeBSD. I tried to test an exim filter on a
.forward file.

I have uncommented the 'filter' option in the userforward director in the
config file.

The config file has the following settings:

userforward:
driver = forwardfile
file = .forward
no_verify
no_expn
check_ancestor
filter
file_transport = address_file
pipe_transport = address_pipe
reply_transport = address_reply

The .forward file contains:

# Exim filter

if error_message then finish endif
if personal then deliver antispam endif

When I send to the user with the test .forward filter, I get these messages:

/home/test1/.forward: line 2: if error_message then finish endif... User
unknown
/home/test1/.forward: line 3: if personal then deliver antispam... User
unknown
/home/test/.forward: line 3: if error_message then finish endif... User
unknown
/home/test/.forward: line 5: if personal then deliver antispam... User
unknown
/home/test/dead.letter... Saved message in /home/test/dead.letter

It seems that the exim filter script is not being recognized. Does any have
any idea on fixing this error?

Thanks a lot.

Abraham Tomas
tomas@trenthealth.com
Re: Newbie : . forward filter not working [ In reply to ]
On Mon, 15 Jul 2002, Abe Tomas wrote:

> I have uncommented the 'filter' option in the userforward director in the
> config file.

Did you HUP the daemon after doing that?

> When I send to the user with the test .forward filter, I get these messages:

Try a test send with full debugging turned on:

exim -d11 user@domain
this is a test
.

--
Philip Hazel University of Cambridge Computing Service,
ph10@cus.cam.ac.uk Cambridge, England. Phone: +44 1223 334714.
RE: Newbie : . forward filter not working [ In reply to ]
Thanks a lot for your reply.

Yes, I did a HUP.

First time I tried debugging, exim was looking for file 'configure' in
/usr/local/etc/exim. I then copied our config file into this folder, ran
exim -d11 test@domain. It delivered the message ok. Are there any debugging
messages that i have to look for during these -d11 tests?

I tried doing another normal send like '>mail test@domain'. The 'User
unknown' error message still displays and mail is saved in dead.letter.

Thanks again.

Abraham Tomas
tomas@trenthealth.com

-----Original Message-----
From: Philip Hazel [mailto:ph10@cus.cam.ac.uk]
Sent: July 15, 2002 11:52 AM
To: Abe Tomas
Cc: exim-users@exim.org
Subject: Re: [Exim] Newbie : . forward filter not working


On Mon, 15 Jul 2002, Abe Tomas wrote:

> I have uncommented the 'filter' option in the userforward director in the
> config file.

Did you HUP the daemon after doing that?

> When I send to the user with the test .forward filter, I get these
messages:

Try a test send with full debugging turned on:

exim -d11 user@domain
this is a test
.

--
Philip Hazel University of Cambridge Computing Service,
ph10@cus.cam.ac.uk Cambridge, England. Phone: +44 1223 334714.
RE: Newbie : . forward filter not working [ In reply to ]
On Mon, 15 Jul 2002, Abe Tomas wrote:

> First time I tried debugging, exim was looking for file 'configure' in
> /usr/local/etc/exim. I then copied our config file into this folder, ran
> exim -d11 test@domain. It delivered the message ok. Are there any debugging
> messages that i have to look for during these -d11 tests?
>
> I tried doing another normal send like '>mail test@domain'. The 'User
> unknown' error message still displays and mail is saved in dead.letter.

What is the output of 'ls -l /usr/sbin/sendmail'? It should be a
symbolic link to exim. (On some systems /usr/lib/sendmail is used.)

This looks like it might not be correct on your system - so Exim isn't
being called by "mail" - it's calling something else (Sendmail?)
instead.

--
Philip Hazel University of Cambridge Computing Service,
ph10@cus.cam.ac.uk Cambridge, England. Phone: +44 1223 334714.
RE: Newbie : . forward filter not working [ In reply to ]
Thanks a lot. I ln'ed exim/sbin/exim to /usr/sbin/sendmail and it worked!
very much appreciated.

Abe Tomas
tomas@trenthealth.com

-----Original Message-----
From: Philip Hazel [mailto:ph10@cus.cam.ac.uk]
Sent: July 15, 2002 4:09 PM
To: Abe Tomas
Cc: exim-users@exim.org
Subject: RE: [Exim] Newbie : . forward filter not working


On Mon, 15 Jul 2002, Abe Tomas wrote:

> First time I tried debugging, exim was looking for file 'configure' in
> /usr/local/etc/exim. I then copied our config file into this folder, ran
> exim -d11 test@domain. It delivered the message ok. Are there any
debugging
> messages that i have to look for during these -d11 tests?
>
> I tried doing another normal send like '>mail test@domain'. The 'User
> unknown' error message still displays and mail is saved in dead.letter.

What is the output of 'ls -l /usr/sbin/sendmail'? It should be a
symbolic link to exim. (On some systems /usr/lib/sendmail is used.)

This looks like it might not be correct on your system - so Exim isn't
being called by "mail" - it's calling something else (Sendmail?)
instead.

--
Philip Hazel University of Cambridge Computing Service,
ph10@cus.cam.ac.uk Cambridge, England. Phone: +44 1223 334714.