Re: [Exim] Insert Query?

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: William Thompson
Ημερομηνία:  
Προς: Brian K. West
Υ/ο: exim-users
Αντικείμενο: Re: [Exim] Insert Query?
> I notice the docs say that insert and update queries return the number of
> affected rows now.. but how would you do an insert query in your exim
> config?


Off the top of my head, you can do:
    condition = ${lookup mysql{insert ...}{yes}{no}}
    or
    message = ${lookup mysql{insert ...}{}{}}<actual message>


I did something like this with ${run ..} to lock out people who attempt to
relay via my server

The downside of that, was a real lockout was performed when I used exim -bh
<ip>