Reject message only if it's not a spam

Valentin Laskov it at festa.bg
Thu Oct 1 12:32:46 UTC 2015


There are variables  $to , $from ,  $subject ,  $date ... etc. (you can 
see them in report files)
I don't know are they available in CustomAction.pm , but probably yes

You can try something like this in CustomAction.pm :

system("cat /path/to/your/text.txt | sendmail $to");


На 30.09.2015 в 21:19, Mateusz Krawczyk написа:
> OK - thanks. The "Non Spam Actions = custom" looks really interesting.
>
> One problem only. I have no idea how to send a reject mail in my
> custom sub. Is it possible to do it in some MailScanner way or just
> using Perl functions ?
>
> Regards,
> Mateusz Krawczyk
>
> 2015-09-30 13:23 GMT+02:00 Valentin Laskov <it at festa.bg>:
>> Hi  Mateusz
>>
>> Your start point may be
>>
>> Non Spam Actions = %rules-dir%/Non.Spam.Actions.rules
>>
>> in MailScanner.conf
>>
>> and arrange some rules in Non.Spam.Actions.rules
>>
>> or if
>> Non Spam Actions = custom
>>
>> #    custom(parameter)       - Call the CustomAction function in
>> /usr/lib/Mail-
>> # Scanner/MailScanner/CustomFunctions/CustomAction
>> #                              .pm with the 'parameter' passed in. This can
>> be
>> #                              used to implement any custom action you
>> require.
>> #
>>
>>
>> Regards!
>> Valentin Laskov
>>
>>
>>
>> --
>> MailScanner mailing list
>> mailscanner at lists.mailscanner.info
>> http://lists.mailscanner.info/listinfo/mailscanner
>>
>



More information about the MailScanner mailing list