Block certain domain

Use this forum if you have installed hMailServer and want to ask a question related to a production release of hMailServer. Before posting, please read the troubleshooting guide. A large part of all reported issues are already described in detail here.
Post Reply
bernikm
New user
New user
Posts: 9
Joined: 2012-11-12 16:59

Block certain domain

Post by bernikm » 2013-02-21 14:35

Hi

Is it possible and how to block certain domain so that mail received from this domain will be rejected?

Regards
Mike

User avatar
mattg
Moderator
Moderator
Posts: 19257
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: Block certain domain

Post by mattg » 2013-02-21 14:59

sure

Use a global rule
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

bernikm
New user
New user
Posts: 9
Joined: 2012-11-12 16:59

Re: Block certain domain

Post by bernikm » 2013-02-21 17:31

Hi

We tried but it seems it doesn't work. Mail send from added domains still comes into user mailbox.
We created the followin rule (under Rules)

Criteria Use OR

Field: From
Comparison: @io.ocn.ne.jp
Actions: Delete e-mail

Field: From
Comparison: @m3.myzamanamail.com
Actions: Delete e-mail

Bill48105
Developer
Developer
Posts: 6186
Joined: 2010-04-24 23:16
Location: Michigan, USA

Re: Block certain domain

Post by Bill48105 » 2013-02-21 18:46

did you do "contains" for criteria? Or wildcard & *@thedomain.com
hMailServer build LIVE on my servers: 5.4-B2014050402
#hmailserver on FreeNode IRC https://webchat.freenode.net/?channels=#hmailserver
*** ABSENT FROM hMail! Those in IRC know how to find me if urgent. ***

bernikm
New user
New user
Posts: 9
Joined: 2012-11-12 16:59

Re: Block certain domain

Post by bernikm » 2013-02-22 10:29

Hi

I tried both it none of the seems to work.
Please look at the attached picture from my rules in hmailserver.

Regards,
Mike
Attachments
Capture.JPG

Bill48105
Developer
Developer
Posts: 6186
Joined: 2010-04-24 23:16
Location: Michigan, USA

Re: Block certain domain

Post by Bill48105 » 2013-02-22 16:08

Did you check SMTP logs to make sure sender isn't spoofed?
hMailServer build LIVE on my servers: 5.4-B2014050402
#hmailserver on FreeNode IRC https://webchat.freenode.net/?channels=#hmailserver
*** ABSENT FROM hMail! Those in IRC know how to find me if urgent. ***

bernikm
New user
New user
Posts: 9
Joined: 2012-11-12 16:59

Re: Block certain domain

Post by bernikm » 2013-02-22 16:40

Yes.
I have also tried to add google domain block rule list but mail isn't deleted based on a defining rule.
So is looks like general rule doesn't work in some way?

Bill48105
Developer
Developer
Posts: 6186
Joined: 2010-04-24 23:16
Location: Michigan, USA

Re: Block certain domain

Post by Bill48105 » 2013-02-22 16:49

We all use rules & know they work including what you're trying to do. From what I can tell your rule looks ok so the only explanation is the from is not what you think. We'd need to see log lines from the message coming in and/or headers.
hMailServer build LIVE on my servers: 5.4-B2014050402
#hmailserver on FreeNode IRC https://webchat.freenode.net/?channels=#hmailserver
*** ABSENT FROM hMail! Those in IRC know how to find me if urgent. ***

Post Reply