Re: SA-Exim run condition problems...

Lars Schimmer <[email protected]>
Newsgroups gmane.mail.exim.spamassassin
Organization Institut für ComputerGraphic der TU Braunschweig
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Lars Schimmer schrieb:
| Hi!
|
| I don't know what to do right now...
| I setup the run condition:
| SAEximRunCond: ${if or {{def:sender_host_address} {!eq
| {$sender_host_address}{127.0.0.1}} {def:sender_host_address}  {!eq {mask:
| $sender_host_address/24}{1.1.1.0/24}} {!eq {$h_X-SA-Do-Not-Run:}{Yes}} }
| {1}{0}}
|
| And I try to send mail from a PC 1.1.1.34 out to the world.
| ~From MY point of view, spamassassin shouldn't act at all.
| But sa runs and tries to tag the mail :-(
| Any hint?

Ok, One error found: I had to replace or with and :-)
But the mask: operation doesn't work.
This run condition works:
SAEximRunCond: ${if and {{def:sender_host_address} {!eq
{$sender_host_address}{1.1.1.34}} {!eq {$h_X-SA-Do-Not-Run:}{Yes}} } {1}{0}}

if I sent from 1.1.1.34, but this one:

SAEximRunCond: ${if and{{def:sender_host_address}
{!eq{mask:$sender_host_address/24}
{1.1.1.0/24}}{!eq{$sender_host_address}{127.0.0.1}}}{1}{0}}

doesn't.

Why?

Thx, bye
Lars
- --
- -----------------------------------------------------------------
Technische Universität Braunschweig, Institut für Computergraphik
Tel.: +49 531 391-2109            E-Mail: [email protected]
PGP-Key-ID: 0xB87A0E03


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCANQjVguzrLh6DgMRAuHVAKDWMJDLuZ+NMfU1HGfHZhqV7LAmgACg040l
NcBtsClMsDOm8pnTqCWcN0I=
=3RGp
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.