Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: exim: users

Exim, Vacation and Horde

 

 

exim users RSS feed   Index | Next | Previous | View Threaded


mike.jones at fastwebmedia

May 8, 2008, 2:06 AM

Post #1 of 4 (88 views)
Permalink
Exim, Vacation and Horde

Hi,
I've been trawling the internet for the past couple of days to try and find an answer to a little problem I have, but none of the solutions seem to fit what I'm trying to do.

Basically I have Exim, Horde and Imp installed with version 1.1.9 of vacation sitting in /usr/local/bin on a FC 6 server.

Everything works fine, except for the vacation module of Horde which generates a .forward file of

\user, "|/usr/local/bin/vacation user"

Apart from the fact that the .forward file is missing the line # Exim filter, Exim doesn't seem to like that command (in fact no reply is sent, and emails don't get delivered).

However with a bit of routing around, I found that this command does work in the .forward file if put in manually.

unseen pipe "/usr/local/bin/vacation -a user-alias user"

So, my question is simply this - why does the command generated by horde (and by vacation at the command line) not work with exim, but the command I discovered does work ?

The configure file is right out of the box (with a few tweaks for courier-imap) with no routers etc for vacations, so my understanding is that the .forward file is being handled by the forward router and transport.

Any help gratefully received

Mike
--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


dot at dotat

May 8, 2008, 5:01 AM

Post #2 of 4 (80 views)
Permalink
Re: Exim, Vacation and Horde [In reply to]

On Thu, 8 May 2008, Mike Jones wrote:

> Everything works fine, except for the vacation module of Horde which
> generates a .forward file of
>
> \user, "|/usr/local/bin/vacation user"
>
> Apart from the fact that the .forward file is missing the line # Exim
> filter,

It shouldn't have a # Exim filter line because it isn't a filter file,
it's a traditional .forward file which Exim treats as a redirection list.
See the three sections starting at
http://www.exim.org/exim-html-current/doc/html/spec_html/index.html#toc0208

> Exim doesn't seem to like that command (in fact no reply is
> sent, and emails don't get delivered).

What do the logs say?

Tony.
--
<fanf[at]exim.org> <dot[at]dotat.at> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}

--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


mike.jones at fastwebmedia

May 8, 2008, 7:13 AM

Post #3 of 4 (76 views)
Permalink
Re: Exim, Vacation and Horde [In reply to]

Thanks for that,
Now getting somewhere.

However, now have a new problem.

This is how we're set up here

Fred Jones has a log in account of fjones for his email.
The mail server has the domain name of mail.example.com
Freds email is delivered to fred.jones[at]hisoffice.co.uk

So we have a virtual domain of hisoffice.co.uk and in it we have

fred.jones: fjones

Now, both vacation and horde produce the line

\fjones, "|/usr/local/bin/vacation fjones"

This works fine, but the vacation email that gets returned has the return address of : fjones[at]mail.example.com instead of fred.jones[at]hisoffice.co.uk

I've tried \fjones, "|/usr/local/bin/vacation -a fred.jones[at]hisoffice.co.uk fjones" and also putting a From: line in the .vacation.msg file - same thing happens.

Our forward router and transport are:

userforward:
driver = redirect
check_local_user
file = $home/.forward
no_verify
no_expn
check_ancestor
allow_filter
file_transport = address_file
pipe_transport = address_pipe
reply_transport = address_reply

Address_Pipe gets used

address_pipe:
driver = pipe
return_output

Any more thoughts anyone ?

Mike

-----Original Message-----
From: Tony Finch [mailto:fanf2[at]hermes.cam.ac.uk] On Behalf Of Tony Finch
Sent: 08 May 2008 13:01
To: Mike Jones
Cc: 'exim-users[at]exim.org'
Subject: Re: [exim] Exim, Vacation and Horde

On Thu, 8 May 2008, Mike Jones wrote:

> Everything works fine, except for the vacation module of Horde which
> generates a .forward file of
>
> \user, "|/usr/local/bin/vacation user"
>
> Apart from the fact that the .forward file is missing the line # Exim
> filter,

It shouldn't have a # Exim filter line because it isn't a filter file, it's a traditional .forward file which Exim treats as a redirection list.
See the three sections starting at
http://www.exim.org/exim-html-current/doc/html/spec_html/index.html#toc0208

> Exim doesn't seem to like that command (in fact no reply is sent, and
> emails don't get delivered).

What do the logs say?

Tony.
--
<fanf[at]exim.org> <dot[at]dotat.at> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}


--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


Christian.Schmidt at chemie

May 16, 2008, 1:33 AM

Post #4 of 4 (12 views)
Permalink
Re: Exim, Vacation and Horde [In reply to]

Hello Mike,

Mike Jones, 08.05.2008 (d.m.y):

> Fred Jones has a log in account of fjones for his email.
> The mail server has the domain name of mail.example.com
> Freds email is delivered to fred.jones[at]hisoffice.co.uk
>
> So we have a virtual domain of hisoffice.co.uk and in it we have
>
> fred.jones: fjones
>
> Now, both vacation and horde produce the line
>
> \fjones, "|/usr/local/bin/vacation fjones"
>
> This works fine, but the vacation email that gets returned has the return address of:
> fjones[at]mail.example.com instead of fred.jones[at]hisoffice.co.uk
>
> I've tried \fjones, "|/usr/local/bin/vacation -a fred.jones[at]hisoffice.co.uk fjones"
> and also putting a From: line in the .vacation.msg file - same thing happens.

What do your rewrite rules look like?

Gruss/Regards,
Christian Schmidt

--
It is a wise father that knows his own child.
-- William Shakespeare, "The Merchant of Venice"

--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

exim users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.