Advanced filters for Exim

Namesniper

Verified User
Joined
Jan 5, 2007
Messages
89
Hello,

It would be great if you could add more advanced filter options to Exim filters.
Current filters have just a few options.
The most wanted option is "filter based on email subject".
That way all of us could filter those SPAM and fake baunced emails sent by spammers by forging sent header.
May i hope to see that in the next release?
 
I presume you mean the user-level SPAM Filters; if you mean something else please feel free to correct me.

Anything you enter into Block all e-mail containing the word will be checked against both the subject and the email itself.

Do you need to specifically check one or the other?

Jeff
 
I presume you mean the user-level SPAM Filters; if you mean something else please feel free to correct me.

Anything you enter into Block all e-mail containing the word will be checked against both the subject and the email itself.

Do you need to specifically check one or the other?

Jeff
Yes I mean user level SPAM filter, but the problem is taht i need to filter out messages based on their subject only because my black words are pretty common and if Exim check them out in email body then it will delete almost all my incoming emails.
Thats the problem.

Also it would be great to have such a filter on server level to filter all users emails at once.
 
Since this thread is closed I am postign here.
First of all i thought that thsi forum si for feature request and was not about to discuss my issue, just to request the feature and inm another thread I wanted to discuss whether if there are thir dparty solutions available for my issue untill DA implement thsi feature, if ever.

You said
You could of course create your own ruleset in SpamAssassin, which is how you'd do it there.
Can you please tell me how can I create filter rules in SA?
 
This forum is for feature request. I thought you're looking to get the feature added to DirectAdmin. Is that what you want?

You probably won't find a third-party solution; if there was one I'd think someone would have responded by now.

Sometimes, if DirectAdmin staff don't add a feature, and there's no third-party program available to do it for you, you just have to do it yourself.

Jeff
 
This forum is for feature request. I thought you're looking to get the feature added to DirectAdmin. Is that what you want?

You probably won't find a third-party solution; if there was one I'd think someone would have responded by now.

Sometimes, if DirectAdmin staff don't add a feature, and there's no third-party program available to do it for you, you just have to do it yourself.

Jeff
In this thread I am looking that feature added to DA in future, but in another thread I have been looking for third party solution.

Can you please let me know what did you mean about adding filters to SpamAssassin?
 
I don't see where I wrote bout adding filters to SpamAssassin. I thought you were referring to DirectAdmin's spam filters, which are based on exim.pl.

Jeff
 
The DirectAdmin Spam Filter, available from the site user main login page. It has nothing to do with SpamAssassin.

Jeff
 
Am I missing something?
You said that I can filetr messages with the help of SpamAssassin.
Please clearify.

Also it seems that even current simple DA filters at E-Mail Filters arent working.
I have added these filters
*****SPAM*****
Delivery Notification:
to filter any message which contains such a words in body or in subject, but I am still receiving tons of such a messages.
I have also made sure to add the space after and before above words to make sure that only expressions get filtered.
 
Last edited:
My last post was ignored.
There seems to be a bug in DA Exim.
It doesnt process thru SpamAssassin and its filters emails with empty return path
Return-path: <>
 
Your last post may have been ignored by others, but not by me. I don't guarantee I'll get to the forums every day. I own a third-party support company and if you want to hire me for support, then certainly feel free to contact me using the contact information at the bottom of each of my posts.

If you want me to respond on the forum as time and resources permit, then you have to live with the fact that I don't always have time and resources to check the forum every day.

You should also note that this is NOT an official support venue for DirectAdmin; the official support venue may be found here.

Yes, you can certainly filter messages with the help of SpamAssassin. To do so you have to learn how to write SpamAssassin rulesets. SpamAssassin rulesets are beyond the scope of this forum; there's a SpamAssassin mailing list that can probably help you, and certainly the SpamAssassin website contains information.

Are you saying that you're using what DirectAdmin calls SPAM Filters to block messages where the subject line contains *****SPAM*****?

It's probably fair to point out that DirectAdmin filters don't really blocking that email; they either sending them to a special spam mailbox, or just dropping them.

You can't use the DirectAdmin Spam Filters to filter out headers added or changed by SpamAssassin because once SpamAssassin decides an email is Spam it doesn't send the same email through the Spam Filters. You should use the SpamAssassin setup to how SpamAssassin handles disposition of emails it marks as spam.

SpamAssassin certainly processes emails for me and for lots of other DirectAdmin users; what makes you think it's not doing that for you?

I don't understand what you mean by
its filters emails with empty return path
Jeff
 
Your last post may have been ignored by others, but not by me. I don't guarantee I'll get to the forums every day. I own a third-party support company and if you want to hire me for support, then certainly feel free to contact me using the contact information at the bottom of each of my posts.

