• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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