gwag
I have the WBL contrib installed on a sme8.x server, in server & gateway mode.
I entered in the Email WBL panel, blacklist panel, qmail badmailfrom field
@gmail.com
& then tried to send a email message from the online gmail webmail app, to a valid user on the sme server
& received this error upon sending
Delivery to the following recipient failed permanently:
user@smeserverdomain.com
Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the server for the recipient domain smeserverdomain.com by mail.smeserverdomain.com. [xx.xxx.xxx.xxx].
The error that the other server returned was:
550 sorry, your envelope sender is in my badmailfrom list
The message was not received by the sme server user.
So you can block incoming mail from specified domains !
While you more specifically want to block domain1.xyz & domain2.xyz & so on, you can enter those one by one
ie in the server manager panel it says
Check envelope sender addresses. Reject any that appear (@host or user@host) in badmailfrom during the 'mail' stage.
eg
@domain1.xyz
@domain2.xyz
& so on
I am not sure if this functions the same on sme9, my test server is down at present so I cannot test it.
Note you do not need to have the Email WBL contrib installed, you can edit /var/qmail/control/badmailfrom directly & just add the @domains required