[Mimedefang] Question on placement of filter_helo & other function
DavidR at Narus.com
Wed Mar 21 15:22:35 EDT 2007
Thanks for the help. After reading the man pages, It looks simple
enough. I assume I just need to define the functions, return what is
expected, and set MX_HELO_CHECK=yes & MX_RECIPIENT_CHECK=yes. Then
mimedefang will pickup that the functions are there and the code will be
executed. Is there anything I might be missing?
Also I see that filter_recipient is passed $recipients. What happens if
there are multiple addressess (some to a user in our domain and some not
in our domain) I need to check against? Could I cast @recipients and
process each element?
Sorry for all the questions, I just started working with mimedefang and
I find it very useful in what my company would like to implement.
From: mimedefang-bounces at lists.roaringpenguin.com
[mailto:mimedefang-bounces at lists.roaringpenguin.com] On Behalf Of David
Sent: Wednesday, March 21, 2007 11:27 AM
To: mimedefang at lists.roaringpenguin.com
Subject: Re: [Mimedefang] Question on placement of filter_helo & other
David Reta wrote:
> To combat the impersonating of our domain and IP's I am in the process
> of implementing filter_helo. Should this be placed in
> /etc/mail/mimedefang-filter or /usr/local/bin/mimedefang.pl?
/etc/mail/mimedefang-filter. You should **NEVER** add site-specific
configuration code to mimedefang.pl.
> On another note I will also be implementing a function that discards
> mail sent to invalid addresses. We gets lots of spam sent to invalid
> addresses. This will be done by keeping a table of valid smtp
> addresses which are retreived via ldap from our domain controllers.
> Should I call this function from filter_begin?
No; it should be called from filter_recipient.
> This email and attachments may contain Narus, Inc. confidential
> material. If you are not the intended recipient, contact the sender
> immediately and delete all instances of this email and attachments.
Please see http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID. You may ignore it.
Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang at lists.roaringpenguin.com
This email and attachments may contain Narus, Inc. confidential material. If you are not the intended recipient, contact the sender immediately and delete all instances of this email and attachments.
More information about the MIMEDefang