Re: [Exim] literal domains in Exim 4 / local_domains_include…

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: David Burton
Data:  
Para: exim-users
CC: Philip Hazel
Temas antigos: Re: [Exim] literal domains in Exim 4 / local_domains_include_host_literals / "domain literals not allowed"
Asunto: Re: [Exim] literal domains in Exim 4 / local_domains_include_host_literals
ph10@??? (Philip Hazel) wrote:

> On Sat, 19 Jun 2004, David Burton wrote:
>
> > When I uncomment this line in exim.conf...
> >
> >     # local_domains_include_host_literals

> >
> > ....exim 4.30 won't run. It reports an error and quits:
>
> That line does not exist in Exim 4's default configuration. You must
> have an Exim 3 configuration file.


Yes, I converted from Exim 3, using the convert4r4 script.


> Why not look at the Exim 4 default configuration file? A grep for
> "literal" will get you to the right place.


Because I didn't think of that. :-)

I've now added a comment to my exim.conf, reminding me to
look in /usr/exim/src/configure.default for documentation.
I put it right under the comment which reminds me to "see also
/etc/exim/sa-exim.conf and /etc/mail/spamassassin/local.cf
and /etc/aliases". This is my coping mechanism, since I fool
around with Exim's configuration so seldom that I tend to
forget advice like this by the next time I need it.


My thanks to all who answered, and especially to Stephen Gran,
whose answer solved my problem, and to Philip, for a great
program!

-Dave

P.S. -- Am I correct in concluding that there is no way to
directly address email to a server on a port other than
port 25, and that the only way email can be sent to a server
that is listening on an alternate port is if a port forwarder
or specially configured forwarding mail server forwards it
there, and that syntaxes like user@[209.170.129.106:26] or
user@???:26 are illegal, and MX records cannot
refer to a port number?



--------- Begin forwarded message ----------
> Date: Sat, 19 Jun 2004 18:39:17 -0400
> From: Stephen Gran <steve@???>
> To: exim-users@???
> Subject: Re: [Exim] literal domains in Exim 4 / local_domains_include_host_literals / "domain literals not allowed"
> Message-ID: <20040619223917.GB18330@www.lobefin.net>
> In-Reply-To: <B2qkZHvcwapi@???>
>
> On Sat, Jun 19, 2004 at 05:30:39PM -0400, David Burton said:
> > When I uncomment this line in exim.conf...
> >
> >     # local_domains_include_host_literals

> >
> > ....exim 4.30 won't run. It reports an error and quits:
> >
> >     main option "local_domains_include_host_literals" unknown

> >
> > Obviously, the local_domains_include_host_literals option has
> > been removed in Exim 4.
>
> Correct.
>
> >     # If you want to accept mail addressed to your host's literal IP address, for
> >     # example, mail addressed to "user@???", then uncomment the
> >     # following line, or supply the literal domain(s) as part of "local_domains"
> >     # above. You also need to comment "forbid_domain_literals" below. This is not
> >     # recommended for today's Internet.

> >
> > Also, as the instructions say, I commented out
> > forbid_domain_literals:
> >
> >     # forbid_domain_literals

>
> You're looking to do the inverse:
>
> allow_domain_literals
>
> And then you can set:
> domainlist local_domains = myhost.example : [111.111.111.111]
>
> or
>
> domainlist local_domains = myhost.example : @[]
>
> The second version causes all the IP addresses for your host to be
> recognized in IP literal format. This is only accepting email in domain
> literal format, mind you - if you want to send to addresses this way,
> you'll have to set up a router to do so.
>
> All of this is taken from the fine book on Exim4, pages 437-8. I didn't
> have a chance to look at the online docs to see if it is there, but I
> have found that most of the things in the dead tree version are in the
> regular docs, so I would be surprised if it was missing. I just happen
> to be a little old fashioned, and like reading books :)
>
> Take care,
> --
>  --------------------------------------------------------------------------
> |  Stephen Gran                  | Knowledge, sir, should be free to all!  |
> |  steve@???             | -- Harry Mudd, "I, Mudd", stardate      |
> |  http://www.lobefin.net/~steve | 4513.3                                  |
>  --------------------------------------------------------------------------

--------- End forwarded message ----------