10
5
I would like to be able to send mail to remote servers, from scripts running on my VPS via SMTP, but otherwise reject all incoming mail with postfix on Debian squeeze.
(And in general disable any other features for now. I would like to avoid security risks, provided that I have default settings except for the domain name and don't need anything but sending some mails anyway. Another main concern is that I'm currently very short on time.)
On some platforms, it may be necessary to use the string
localhost
instead of the stringloopback-only
. – sampablokuper – 2017-12-22T21:26:35.910Just because I searched it, a reload of postfix on Ubuntu 16.04 is not sufficient, you must stop & start it to apply inet_interfaces change. Viewed in syslog after a
sudo postfix reload
:Mar 28 11:20:15 server postfix/master[2304]: warning: service smtp: ignoring inet_interfaces change
Mar 28 11:20:15 server postfix/master[2304]: warning: to change inet_interfaces, stop and start Postfix
– Axi – 2019-03-28T10:24:11.760That's actually really good if you're only using Postfix for sending out emails. Might not be what you want if you want incoming mail... – Matthias Hryniszak – 2012-08-09T20:04:36.130
5@MatthiasHryniszak Which is what the OP asked for. – mgorven – 2012-08-09T20:23:53.293
sorry for late accept, I thought I did! thanks again. :) – n611x007 – 2013-06-12T21:06:09.020