[SA-exim] disable for local users

Adam Stephens Adam.Stephens at bristol.ac.uk
Wed Aug 6 16:11:09 PDT 2003


On Wed, 6 Aug 2003 jvanasco at mastersofbranding.com wrote:

> ah -- didn't think of throwing an ip in there
>
> its set for localhost now.. i'm just thinking about office ips
>
> i'm not too skilled on sa-exim -- would it be possible to have a list
> of ips in there instead -- like an lsearch;/path/to/file as in exim?

You can use a subnet mask, like this  :

SAEximRunCond: ${if and {{def:sender_host_address}
{!eq {$sender_host_address}{127.0.0.1}}
{!eq {${mask:$sender_host_address/24}}{10.0.0.0/24}}
{!eq {$h_X-SA-Do-Not-Run:}{Yes}} } {1}{0}}

regards,
Adam.
--------------------------------
Adam Stephens
Unix Administrator, ILRT
adam.stephens at bristol.ac.uk







More information about the SA-Exim mailing list