Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm running a debian squeeze server. I've been having problems with certain websites sending spam, so I've disabled postfix completely (/etc/init.d/postfix stop).

However, the sites trying to send spam are still queueing the mail, which I can see with the mailq command.

How can I disable this too? I don't want anything to be able to send/queue any (postfix) mail. However, I still want the server to be able to store its errors to /var/mail/root as it normally does.

share|improve this question

Have you considered changing postfix's sendmail program permissions?

You may create can-send-mail group and allow only root (owner) and the group to execute sendmail program.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .