[Pkg-exim4-users] Auto-reply mails and the envelope

Neil S. Briscoe neil.briscoe at adelix.com
Thu Feb 28 21:03:11 UTC 2008


I'm willing to do that - the code is here

# Exim filter <<== Do not edit or remove this line!
if error_message then finish endif

deliver testpupil # We assume its personal mail, so we take it.

# If its personal mail and not mailing list stuff, let the sender
# know that I'm away.  Currently, we bug them only the first
# time they send a mail and every 5 days afterwards.

if personal or
   ( $header_to: contains testpupil@ or
   $header_from: does not contain testpupil@ and
   $header_from: does not contain server@ and
   $header_from: does not contain daemon@ and
   $header_from: does not contain root@ and
   $header_subject: does not contain "circular" and
   $header_precedence: does not contain "bulk" and
   $header_precedence: does not contain "list" and
   $header_precedence: does not contain "junk" )
then
   mail
     to $reply_address
     from $h_to:
     reply_to $h_to:
     subject "Re: $h_subject:"
     file $home/away/away_message
     once $home/away/once
     once_repeat 5d
endif

finish

As you can probably guess, this is the .forward file for a user called 
testpupil at the relevant domain.

A reply message is triggered and hits the queue.  It tends to show up 
something like :-

10m  5.5K 1JUppu-0006XF-AS <> (testpupil)
           neil.briscoe at adelix.com

What I'd like is to get that testpupil inside those angle brackets, but 
I can't seem to find a way.

Regards
Neil


Bruno CAPELETO wrote:
> Hi Neil,
> 
> Best would be to give your .forward file.
> 
> Something that worked on my configuration was to call the vacation
> router / transport; by default the sender of the autoreply is the
> initial recipient.
> 
> Bruno
> 
>> Message: 2
>> Date: Thu, 28 Feb 2008 11:25:36 +0000
>> From: "Neil S. Briscoe" <neil.briscoe at adelix.com>
>> Subject: [Pkg-exim4-users] Auto-reply mails and the envelope
>> To: pkg-exim4-users at lists.alioth.debian.org
>> Message-ID: <47C69A30.8070009 at adelix.com>
>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>>
>> I have a .forward file containing an exim-filter script which works.
>>
>> The reply message ends up in the mail queue.
>>
>> However, due to the smarthost that is used, the message is never sent.
>>
>> This appears to be because the envelope from is null, that is <>.
>>
>> I can't seem to find a way to set this to be the same as the from 
>> address I'm setting.
>>
>> Can anyone advise?
>>
>> Thanks.
>>
>> Regards
>> Neil
>>
>>
>>   
> 
> 
> _______________________________________________
> Pkg-exim4-users mailing list
> Pkg-exim4-users at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-exim4-users
> 
> ------------------------------------------------------------------------------------
> Scanned for viruses, spam and offensive content by CensorNet MailSafe
> 
> Professional Web & E-mail Filtering from www.censornet.com
> 



-- 

Neil Briscoe
Adelix Ltd
neil.briscoe at adelix.com web: www.adelix.com
tel: 0845 230 9592 / fax: 0845 230 9591 / main office: 0845 230 9590
snail: The Old Post Office, Bristol Rd, Hambrook, Bristol BS16 1RY. UK.
skype: stonefish001 MSN: nbriscoeuk at hotmail.co.uk

Adelix Ltd is a registered company in England & Wales No. 4232156
VAT registration number 779 4232 91
Adelix Ltd is BS EN ISO 9001:2000 Certified (No. GB 12763)

Any views expressed in this email communication are those
of the individual sender, except where the sender specifically states
them to be the views of a member of Adelix Ltd.  Adelix Ltd. does not
represent, warrant or guarantee that the integrity of this communication
has been maintained nor that the communication is free of errors or
interference.

------------------------------------------------------------------------------------
Scanned for viruses, spam and offensive content by CensorNet MailSafe

Professional Web & E-mail Filtering from www.censornet.com



More information about the Pkg-exim4-users mailing list