<!DOCTYPE html PUBLIC "XSLT-compat"> <html lang="en-GB"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link rel="stylesheet" type="text/css" href="../../../../common.css"> <meta name="author" content="The Exim Project. <http://www.exim.org/>"> <meta name="copyright" content="Copyright ©2010 The Exim Project. All rights reserved"> <meta name="description" content="Exim is a message transfer agent (MTA) developed at the University of Cambridge for use on Unix systems connected to the Internet."> <meta name="keywords" content="exim,smtp,mta,email"> <meta name="robots" content="noodp,noydir,index,follow"> <meta name="viewport" content="width=device-width"> <title>18. The ipliteral router</title> <link rel="stylesheet" type="text/css" href="../../../../doc/chapter.css"> <link rel="canonical" href="http://www.exim.org/exim-html-current/doc/html/spec_html/ch18.html"> </head> <body> <h1 id="header"><a href="../../../..">Exim Internet Mailer</a></h1> <div id="outer"> <ul id="nav_flow" class="nav"> <li><a href="../../../../index.html">Home</a></li> <li><a href="../../../../mirrors.html">Download</a></li> <li><a href="../../../../docs.html">Documentation</a></li> <li><a href="../../../../maillist.html">Mailing Lists</a></li> <li><a href="http://wiki.exim.org/">Wiki</a></li> <li><a href="http://www.exim.org/bugzilla/">Bugs</a></li> <li><a href="../../../../credits.html">Credits</a></li> <li class="search"><form action="http://www.google.com/search" method="get"> <span class="search_field_container"><input type="search" name="q" placeholder="Search Docs" class="search_field"></span><input type="hidden" name="hl" value="en"><input type="hidden" name="ie" value="UTF-8"><input type="hidden" name="as_qdr" value="all"><input type="hidden" name="q" value="site:www.exim.org"><input type="hidden" name="q" value="inurl:exim-html-current"> </form></li> </ul> <div id="inner"><div id="content"> <a class="previous_page" href="ch17.html"><-previous</a><a class="next_page" href="ch19.html">next-></a><div id="chapter" class="chapter"> <h2 id="CHID5" class="">Chapter 18 - The ipliteral router</h2> <p> This router has no private options. Unless it is being used purely for verification (see <span class="docbook_option">verify_only</span>) a transport is required to be defined by the generic <span class="docbook_option">transport</span> option. The router accepts the address if its domain part takes the form of an RFC 2822 domain literal. For example, the <span class="docbook_command">ipliteral</span> router handles the address </p> <div class="docbook_literallayout"><pre> root@[192.168.1.1] </pre></div> <p> by setting up delivery to the host with that IP address. IPv4 domain literals consist of an IPv4 address enclosed in square brackets. IPv6 domain literals are similar, but the address is preceded by <code class="docbook_literal">ipv6:</code>. For example: </p> <div class="docbook_literallayout"><pre> postmaster@[ipv6:fe80::a00:20ff:fe86:a061.5678] </pre></div> <p> Exim allows <code class="docbook_literal">ipv4:</code> before IPv4 addresses, for consistency, and on the grounds that sooner or later somebody will try it. </p> <p> If the IP address matches something in <span class="docbook_option">ignore_target_hosts</span>, the router declines. If an IP literal turns out to refer to the local host, the generic <span class="docbook_option">self</span> option determines what happens. </p> <p> The RFCs require support for domain literals; however, their use is controversial in today’s Internet. If you want to use this router, you must also set the main configuration option <span class="docbook_option">allow_domain_literals</span>. Otherwise, Exim will not recognize the domain literal syntax in addresses. </p> </div> <a class="previous_page" href="ch17.html"><-previous</a><a class="next_page" href="ch19.html">next-></a> </div></div> <iframe id="branding" name="branding" src="../../../../branding/branding.html" height="0" frameborder="no" scrolling="no"></iframe><div id="footer">Website design by <a href="https://secure.grepular.com/">Mike Cardwell</a>, of <a href="http://cardwellit.com/">Cardwell IT Ltd.</a> </div> <div class="left_bar"></div> <div class="right_bar"></div> <div id="toc"> <ul class="hidden"></ul> <img src="../../../../doc/contents.png" width="16" height="155"> </div> </div> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script><script type="text/javascript" src="../../../../common.js"></script><script type="text/javascript" src="../../../../doc/chapter.js"></script> </body> </html>