There is one email continually coming to my server even when email for that domain is disabled. And the spam is going in the queue. While I have set up a crontab job to delete that email, I want to know if there is a better way to tell postfix to completely drop email from a certain sender or receiver ?
Open your Postfix configuration file. This is typically located at /etc/postfix/main.cf.
Add or modify the appropriate restriction setting depending on whether you want to drop emails based on the sender or receiver.To drop emails from a specific sender:
The Mail for domain enabled option in the Edit Virtual Server section allows you to use email addresses on that domain. If you say that with the option disabled you still receive messages, then it means that there is an issue in Virtualmin.
@Ilia, @Joe - If he had disabled the email feature for this server, it would have been natural to stop receiving messages, am I right?