Milter problem

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Milter problem

sosogh@126.com
Hi all
 
I am using postfix 2.5.5 and MIMEDefang 2.57
 
I know that the policy server can reply to Postfix with any action that is allowed in a Postfix SMTPD access(5) table in Postfix SMTP Access Policy Delegation ,such as:
DISCARD optional text...
FILTER transport:destination
HOLD optional text...
..............
 
 
 
Is FILTER transport:destination can be sent back to postfix as a milter result action?
 
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 the 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=<[hidden email]> proto=ESMTP helo=<9B83DB3FAA054BC>
 
Does  milter not support the return value "FILTER smtp:[202.96.15.55]:25"?
Thank you
 
 
2008-11-17

sosogh
Reply | Threaded
Open this post in threaded view
|

Re: Milter problem

Wietse Venema
> 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 the 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 u
> nknown[202.96.130.213]: 554 5.7.1 ?; from=<[hidden email]> proto=ESMTP helo=<9
> B83DB3FAA054BC>
>
> Does  milter not support the return value "FILTER smtp:[202.96.15.55]:25"?

This is the POSTFIX mailing list. For questions about MILTERS, you
may find better information on the mimedefang-filter support
mailing list.

        Wietse
Reply | Threaded
Open this post in threaded view
|

Re: Re: Milter problem

sosogh@126.com
Thank you
 
I have sent this question to mimedefang-filter maillist in fact ,but got no response
 
So I tired to post it here  : (      :  )
 
 
2008-11-17

sosogh

发件人: Wietse Venema
发送时间: 2008-11-17  20:12:25
收件人: sosogh
抄送: postfix-users
主题: Re: Milter problem
> 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 the 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 u
> nknown[202.96.130.213]: 554 5.7.1 ?; from= <[hidden email] > proto=ESMTP helo= <9
> B83DB3FAA054BC >
> Does  milter not support the return value "FILTER smtp:[202.96.15.55]:25"?
 
This is the POSTFIX mailing list. For questions about MILTERS, you
may find better information on the mimedefang-filter support
mailing list.
 
Wietse
 
 
__________ NOD32 3617 (20081117) Information __________
 
This message was checked by NOD32 antivirus system.
 
 
Reply | Threaded
Open this post in threaded view
|

Re: Milter problem

Noel Jones-2
In reply to this post by sosogh@126.com
sosogh wrote:

> Hi all
>  
> I am using postfix 2.5.5 and MIMEDefang 2.57
>  
> I know that the policy server can reply to Postfix with any action that
> is allowed in a Postfix SMTPD access(5) table in Postfix SMTP Access
> Policy Delegation ,such as:
> *BCC* /user@domain <mailto:user@domain> ; /
> *DISCARD* /optional text.../
> *FILTER* /transport:destination/
> *HOLD* /optional text.../
> ..............
>  
> http://www.postfix.org/access.5.html
> http://www.postfix.org/SMTPD_POLICY_README.html#protocol

Policy servers and access maps are a postfix creation.
Postfix defines what is valid and what isn't.

> Is FILTER transport:destination can be sent back to postfix as a milter
> result action?

The milter protocol is not a postfix creation.  Postfix does
not define what is a valid milter action.

So no, FILTER (a postfix-specific action) isn't valid in a
milter (a non-postfix protocol).

--
Noel Jones