Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

CentOS running Exim 4.63(inc latest fixes).

I want to configure exim to not listen on the external IP, only localhost so that exim can only be used from the server itself (no remote connections).

What's the config option for this setup?


share|improve this question
up vote 5 down vote accepted

The option you want is local_interfaces in the main part of the configuration. Section 13.1 of the spec gives some examples, and the full definitions of the option is in the alphabetical list of main options (which I can't directly link to because it doesn't have an anchor).

To summarize:

local_interfaces =
share|improve this answer
Thanks, works perfectly - sorry can't vote up – user69904 Feb 8 '11 at 16:36

define interface parameter under transport section to localhost in main co

share|improve this answer
Tried this in the transports sectio of exim.conf and restarted exim and I'm still able to connect remotely: <code> remote_smtp: driver = smtp interface =</code> – user69904 Feb 8 '11 at 11:22
This is wrong, the interface optoin sets the IP for outgoing connections – jj33 Feb 8 '11 at 13:36
-1 for wrong answer – danorton Jan 31 '14 at 22:44

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.