Reject message only if it's not a spam

Mateusz Krawczyk mat.krawczyk at gmail.com
Thu Oct 1 19:36:29 UTC 2015


Thank you - it's exactly what I was looking for.

Regards,
Mateusz Krawczyk

2015-10-01 14:40 GMT+02:00 Valentin Laskov <it at festa.bg>:
> correction :)
> system("cat /path/to/your/text.txt | sendmail $from");
>
>
>
> На 01.10.2015 в 15:32, Valentin Laskov написа:
>>
>> 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
>>>>
>>>
>>
>>
>>
>
>
>
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/listinfo/mailscanner
>


More information about the MailScanner mailing list