How to disable postfix/mail/mailqueue on my server?

0

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.

Richard Rodriguez

Posted 2013-03-21T15:04:38.520

Reputation: 1 676

Answers

1

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.

AnFi

Posted 2013-03-21T15:04:38.520

Reputation: 771