Re: [Mimedefang] Where is best to use $SendmailMacros{"auth_authen"} ?

2004-07-01 Thread Ben Kamen
Although it still shows in mail.log that "X-Scanned-By: MIMEDefang" was added to the header... should that be there? -Ben Ben Kamen wrote: nevermind... --Ben ___ Visit http://www.mimedefang.org and http://www.canit.ca MIMEDefang mailing list [EMAIL P

Re: [Mimedefang] Where is best to use $SendmailMacros{"auth_authen"} ?

2004-07-01 Thread Ben Kamen
nevermind... --Ben ___ Visit http://www.mimedefang.org and http://www.canit.ca MIMEDefang mailing list [EMAIL PROTECTED] http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Re: [Mimedefang] Where is best to use $SendmailMacros{"auth_authen"} ?

2004-07-01 Thread Ben Kamen
Crap: Was that if ( defined($SendmailMacros{"auth_authen"} ) ) { do something; } or some other syntax? as listed above doesn't work. syntax error at /etc/mail/mimedefang-filter line 189, near "}" syntax error at /etc/mail/mimedefang-filter line 186, near "auth_authen"}"" Missing right curly or

RE: [Mimedefang] Where is best to use $SendmailMacros{"auth_authen"} ?

2004-07-01 Thread Minica, Nelson \(EDS\)
> Nit: you're calling is_trusted twice to check the same things - including a file read. Option 1, store the value and use it for the tests. Thanks, your right. I saw that but let it go since we don't block many HELO's. Shame on me, posting sloppy code!

RE: [Mimedefang] Where is best to use $SendmailMacros{"auth_authen"} ?

2004-07-01 Thread Minica, Nelson \(EDS\)
Here's what I use: ACCEPT_AND_NO_MORE_FILTERING in filter_relay. Can't use macros there, have to read COMMANDS file. sub is_trusted() { if ($RelayAddr eq "127.0.0.1" || $RelayAddr eq "123.123.123.123" || $RelayAddr =~ /^10\.1\.1\./) { return 1; } else { open(COMM, "<./COMMANDS") o

Re: [Mimedefang] Where is best to use $SendmailMacros{"auth_authen"} ?

2004-07-01 Thread Jeff Grossman
on 7/1/04 7:39 AM, Ben Kamen at [EMAIL PROTECTED] wrote: > > Where would I be best putting a check for $SendmailMacros{"auth_authen"} > to see if someone relaying has auth'd? > > And what action would I use? Just action_accept()? > > I don't want to do anything to the email - I want MIMEdefang

Re: [Mimedefang] Where is best to use $SendmailMacros{"auth_authen"} ?

2004-07-01 Thread Joseph Brennan
--On Thursday, July 1, 2004 9:39 AM -0500 Ben Kamen <[EMAIL PROTECTED]> wrote: Where would I be best putting a check for $SendmailMacros{"auth_authen"} to see if someone relaying has auth'd? I have it in filter_begin() and we see if there is any auth_type: # Mark some mail we trust: smtp-au

[Mimedefang] Where is best to use $SendmailMacros{"auth_authen"} ?

2004-07-01 Thread Ben Kamen
Where would I be best putting a check for $SendmailMacros{"auth_authen"} to see if someone relaying has auth'd? And what action would I use? Just action_accept()? I don't want to do anything to the email - I want MIMEdefang to just "get out of the way"... heheh.. waste no more time! Thanks, -Ben