[Mimedefang] Relay_check not working
David F. Skoll
dfs at roaringpenguin.com
Thu Sep 12 12:45:00 EDT 2002
On Thu, 12 Sep 2002, Ole Craig wrote:
> 1) I'm not positive, but I think that milter doesn't get called until
> the completion of the SMTP "DATA" command -- which means MD doesn't
> get a chance to complain until after you've given sendmail the message
> body. (If I'm wrong I'm sure someone will correct me. :-)
Not quite right. :-)
filter_relay and filter_sender get called after MAIL FROM:
filter_recipient gets called after each RCPT TO:
filter_begin/filter/filter_end are called after DATA
While filter_begin/filter/filter_end are called in order in a single
slave, the others can occur in any slave, so global variables you
set in filter_relay, filter_sender or filter_recipient may or may
not be visible to other functions.
> 2) I've found it quite useful to separate the mimedefang init from the
> sendmail init -- I can stop/start mimedefang without having to wait
> for sendmail to restart also, which is kind of nice (particularly when
> fiddling with mimedefang configs.)
Yes; the MIMEDefang distro includes a generic init script which
should work on most UNIXes. Much faster to do
/etc/init.d/mimedefang reread
when you change filter rules than stop and start Sendmail. Also
the "reread" will not interrupt SMTP transactions in progress.
--
David.
More information about the MIMEDefang
mailing list