On Fri, May 30, 2025 at 02:08:00PM -0400, Jim Seymour via Postfix-users wrote:

> 
> First of all: Here's the list of postscreen status messages I have:
> 
>     BLACKLISTED
>     COMMAND COUNT LIMIT from
>     COMMAND LENGTH LIMIT from
>     COMMAND PIPELINING from
>     COMMAND TIME LIMIT from
>     CONNECT
>     DISCONNECT
>     DNSBL rank ... for 
>     DROP
>     HANGUP after ... in tests (before|after) SMTP handshake
>     NON-SMTP COMMAND from
>     NOQUEUE: reject: CONNECT from ... all server ports busy
>     NOQUEUE: reject: CONNECT from ... too many connections
>     PREGREET ... after ... from
>     reject: connect from ... all screening ports busy
>     reject: RCPT from
> 
> Is this all of them?

This is an RTFS task.  Look for "msg_info" calls in src/postscreen/*.c
that are not guarded by a "msg_verbose" condition.  My quick sample
finds:

    msg_info("%sLIST VETO [%s]:%s", var_respectful_logging ?
    msg_info("%sLISTED [%s]:%s",
    msg_info("BARE NEWLINE from [%s]:%s after %s",
    msg_info("BDAT without valid RCPT from [%s]:%s",
    msg_info("COMMAND COUNT LIMIT from [%s]:%s after %s",
    msg_info("COMMAND LENGTH LIMIT from [%s]:%s after %s",
    msg_info("COMMAND PIPELINING from [%s]:%s after %.100s: %s",
    msg_info("COMMAND TIME LIMIT from [%s]:%s after %s",
    msg_info("CONNECT from [%s]:%s to [%s]:%s",
    msg_info("DATA without valid RCPT from [%s]:%s",
    msg_info("DISCONNECT [%s]:%s", PSC_CLIENT_ADDR_PORT(state));
    msg_info("DNSBL rank %d for [%s]:%s",
    msg_info("HANGUP after %s from [%s]:%s in %s",
    msg_info("NON-SMTP COMMAND from [%s]:%s after %s: %.100s %s",
    msg_info("NOQUEUE: reject: CONNECT from [%s]:%s: all server ports busy",
    msg_info("NOQUEUE: reject: CONNECT from [%s]:%s: too many connections",
    msg_info("NOQUEUE: reject: RCPT from [%s]:%s: %.*s; "
    msg_info("PASS %s [%s]:%s", (state->flags & PSC_STATE_FLAG_NEW) == 0
    msg_info("PASS OLD [%s]:%s", PSC_CLIENT_ADDR_PORT(state));
    msg_info("PREGREET %d after %s from [%s]:%s: %.100s", read_count,
    msg_info("[%s]:%s: replacing command \"%.100s\" with \"%.100s\"",
    msg_info("entering STRESS mode with %d connections",
    msg_info("leaving STRESS mode with %d connections",
    msg_info("reject: connect from [%s]:%s: all screening ports busy",

You can infer the log format from the format string and additional arguments.

-- 
    VIktor.
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to