[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:[202.96.15.55]:25
This action in postfix means that it instructs postfix to accept this mail and then send it to 202.96.15.55
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:[202.96.15.55]: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[202.96.130.213]: 554 5.7.1 ?; from=<sosogh at sosogh.cn> proto=ESMTP helo=<9B83DB3FAA054BC>
I wonder that if MIMEDefang does support "FILTER smtp:[202.96.15.55]:25",
MIMEDefang just support the following return vaules :?
'REJECT'
if the connection should be rejected.
'CONTINUE'
if the connection should be accepted.
'TEMPFAIL'
if a temporary failure code should be returned.
'DISCARD'
if the message should be accepted and silently discarded.
'ACCEPT_AND_NO_MORE_FILTERING'
Thank you
--------------
sosogh
2008-11-17
More information about the MIMEDefang
mailing list