Single Address Filter

Junior Member
Posts: 18
Joined: Sat Nov 29, 2008 9:39 pm

Single Address Filter

Postby wjlight » Fri Aug 20, 2010 3:18 pm

How can I create an e-wall filter that will deliver a message to a single specific address if ONLY that specific address is in the message? In other words, if the specific address is one of many that the message is addressed to I do not want to deliver it.

Thanks

Expert
User avatar
Posts: 449
Joined: Sun May 02, 2004 2:12 pm

Postby DFitch » Fri Aug 20, 2010 3:38 pm

Hello,

If recipient address contains 'user@XXX'
then delete
and forward copy to 'user@XXX'

Should work or you can also use If field or If Header options, either should find user then add action forward and delete.

D
hMailServer 5.3.3: External MySql
Win2k3 Server | eWall 4.0 Anti-Spam Anti-Virus SMTP Proxy
SpamAssassin 3.31 - ClamAV on backend Ubuntu Server (VMware)

Junior Member
Posts: 18
Joined: Sat Nov 29, 2008 9:39 pm

Postby wjlight » Fri Aug 20, 2010 4:26 pm

Thanks for the approach but I don't see how that does what I'm trying to do.

Let me give you an example:

A messages come in addressed to 3 people; user1@xxx; user2@xxx and user3@xxx. I am only interested in receiving the message if it addressed ONLY to user2@xxx so this message should just be deleted.

A message addressed to user2@xxx with no other addressees should be delivered.

Expert
User avatar
Posts: 449
Joined: Sun May 02, 2004 2:12 pm

Postby DFitch » Fri Aug 20, 2010 4:33 pm

Most likely need scripting then for this case, unless other users are CC, then you could use.

If recipient contains 'user1'
and field CC 'is present'
then delete
hMailServer 5.3.3: External MySql
Win2k3 Server | eWall 4.0 Anti-Spam Anti-Virus SMTP Proxy
SpamAssassin 3.31 - ClamAV on backend Ubuntu Server (VMware)

Junior Member
Posts: 18
Joined: Sat Nov 29, 2008 9:39 pm

Postby wjlight » Fri Aug 20, 2010 4:52 pm

Thanks for the thought; I'll save that for future problems.

I'm afraid scripting is where I'm heading.

I was thinking I might try:

If recipient contains User1@xxxx
and recipient contains *@xxxx
then delete

but I suspect ewall would look at the entire recipient list again, find user1@xxxx and delete the message rather than checking to see if there are additional addressees.

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

Postby Alexander Telegin » Fri Aug 20, 2010 11:22 pm

wjlight wrote:Thanks for the approach but I don't see how that does what I'm trying to do.

Let me give you an example:

A messages come in addressed to 3 people; user1@xxx; user2@xxx and user3@xxx. I am only interested in receiving the message if it addressed ONLY to user2@xxx so this message should just be deleted.

A message addressed to user2@xxx with no other addressees should be delivered.


If there are several recipients, they will be separated with comma, so I'd recommend the following:

Code: Select all
if recipients contains ','
and contains 'user@xxx'
then delete


Note: use this filter in OnRecipient or OnMessage events, i.e. when the recipient addresses already available.

Junior Member
Posts: 18
Joined: Sat Nov 29, 2008 9:39 pm

Postby wjlight » Sat Aug 21, 2010 12:56 am

Interesting.

When I look at the ewall logs I see something like

>RCPT TO: <user1@xxxxxx.com>
>RCPT TO: <user2@xxxxxx.com>
>RCPT TO: <user3@xxxxxx.com>

for multiple recipients of an email when I only want to deliver the email to user2@xxxxxx.com when there are no others addressed.

I know we see commas or semicolons between email addresses in a clients address bar for outgoing messages. Will that be seen by ewall for incoming messages to accomplish what I am trying to do?

Also, I have to admit to being an amatuer when it comes to ewall. I am only using the on message event filter functionality. I really don't understand the others.

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

Postby Alexander Telegin » Sat Aug 21, 2010 11:04 pm

It doesn't related to the client address bar. This is a "trick", related to how eWall keeps the multiple recipient addresses internaly (it keeps them separated with comma). But you shouldn't worry about it, just try the filter. It works, at least it did for me.

Junior Member
Posts: 18
Joined: Sat Nov 29, 2008 9:39 pm

Postby wjlight » Sun Aug 22, 2010 1:37 pm

When you indicate "recipients" do you mean "recipient address" ?

Expert
User avatar
Posts: 449
Joined: Sun May 02, 2004 2:12 pm

Postby DFitch » Sun Aug 22, 2010 2:05 pm

When you indicate "recipients" do you mean "recipient address" ?

Yes

message event filter functionality. I really don't understand the others

The eWall events attend every session and occur as a result of client/server actions. This gives you an ability to filter control over the message before, during and after it as arrived.

From eWall control panel click on help/index for manual and check out the events section and it will give you a better idea how to filter at those levels.

D
hMailServer 5.3.3: External MySql
Win2k3 Server | eWall 4.0 Anti-Spam Anti-Virus SMTP Proxy
SpamAssassin 3.31 - ClamAV on backend Ubuntu Server (VMware)

Next

Return to Filters and scripts

Who is online

Users browsing this forum: No registered users and 1 guest