-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, Nov 16, 2000 at 12:45:39PM -0600, Phil Brutsche wrote: > I have yet to find a SMTP agent that can use just the straight /etc/hosts > file. >
No, you've just not yet realized it. 8^) Read /usr/share/doc/exim/spec.txt.gz and skip to section 29 on the lookuphost router. One of the options there is called 'gethostbyname' and causes exim to use the gethostbyname() function instead of relying on DNS (of course, gethostbyname can use DNS, in addition to /etc/hosts, LDAP, NIS, whatever). There is one major problem with using this option, though: using gethostbyname prevents MX records from being used as that library function doesn't handle any MX stuff. That isn't a good thing at all. There is a way to handle this, and to use gethostbyname only for mail matching a specific domain. I don't know off hand how to do this, though, and I don't have the time to read through spec.txt in as much detail as I need. I do believe, however, that it would result in a much cleaner and easier to maintain exim.conf than the solution you're using now. noah - -- _______________________________________________________ | Web: http://web.morgul.net/~frodo/ | PGP Public Key: http://web.morgul.net/~frodo/mail.html -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE6FDArYrVLjBFATsMRAslCAJ9oAQHDwNEyWXQJdCFivH39N54/wwCePuWC hsZkod3QCR56v9O55BzXPis= =Jncx -----END PGP SIGNATURE-----