• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

How can i block qmail for outgoing mail to *@domain.com ?

I think the OP wants to block his users from sending email to domain.tld as opposed to receiving from it.

Unfortunately this is not possible in qmail. However, you can firewall the IP of the MXs for domain.tld and this will/should stop email being sent to domain.tld as your server will not be able to communicate with the mailservers for domain.tld. However, if domain.tld changes their MX IPs, it will stop working.

Technically it is possible to add a domain to an iptables rule, but I don't think a lookup is done on the appropriate IP except for when the firewall is reloaded, so the problem remains.

Oh! Here's an idea! Add the domain to plesk! That way all email sent by your users to that domain will always be delivered locally (to your own server) and since you won't create any email mailboxes, all messages will always bounce. I think this is the simplest solution and should work well.
 
My Parallel Lesk is 11 version. Badmailform is for 8 & 9 version, so can i use it?

If you set firewall , the message will be block, and you will not receive Undeliverable message.

How can i block and receive Undeliverable message?

Thanks & Brs,
 
Back
Top