Re: [exim] exim filter for incoming mail to be spam

2018-03-26 Thread Heiko Schlittermann via Exim-users
Amjad Qasem via Exim-users  (So 25 Mär 2018 16:16:13 CEST):
> Dear all,
> 
> I'm try to add Exim filter to make mail as spam , but I don't know
> the command or the action to change the Spam static, as below
> 
> if ("$h_from:" contains "x...@gmail.com")
>then
> spam_score = 100 ???
>   endif
> 
> or
> 
> if ("$h_from:" contains "x...@gmail.com")
>then
> X-Spam-Score = Yes ???
>   endif

I think, this is incorrect syntax. If you want to set a header, you have
to arrange the filter to be a system filter AND you've to fix the
syntax:

UNTESTED!

if $h_from: contains "x...@example.com"
then
headers add X-Spam-Score: 100
endif


Best regards from Dresden/Germany
Viele Grüße aus Dresden
Heiko Schlittermann
-- 
 SCHLITTERMANN.de  internet & unix support -
 Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
 gnupg encrypted messages are welcome --- key ID: F69376CE -
 ! key id 7CBF764A and 972EAC9F are revoked since 2015-01  -


signature.asc
Description: PGP signature
-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


[exim] exim filter for incoming mail to be spam

2018-03-26 Thread Amjad Qasem via Exim-users
Dear all,

I'm try to add Exim filter to make mail as spam , but I don't know
the command or the action to change the Spam static, as below

if ("$h_from:" contains "x...@gmail.com")
   then
spam_score = 100 ???
  endif

or

if ("$h_from:" contains "x...@gmail.com")
   then
X-Spam-Score = Yes ???
  endif


I have asked about that in forum of cpanel but I didn't get  advise

Thanks
-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/