Change autoresponder subject for one domain only

fireman949

Verified User
Joined
Aug 15, 2006
Messages
7
Currently the autoresponder changes the subject line to :
Autoreponse: $foo

I have a customer that wants it to say "Re: $foo"


I found in the exim.conf the following:

Code:
userautoreply:
  driver = autoreply
  bcc = ${lookup{${local_part}} lsearch {/etc/virtual/${domain}/autoresponder.conf}{$value}}
  file = /etc/virtual/${domain}/reply/${local_part}.msg
  from = "${local_part}@${domain}"
  log = /etc/virtual/${domain}/reply/${local_part}.log
  no_return_message
  subject = "${if def:h_Subject: {Autoreply: ${quote:${escape:$h_Subject:}}} {Autoreply Message}}"
  to = "${sender_address}"
  user = mail
  #once = /etc/virtual/${domain}/reply/${local_part}.once

Would it be possible to change the subject = line to check the autoresponder.conf or is that the wrong purpose for the autoresponder.conf?
 
You can experiment with changing the subject line :) ; be sure to keep a backup.

You'll have to check for the sending domain.

Jeff
 
Ya, I did that and I worked as I expected it to but it affected everyone on the server.

I was wondering if it could be configured on a per-domain basis where blah.com has a specific Subject to the autoresponse but everyone else uses the default.
 
I think so.

That's why i wrote:
You'll have to check for the sending domain.
You'll have to figure out how to do a conditional based on the domain. The best way to do it is to have a lookup file or two, for the domain and the proper subject.

I haven't studied this enough to figure out how doable it is.

Jeff
 
Back
Top