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

Pàgina inicial
Delete this message
Reply to this message
Autor: Chris Wilson
Data:  
A: Mike Ridgers
CC: 'Exim-users \(Exim-users@exim.org\)'
Assumpte: 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 |