[Mimedefang] add boilerplate not working as expected

Richard Laager rlaager at wiktel.com
Sat Oct 2 22:15:12 EDT 2004


On Sat, 2004-10-02 at 16:35, J.D. Bronson wrote:
>      if ($RelayAddr =~ "^192\.168\.1" or "^127\.0\.0\.1") {

Try this instead:
if ($RelayAddr =~ "^192\.168\.1" or $RelayAddr eq "127.0.0.1") {

The error is that "or" binds two conditional statements. In your
example, it was seeing this as:

statement 1: $RelayAddr =~ "^192\.168\.1"
OR
statement 2: "^127\.0\.0\.1"

Richard

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <https://lists.mimedefang.org/pipermail/mimedefang_lists.mimedefang.org/attachments/20041002/659107d5/attachment.sig>


More information about the MIMEDefang mailing list