[Pkg-exim4-users] Allowing SMTP from localhost only

Marc Haber mh+pkg-exim4-users@zugschlus.de
Fri, 8 Apr 2005 00:10:13 +0200


On Thu, Apr 07, 2005 at 11:27:20PM +0200, Peter Bittner wrote:
> Now, a web application I am running on my machine needs to be able to send
> authentification and reminder mails, so I need to modify this config
> slightly to allow delivery of mail to remote hosts. For security purposes,
> however, I want this to be allowed from localhost only!

That will be accomplished by having exim listen on localhost only.

> I have skimmed through the configuration file(s) and the documentation. I
> think I understand the way the Debian exim4 setup works, but I'm still not
> sure how to achieve the type of configuration I need.
> 
> The preferred way to go for me would be adding some line(s)
> to /etc/exim4/update-exim4.conf.conf, but I fear that won't suffice. I
> probably need to modify /etc/exim4/exim4.conf.template directly.

I think that modification of /etc/exim4/exim4.conf.template is in
order here. If setting local_interfaces is not enough for you, you
could use an ACL which only allows localhost to send mail.

> But then still: What is the correct setup?
> (I see "local_interfaces = 127.0.0.1" is already
> in /var/lib/exim4/config.autogenerated, but send mail doesn't work.)

Please expand "send mail doesn't work".

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835