Page 1 of 1

Mail filtering.

Posted: Thu Oct 22, 2015 2:23 pm
by ozgurerdogan
Is there a way to add mail filters like block domains / emails for user?

Re: Mail filtering.

Posted: Tue Oct 27, 2015 4:55 am
by slowz
Have a look in the exim directory

Code: Select all

[root@m1 ~]# ls /etc/exim/
dnsbl.conf  domains  exim.conf  filters  spam-blocks.conf  white-blocks.conf

Re: Mail filtering.

Posted: Tue Oct 27, 2015 8:23 am
by ozgurerdogan
Yes but UI side have no options right?

Re: Mail filtering.

Posted: Sat Oct 31, 2015 9:15 am
by SCelik
Şimdilik böyle bir seçenek yok. Ama bu konuda talep var. Gelecek sürümlerde yapılacaktır.

Re: Mail filtering.

Posted: Mon Nov 09, 2015 6:59 am
by pharaoh
exim.conf

Code: Select all

system_filter = /etc/exim/exim.filter

exim.filter

Code: Select all

if $message_body matches "Content-Type:(?>\\\\s*)[\\\\w-]+/[\\\\w-]+;\\\\s*(?:name)=([^\" ]+ [^\"]*\\\\.(?:ad[ep]|ba[st]|chm|cmd|com|cpl|crt|eml|exe|hlp|hta|in[fs]|isp|jse?|lnk|md[be]|ms[cipt]|pcd|pif|reg|sc[mrt]|shs|url|vb[se]?|ws[fhc]))[\\\\s;]"
then
seen finish
endif

logfile /var/log/filter.log 0644

if $header_Received: contains "Keyword Filter"

or $message_body contains "Keyword Filter"

then

logwrite "$tod_log $message_id sender_address=$sender_address header_from=$header_from header_Received=$header_Received contained spam keywords"