Adam Hardy wrote:
Boyd Stephen Smith Jr. on 20/01/10 21:23, wrote:
On Wednesday 20 January 2010 14:59:15 Adam Hardy wrote:
Liam O'Toole on 20/01/10 20:41, wrote:
On 2010-01-20, Adam Hardy <adam....@cyberspaceroad.com> wrote:
My vserver set-up has very simple requirements - I just want the
system
to send out emails generated on the system locally, e.g. piping
command
output to mailx
Try running (as root) 'dpkg-reconfigure exim4-config' and follow the
prompts. An explanation of the various options is given in Section 2 of
the file /usr/share/doc/exim4-base/README.Debian.html.
I did that to begin with, since I had to install exim myself anyway. The
option to be an "internet server; mail is sent and received using
SMTP" is
the closest, but as above, I don't want to receive.
Use that setting. There will be a later question that asks you what
interfaces (or was it IPs?) that you want to listen on. Don't specify
your public interface (only lo) and you won't be receiving any mail.
Not allowed to do that - apparently it would foobar the local network
where the host server of my vserver sits. I've got to use the public IP
address if I configure this, but I'd feel happier if I didn't have to
listen on port 25 at all. I don't want any incoming mail - I just want
to send.
I think what you're asking is whether the exim4 local interfaces setting
can be set to nothing. I don't think it can, if you leave it out
completely, exim4 will listen on all interfaces, but it doesn't really
matter. What you need to do is the exact opposite, and set the local IP
address here and not 127.0.0.1.
If you have iptables running, you can add a rule to block incoming
packets to port 25, which will definitely prevent any mail coming in. If
you want to get a bit fancier, you ought to be able to add an extra,
unrelated IP address to your virtual NIC, and have exim4 listen to that,
which should guarantee silence.
Exim4 will use port 25 as a source port when sending, but that is
independent of the local interface setting.
--
Joe
--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org