How do I block a user a non system user

Junior Member
Posts: 7
Joined: Thu Mar 26, 2009 8:22 pm

How do I block a user a non system user

Postby heberr » Thu Jun 24, 2010 9:41 pm

Hi There,

I need a filter setup to validate that the sending user is a validated email account on the server. The header below is allowing the user to send email via my mail server to another email account that does not exisit on my server, yet the X-Sender email account does not exist within my email server. How do I block such actions.

X-Sender: <rwcpuqx@escuelasnef.com.ar>
X-Receiver: <thete@ieg.com.br>
X-DisplayName: mail.eintelligenthost.com
X-RecIP: 64.2.1.13
X-MailFromLocal: Yes
X-Daemon: escuelasnef.com.ar
X-Bounce: <rwcpuqx@escuelasnef.com.ar>

Developer
User avatar
Posts: 4431
Joined: Tue Apr 20, 2004 3:43 pm

Postby Alexander Telegin » Thu Jun 24, 2010 10:35 pm

Maybe use the filter, that blocks anything sent by local users without authentication, like this

OnSender

Code: Select all
if sender is not authenticated
    and sender is local
then
    set reply '554 Blocked due to the security policy'
    and disconnect


To use this filter, all local domains must be listed in eWall.

Junior Member
Posts: 7
Joined: Thu Mar 26, 2009 8:22 pm

Any other idea's Filter causing the following error

Postby heberr » Thu Jun 24, 2010 11:26 pm

Any other idea's the filter is causes the following error:

Task 'mail.2host.com - Sending' reported error (0x800CCC78) : 'Unable to send the message. Please verify the e-mail address in your account properties. The server responded: 554 Blocked due to the security policy - SPAM'

I was using an authenticated email account where the domain was listed within ewall

Developer
User avatar
Posts: 4431
Joined: Tue Apr 20, 2004 3:43 pm

Postby Alexander Telegin » Thu Jun 24, 2010 11:35 pm

Probably the sender didn't authenticate, post the eWall log snippet for that session (or send at alex@sssolutions.net).

Junior Member
Posts: 7
Joined: Thu Mar 26, 2009 8:22 pm

The following code works great, but one last issue

Postby heberr » Wed Jun 30, 2010 7:06 pm

The following code works great, but one last issue:

if sender is not authenticated
and sender is local
then
set reply '554 Blocked due to the security policy'
and disconnect


This is working great for users using an email client such as Outlook, Outlook Express, etc. But is seem to cause problems for client that use there website to send email. Is it possible to create a whitelist txt file containing webserver server IP that we will allow email from? Need to work with this rule.

Thanks for your help so far.

Developer
User avatar
Posts: 4431
Joined: Tue Apr 20, 2004 3:43 pm

Postby Alexander Telegin » Sat Jul 03, 2010 7:34 pm

The web server IP address can be added into the white list, and need to add one more condition "if sender address not in white list".

Return to Filters and scripts

Who is online

Users browsing this forum: No registered users and 1 guest