On Wed, 18 Apr 2001, Keith Edwards wrote:
> I have just inherited responsibility
> for exim so apologies if my crash
> course causes confusion to all ...
What a narrow screen you have! :-) (Makes a change from all those
postings with no linebreaks in the paragraphs...)
Which release of Exim have you inherited?
> 2001-04-18 10:56:23 14pohC-00077V-00
> auto_responder director: failed to
> expand "! ^autoreply@ : ! ^vacation@
> : ! ^\\$ " $ not followed by letter,
> digit, or {
> #senders = " ! ^postmaster@
> : ! ^owner- : ! ^admin@ : !
> ^vacation@ : ! ^autoreply@ : !
> ^listmaster@ : ! ^mailer-daemon@ : !
> ^\\\\$"
I suggest you remove the " from round the setting. That removes one
level of escaping needed for the \ character.
At present you have:
"^\\\\$" is turned into ^\\$ when the configuration is read
\\$ causes an error when the "senders" value is expanded - the \\
turns into \ and then the $ is illegal.
Try:
senders = whatever : ^\$
No quotes => no processing on read in. The expansion then turns ^\$ into
^$ which is what you want.
Actually, if you are testing for an empty sender, all you actually want
is
senders = : whatever
That is, leave the first item in the list empty. (Not the last item - an
empty last item is ignored.)
If you are using a version of Exim prior to 3.13, it is not surprising
that you are confused. The following bug was fixed in 3.13:
2. The "senders" setting on directors and routers was getting string expanded
twice, by mistake. This mattered if after the first expansion there was a \ or
a $ in the string (e.g. in a regex).
All the more reason for avoiding the regex!
--
Philip Hazel University of Cambridge Computing Service,
ph10@??? Cambridge, England. Phone: +44 1223 334714.