Morten W. Petersen wrote:
> Jeremy Harris skrev:
>> Morten W. Petersen wrote:
>>  
>>> Hi again,
>>>
>>> I'll try a different tack here.  Is it possible with Exim to hook it 
>>> up to some external
>>> process or socket which can do the callout check?
>>>
>>> I'm thinking of having some python-based daemon or script running 
>>> which can check the
>>> recipient against an SQL database..
>>>     
>>
>> Sure, several ways.  But, why not just do the DB lookup from Exim?
>>
>> http://exim.org/exim-html-4.69/doc/html/spec_html/ch09.html
>>   
> 
> Right, that's a useful pointer.  :)
> 
> But, this Exim instance is in the middle of two mail servers;  it processes
> email and weeds out the spam.
> 
> So I need to ask the final destination whether it accepts the email 
> address,
> and if so, store it in a local database and tell Exim somehow that the
> recipient was accepted.  Like callout, but using a more .. "flexible"
> storage mechanism.
> 
> Could you point me to a relevant chapter(s) to do just that?

Same place :-)   In a lookup, you can do any DB transaction -
insert, select, delete.  So do your callout, then do your DB manipulation
based on the results.

-J

-- 
## List details at http://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/

Reply via email to