[Mimedefang] user-defined return value ?

sosogh sosogh at 126.com
Mon Nov 17 07:33:34 EST 2008

HI All
I am using MIMEDefang 2.57 and postfix 2.5.5
I know that postfix support this action ---> FILTER smtp:[]:25
This action in postfix means that  it instructs postfix to accept this mail and then send it to
I have made a test adding the following code in mimedefang-filter:
sub filter_sender {
    my ($sender, $ip, $hostname, $helo) = @_; 
    if ($sender =~ /sosogh.cn/i) { 
       return ("FILTER smtp:[]:25","");
return ('CONTINUE', "ok"); 
But postfix log said: 554 5.7.1 followed by a question mark:
Nov 17 15:37:01 debian postfix/smtpd[11523]: NOQUEUE: milter-reject: MAIL from unknown[]: 554 5.7.1 ?; from=<sosogh at sosogh.cn> proto=ESMTP helo=<9B83DB3FAA054BC>
I wonder that if MIMEDefang  does support "FILTER smtp:[]:25",
MIMEDefang  just support the following return vaules :?
if the connection should be rejected. 
if the connection should be accepted. 
if a temporary failure code should be returned. 
if the message should be accepted and silently discarded. 
Thank you

More information about the MIMEDefang mailing list