Hi there! I have Debian Sarge with exim4 set up for "local delivery only". The installation is up-to-date, all packages are updated/upgraded. 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! 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. 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.) Can someone give me some hints? Cheers, Peter
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
On 2005-04-07 Peter Bittner <bittner@teamworks.eu.com> wrote:> I have Debian Sarge with exim4 set up for "local delivery only".[...]> 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![...] Please run "dpkg-reconfigure exim4-config" and select a setup that allows remote delivery, you''ll probably want this: Split configuration into small files? No. General type of mail configuration: internet site; mail is sent and received directly using SMTP [...] IP-addresses to listen on for incoming SMTP connections: 127.0.0.1 cu andreas -- "See, I told you they''d listen to Reason," [SPOILER] Svfurlr fnlf, fuhggvat qbja gur juveyvat tha. Neal Stephenson in "Snow Crash" http://downhill.aus.cc/