If you want me to respond on the forum as time and resources permit, then you have to live with the fact that I don't always have time and resources to check the forum every day.

You should also note that this is NOT an official support venue for DirectAdmin; the official support venue may be found here.

Yes, you can certainly filter messages with the help of SpamAssassin. To do so you have to learn how to write SpamAssassin rulesets. SpamAssassin rulesets are beyond the scope of this forum; there's a SpamAssassin mailing list that can probably help you, and certainly the SpamAssassin website contains information.

Are you saying that you're using what DirectAdmin calls SPAM Filters to block messages where the subject line contains *****SPAM*****?

It's probably fair to point out that DirectAdmin filters don't really blocking that email; they either sending them to a special spam mailbox, or just dropping them.

You can't use the DirectAdmin Spam Filters to filter out headers added or changed by SpamAssassin because once SpamAssassin decides an email is Spam it doesn't send the same email through the Spam Filters. You should use the SpamAssassin setup to how SpamAssassin handles disposition of emails it marks as spam.

SpamAssassin certainly processes emails for me and for lots of other DirectAdmin users; what makes you think it's not doing that for you?

I don't understand what you mean by

Jeff
Sorry for not replying earlier. I was way for a few days.

Yes, you can certainly filter messages with the help of SpamAssassin. To do so you have to learn how to write SpamAssassin rulesets. SpamAssassin rulesets are beyond the scope of this forum; there's a SpamAssassin mailing list that can probably help you, and certainly the SpamAssassin website contains information.
Can i setup filters in SA to delete emails based on their subject?

Are you saying that you're using what DirectAdmin calls SPAM Filters to block messages where the subject line contains *****SPAM*****?
I have setup filters here CMD_EMAIL_FILTER?domain=domain.com
For example such one
Filter Value
Block e-mail containing this word: *****SPAM*****

It seems that that filter is working out, but not for emails where return path is empty.
Headers
"Return-path: <>"

So if someone send you an email with empty return path DA Exim filters located at CMD_EMAIL_FILTER?domain=domain.com will not process it.
Filters dont filter all messages where return path is empty, no matter what exactly you are trying to filter out, be it a subject **SPAM** or **anything else**.

My host provider told me that thsi issue has been confirmed on other DA servers as well.

Was i more clear this time?

Also by default exim does not make use of spamassassin. You have to set it up in the exim.conf file and actually install spamassassin. http://help.directadmin.com/item.php?id=36
SA is setup on my server. Thanks.
 
Last edited:
Can i setup filters in SA to delete emails based on their subject?
Yes, but this isn't the proper form to learn how; see my previous notes about finding information about SpamAssassin.
It seems that that filter is working out, but not for emails where return path is empty.
Headers
"Return-path: <>"
Exim is accepting email with a Return-path of "<>", which according to the RFCs, it's required to do. You can rewrite the exim.conf file any way you want.

Jeff
 
Yes, but this isn't the proper form to learn how; see my previous notes about finding information about SpamAssassin.

Exim is accepting email with a Return-path of "<>", which according to the RFCs, it's required to do. You can rewrite the exim.conf file any way you want.

Jeff
Yes it has to accept such a emails, but I dont see why it shouldnt apply filter rules to them.
 
I won't get into an argument as to whether or not accepting email and then throwing it away so a human cannot see it is the same as accepting it.

I'm not going to write code to throw away email that the RFCs require be accepted, but I will reiterate what I wrote in my last post on this thread:
You can rewrite the exim.conf file any way you want.
Or of course you can suggest of JBMC (the publishers of DirectAdmin) that they stop using my exim.conf file and begin their own fork or rewrite.

Jeff
 
I won't get into an argument as to whether or not accepting email and then throwing it away so a human cannot see it is the same as accepting it.

I'm not going to write code to throw away email that the RFCs require be accepted, but I will reiterate what I wrote in my last post on this thread:

Or of course you can suggest of JBMC (the publishers of DirectAdmin) that they stop using my exim.conf file and begin their own fork or rewrite.

Jeff
I have spent hours looking for a solution, but then DA support referred me to this link and most interesting is that there is also your post available.
You could tell me about that thread/post a long time ago, although you are not obliged.
 
Perhaps I should have written:
Both John and I agree that we can't by default just block all email from empty senders; I sure wish we could
I recall a discourse with John over what we should and shouldn't do, but of course we're all allowed to change our minds; and if you note the fix noted by John doesn't change the DirectAdmin default. Perhaps at some point in the future that will be the default, and since I have no control over any of the code in DirectAdmin, it really doesn't have to do with me.

Jeff
 
Back
Top