Re: [exim] Exim Programming Project - PHP Feature control Pr…

Góra strony
Delete this message
Reply to this message
Autor: Marc Perkel
Data:  
Dla: Jeff Lasman
CC: exim-users
Temat: Re: [exim] Exim Programming Project - PHP Feature control Program


Jeff Lasman wrote:

>On Saturday 07 January 2006 06:16 pm, Marc Perkel wrote:
>
>
>
>>Yeah - thanks. Looks like a lot of people want this like I do. Just
>>need to see if someone out there wants to start writing it. If
>>someone even gets it started I can jump in and do a lot of work
>>expanding it. I mainly need a start. Some way to authenticate to IMAP
>>from PHP and bring up a text file - change it - and save it back.
>>
>>
>
>Anything we do will be DirectAdmin centric; that's the platform we're
>committed to, and we've written the exim.conf file they use.
>
>Anything we do as changes to exim.conf will be given back to the
>community. But the interface code for our project will become part of
>DirectAdmin.
>
>I look forward to keeping in touch on this or other forums, and I hope
>we can help each other. Though our exact needs may differ, our common
>interest is very close.
>
>Jeff
>
>

Jeff,

Here's most of the back end. I've tested it and it works for me. You'll
need a router condition that bypasses the spam filter if the header:

X-Spam-Check: No

Now - if you can put a PHP front end on this we have a winner. Of course
I need to have authentication so that people don't edit other people's
stuff.


# - Personal Block List

deny    message = REJECTED - Sender listed in personal block list - 
${local_part:$h_to:}@${domain:$h_to:}
        condition = ${if 
exists{/etc/exim/control/domains/${domain:$h_to:}/users/${local_part:$h_to:}/blockfrom.txt}\


{${lookup{$sender_address}wildlsearch{/etc/exim/control/domains/${domain:$h_to:}/users/${local_part:$h_to:}/blockfrom.txt}{yes}{no}}}\
    {no}}


# - Personal White List

warn    message = X-Spam-Check: No
    log_message = HAM - Sender listed in personal white list - 
${local_part:$h_to:}@${domain:$h_to:}
        condition = ${if 
exists{/etc/exim/control/domains/${domain:$h_to:}/users/${local_part:$h_to:}/whitefrom.txt}\


{${lookup{$sender_address}wildlsearch{/etc/exim/control/domains/${domain:$h_to:}/users/${local_part:$h_to:}/whitefrom.txt}{yes}{no}}}\
    {no}}


# - Domain Block List

deny    message = REJECTED - Sender listed in domain block list - 
${domain:$h_to:}
        condition = ${if 
exists{/etc/exim/control/domains/${domain:$h_to:}/blockfrom.txt}\


{${lookup{$sender_address}wildlsearch{/etc/exim/control/domains/${domain:$h_to:}/blockfrom.txt}{yes}{no}}}\
    {no}}


# - Domain White List

warn    message = X-Spam-Check: No
    log_message = HAM - Sender listed in domain white list - 
${domain:$h_to:}
        condition = ${if 
exists{/etc/exim/control/domains/${domain:$h_to:}/whitefrom.txt}\


{${lookup{$sender_address}wildlsearch{/etc/exim/control/domains/${domain:$h_to:}/whitefrom.txt}{yes}{no}}}\
    {no}}



--
Marc Perkel - marc@???

Spam Filter: http://www.junkemailfilter.com
    My Blog: http://marc.perkel.com