Set Exim to listen only on localhost


As I need Exim only to send outgoing emails, I was wondering if it’s possible to set it listening only on localhost (

Thanks for any help!

Try adding:

to /etc/exim4/exim4.template.conf

And then restart exim4

Restarting Exim, an error shows up:
missing rewrite replacement string

Does it include a line number?

Exim configuration error in line 414 of /var/lib/exim...

Check where line 414 and forward …

You mean checking this file? /var/lib/exim4/config.autogenerated.tmp

This is the output at line 414:

414 dc_local_interfaces=''

Maybe check:

Hi @eris

Didn’t manage to change the listening interface… it’s still listening on
Are you sure that this directive must be added to exim4.conf.template and not to update-exim4.conf.conf instead?
BTW in this last file, there’s already an entry like this:
dc_local_interfaces=' ; ::1'
I’ve also tried to change it to dc_local_interfaces='' but nothing changes…

I never disabled it. It was the first result in Google…

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.