>>> I still can't get the senders deferred with the customized message:
>>>
>>> Mar 18 11:55:23 av10 postfix/smtpd[7904]: NOQUEUE: reject: RCPT from
>>> ns1.sama.jo[81.28.112.1]: 450 4.3.2 <[email protected]>: Recipient
>>> address rejected: Try again later; from=<[email protected]>
>>> to=<[email protected]> proto=SMTP helo=<sama.jo>
>>>
>>> :-(
>>>
>>> Even if I added the line:
>>>
>>> $server->log(LOG_ERR,"[PROTOCOL/Postfix] Response:
>>>     $response, Data: $response_data");
>>>
>>> after line 158 of Postfix.pm
>>>       
>> Any news?
>>
>>     
>
> Maybe I ve found something of interesting for you.. In my Postfix
> maillog I see many log such this:
>
> Mar 20 10:19:52 av10 postfix/smtpd[10108]: warning: restriction
> `Superato' after `defer' is ignored
>
> Please note that I have filled "Data" field with "Superato il numero
> massimo di messaggi".
>
> Indeed, from the code I've noticed near line 158 of Postfix.pm:
> .
> .
> .
>         } elsif ($resp == PROTO_DEFER) {
>                 if ($data =~ /^(4[0-9]{2}) (.*)/) {
>                         $response = $1;
>                         $response_data = $2;
>                 } else {
>                         $response = "DEFER";
>                         $response_data = $data;
>                 }
>                 return CBP_STOP;
> .
> .
> .
>
> I see that you specify what I set in "Data" field (At least when the
> content of "Data" filed doesn't match the "/^(4[0-9]{2}) (.*)/" regular
> expreession), after "DEFER" action. But this seems that doesn't work (At
> least with postfix).
>
> I have workarounded the problem changing the content of "Data" filed
> from the onne above to "450 <message>".
>   

As far as I can tell Policyd is replying correctly and as per the
Postfix SMTP Access delegation protocol, which states "The policy server
replies with any action that is allowed in a Postfix SMTPD access(5)
<http://www.postfix.org/access.5.html> table"

access(5) states ....

       *DEFER* /optional text.../
              Reject  the  address etc. that matches the pattern.
              Reply   with    "*$access_map_defer_code 
<http://www.postfix.org/postconf.5.html#access_map_defer_code>*    /optional/
              /text.../"  when the optional text is specified, oth-
              erwise reply with a generic error response message.


The response from policyd is correct.

-N

              This feature is available in Postfix 2.6 and later.


_______________________________________________
Users mailing list
[email protected]
http://lists.policyd.org/mailman/listinfo/users

Reply via email to