Re: [exim] Exim, Vacation and Squirrelmail Out of Office set…

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Mike Ridgers
Datum:  
To: 'Chris Wilson'
CC: 'Exim-users@exim.org'
Betreff: Re: [exim] Exim, Vacation and Squirrelmail Out of Office setup.
Hi Chris,
Great, thanks for that; I didn't realise the vacation syntax was wrong. Will give it a go !

Thanks also for the tip on the From line. I don't think the Squirrelmail Auto Response plugin allows me to put a From line so that maybe a limitation that will have to be lived with. Though it's funny how the Exim driver lets me put a From: address but I still get that "on behalf of;" line in replies.

Cheers,

Mike.


-----Original Message-----
From: Chris Wilson [mailto:chris+exim@qwirx.com]
Sent: 01 October 2013 16:37
To: Mike Ridgers
Cc: 'Exim-users (Exim-users@???)'
Subject: Re: [exim] Exim, Vacation and Squirrelmail Out of Office setup.

Hi Mike,

I don't have any experience with Exim's built-in Vacation driver, but we use /usr/bin/vacation and it works for us.

On Tue, 1 Oct 2013, Mike Ridgers wrote:

> A message that you sent could not be delivered to one or more of its
> recipients. This is a permanent error. The following address(es) failed:
>
>  pipe to |/usr/bin/vacation  -a bobm
>    generated by bob@???
>    local delivery failed

>
> The following text was generated during the delivery attempt:
>
> ------ pipe to |/usr/bin/vacation  -a bobm
>       generated by bob@??? ------

>
> usage: vacation [ -I ]
> or:    vacation [ -j ] [ -a alias ] [ -h hostname ] [ -tN ] [ -r ] login

>
> This seems to be saying that the vacation command failed. However I
> can't work out why - the syntax of the .forward file seems OK to me ?
>
> "|/usr/bin/vacation -a bobm"


No, if you include -a it must be followed by an alias, AND you must have a login name at the end.

If you have no aliases, and the user's login name is "bobm", then it should look like:

"|/usr/bin/vacation bobm"

If you have an alias, let's say "bob", it should look like this:

"|/usr/bin/vacation -a bob bobm"

Don't forget that you must initialise the vacation database (with vacation -i or -I) to create .vacation.db, otherwise vacation will also refuse to run, and you'll still get a bounce message.

> The other (realtively minor) issue is that when the auto reply comes
> back I get "From: bob@???; on behalf of; bob@???"
> as the server is on a different domain from the email domain. Is there
> a way to fix this I wonder ?


With /usr/bin/vacation you can include a "From: Bob M <bobm@???>"
line in your .vacation.msg file, in the headers section (between the top of the file, and the first blank line), and this overrides the automatically generated From: header.

Cheers, Chris.
-- 
_____ __     _
\  __/ / ,__(_)_  | Chris Wilson <chris+sig@???> Cambs UK | / (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Ruby/Perl/SQL Developer | \__/_/_/_//_/___/ | We are GNU : free your mind & your software |