In your data ACL, you could put a deny rule that uses a condition to
detect the header and matching string.
Simple Example:
deny message = Rejected!
condition = ${if eq{$h_X-CTCH-Spam:}{Confirmed}{true}{false}}
On 1/17/13 7:44 AM, "soumya tr" <soumya.324@???> wrote:
>Hi Jeremy,,
>
>Thanks for the update. My actual issue is something different.
>
>I am in the process of integrating ctasd [commtouch advanced securtiy
>daemon] with exim for checking/preventing outbound spams. What ctasd does
>is that it compares a outgoing mail with the mails confirmed as
>spam/suspect/bulk in commtouch's datacenter, and sends back to exim. I
>have
>a perl script that does the above said part. I am calling the particular
>script using transport_filter in remote_smtp transport [driver = smtp].
>
>--------------
>remote_smtp:
> driver = smtp
> ...
> ...
> transport_filter = /usr/local/exim_sa_client.pl --senderip
>$sender_host_address --mailfrom $sender_address
>--------------
>
>Infact the transport_filter does the required task and adds the following
>headers to the mail:
>
>--------------
>X-Spam-Checker-Version: spamc_ctasd client on
> localost
>X-Spam-Level: **********
>X-Spam-Flag: YES
>X-Spam-Status: Yes, score=100.0 required=5.0 tests=SpamClass_Confirmed,
> VirusClass_Unknown autolearn=disabled
> version=1.0.0
>X-CTCH-PVer: 0000001
>X-CTCH-Spam: Confirmed
>X-CTCH-VOD: Unknown
>X-CTCH-Flags: 32
>X-CTCH-RefID:
>str=0001.0A020208.50F6861E.0022,ss=4,re=0.000,recu=0.000,reip=0.000,cl=4,c
>ld=1,fgs=32
>X-CTCH-Score: 0.000
>X-CTCH-ScoreCust: 0.000
>X-CTCH-Rules:
>X-CTCH-SenderID: xxx@???
>X-CTCH-SenderID-Flags: 8192
>X-CTCH-SenderID-TotalMessages: 1
>X-CTCH-SenderID-TotalSpam: 1
>X-CTCH-SenderID-TotalSuspected: 0
>X-CTCH-SenderID-TotalConfirmed: 1
>X-CTCH-SenderID-TotalBulk: 0
>X-CTCH-SenderID-TotalVirus: 0
>X-CTCH-SenderID-TotalRecipients: 0
>--------------
>
>Now I need to check if the header contains say X-CTCH-Spam: Confirmed,
>just reject the mail. Is there any way I can achieve this? I tried adding
>a
>if..endif check in exim system_filter, but no luck, as I suppose
>system_filter is checked in ACL section.
>
>Is it possible to perform '/usr/local/exim_sa_client.pl --senderip
>$sender_host_address --mailfrom $sender_address' in ACL? Or any other
>method to accomplish this?
>
>Please assist. I am stuck at this :(
>
>Thanks in advance.
>
>Regards,
>Soumya
>
>
>On Thu, Jan 17, 2013 at 2:32 AM, Jeremy Harris <jgh@???> wrote:
>
>> On 01/16/2013 11:06 AM, soumya tr wrote:
>>
>>> Please let me know if its possible to reject mails at transport
>>> 'remote_smtp', by checking some header?
>>>
>>
>> Exim isn't really designed that way. ACLs are the best place
>> to determine rejection, as the SMTP conversation is still open
>> (MAIL, RCPT or DATA acl; probably the latter in your case).
>> Routers are possible, but less good.
>>
>> --
>> Jeremy
>>
>>
>>
>> --
>> ## List details at
>>https://lists.exim.org/**mailman/listinfo/exim-users<https://lists.exim.o
>>rg/mailman/listinfo/exim-users>
>> ## Exim details at http://www.exim.org/
>> ## Please use the Wiki with this list - http://wiki.exim.org/
>>
>--
>## 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/