Re: [Exim] Autoreply which sends no message

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Philip Hazel
Ημερομηνία:  
Προς: John Horne
Υ/ο: Exim Users List
Αντικείμενο: Re: [Exim] Autoreply which sends no message
On Fri, 30 Mar 2001, John Horne wrote:

> > 1. Put the files on a fileserver that both slave and master can see.
> > Works for us. (Of course, that's something that needs planning.)
> >
> We don't run NIS of any sort so there are no file servers which could be
> used.


I presume you mean "NFS" when you say "NIS"? If not, I'm very confused!

> > Hmm. Why don't you just allow normal vacation processing on the master,
> > and then throw away any message containing the X-header? What have I
> > missed? [This means that messages get delivered, but no vacation
> > processing is done, when the master is down.]
> >
> Yes, this is what I want to do. It works except that by setting the 'to'
> option to the nobody address (to get rid of the message) causes the nobody
> address to be logged in the 'log' file.


I think we are talking at cross purposes here. There won't be any
"nobody" address involved in what I (thought I) suggested. My idea was
that the slave should do normal delivery, and also send the message to
the master. Always. So on the slave you might have a director like this
as the first director:

xxxx:
driver = smartuser
headers_add = X-Something
new_address = $local_part@$domain : $local_part@MASTER.$domain
new_director = the-name-of-the-next-director

with some special routing that sends MASTER.$domain to the master
server. Then, on the master server, you rewrite MASTER.$domain to
$domain, let the address run through the directors that do the vacation
stuff - you should be processing a message that is identical (apart from
an extra received: header) to one that comes directly - but before your
final delivery director, you put

xxxx:
driver = smartuser
condition = ${if eq {$h_X-Something:}{}{no}{yes}}
new_address = :blackhole:

in order to bypass the delivery.

Of course, this puts extra work on your master. If you can arrange for
the slave to know when not to bother (the user is not on vacation) you
can save some work.

Philip

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.