Changeset 1412 in ExiteCMS


Ignore:
Timestamp:
05/18/08 00:51:07 (4 years ago)
Author:
hverton
Message:

hack: allow 451 with the word "greylist" in the response as a valid response to the SMTP RCPT TO command (needs a separate function!)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/smtp_include.php

    r863 r1412  
    714714     * Implements from rfc 821: RCPT <SP> TO:<forward-path> <CRLF> 
    715715     * 
    716      * SMTP CODE SUCCESS: 250,251 
     716     * SMTP CODE SUCCESS: 250,251,450("greylisted") 
    717717     * SMTP CODE FAILURE: 550,551,552,553,450,451,452 
    718718     * SMTP CODE ERROR  : 500,501,503,421 
     
    738738        } 
    739739 
    740         if($code != 250 && $code != 251) { 
     740        if($code != 250 && $code != 251 && ($code == 450 && strpos(strtolower($reply), "greylist")===false)) { 
    741741            $this->error = 
    742742                array("error" => "RCPT not accepted from server", 
Note: See TracChangeset for help on using the changeset viewer.