Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.)

share|improve this question
add comment

1 Answer

up vote 5 down vote accepted

You can use the inet_interfaces directive in /etc/postfix/main.cf to control what address Postfix listens on for incoming connections. If you set it to the following it will only listen on the loopback interface, which means that connections can only originate from that machine.

inet_interfaces = loopback-only
share|improve this answer
    
That'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 Aug 9 '12 at 20:04
2  
@MatthiasHryniszak Which is what the OP asked for. –  mgorven Aug 9 '12 at 20:23
    
sorry for late accept, I thought I did! thanks again. :) –  naxa Jun 12 '13 at 21:06
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.