Block a sender or an entire domain from sending mail to Qmail serverWe can block an individual address or entire domain from sending mail to Qmail server by creating the following file:
/var/qmail/control/badmailfromInside the ” badmailfrom ” file, the syntax might look something like this:
badguy@baddomain.com
@baddomain.com What do the above lines do?
The entry for “badguy@baddomain.com” would block all mail coming from “badguy@baddomain.com”.
The entry for “@baddomain.com” would block any and all mail coming from the domain “otherdomain.com”.
Now restart the Qmail.
Enjoy……………