Re: [Exim] Bug? domain literals on command-line

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Jochen Erwied
CC: Jochen Erwied, exim-users
Subject: Re: [Exim] Bug? domain literals on command-line
On Thu, 18 Apr 2002, Jochen Erwied wrote:

> Thursday, April 18, 2002, 11:29:11 AM, you wrote:
>
> > Feature, controlled by allow_domain_literals.
>
> As said before, exim is configured to accept domain literals, the
> corresponding option allow_domain_literals is set. But the sender
> cannot be set to a domain literal.
>
> Direct SMTP using MAIL FROM:<user@[ip]> or RCPT TO:<user@[ip]> works,
> commandline exim -f '<user@[ip]>' does not.


Ah! Sorry. I hadn't noticed that it was a -f argument that was the
problem.

This is a nasty one. The contents of -f are parsed when Exim is
interpreting the command line. This happens before it reads the
configuration file, and therefore before it sees
"allow_domain_literals".

I suppose I could always allow domain literals for -f, since it is a
trusted option and the caller could be supposed to know what they are
doing. That would be the easiest option.

I really rather hoped that domain literals were dying out. Most people
have never heard of them and are amazed when you describe them.

I've made a note to think about this.

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