On Sat, Apr 19, 2014 at 07:01:45PM +0200, Axel Luttgens wrote:

>       action=REJECT Mailbox is unavailable
> 
> This is then what I get in the SMTP conversation:
> 
>       554 5.7.1 <END-OF-MESSAGE>: End-of-data rejected: Mailbox is unavailable
> 
> Where does this substring "<END-OF-MESSAGE>: End-of-data rejected: " come 
> from?

This is how "REJECT" is implemented.

    /*
     * REJECT means NO. Use optional text or generate a generic error
     * response.
     */
    if (STREQUAL(value, "REJECT", cmd_len)) {
        dsn_split(&dp, "5.7.1", cmd_text);
        return (smtpd_check_reject(state, MAIL_ERROR_POLICY,
                                   var_map_reject_code,
                                   smtpd_dsn_fix(DSN_STATUS(dp.dsn),
                                                 reply_class),
                                   "<%s>: %s rejected: %s",
                                   reply_name, reply_class,
                                   *dp.text ? dp.text : "Access denied"));
    }

> Can it be avoided?

No.

-- 
        Viktor.

Reply via email to