Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Block a sender or an entire domain from sending mail to Qmail server  (Read 3137 times)

0 Members and 1 Guest are viewing this topic.

Karun

  • Guest
Block a sender or an entire domain from sending mail to Qmail server

We can block an individual address or entire domain from sending mail to Qmail server by creating the following file:
  /var/qmail/control/badmailfrom
Inside 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…………… ;)