The sequence is decsribed in an ancient sendmai document. for
example, https://fossies.org/linux/sendmail/libmilter/docs/overview.html

I added one comment about the effects of message modifications.

For each of N connections
{
        For each filter
                negotiate MTA/milter capabilities/requirements (xxfi_negotiate)
        For each filter
                process connection (xxfi_connect)
        For each filter
                process helo/ehlo (xxfi_helo)
MESSAGE:
        # NOTE: processing may be aborted at any time during a message,
        # in which case the xxfi_abort callback is invoked and control
        # returns to MESSAGE.
        For each message in this connection (sequentially)
        {
                For each filter
                        process sender (xxfi_envfrom)
                For each recipient
                {
                        For each filter
                                process recipient (xxfi_envrcpt)
                }
                For each filter
                        process DATA (xxfi_data)
                For each filter
                {
                        For each header
                                process header (xxfi_header)
                        process end of headers (xxfi_eoh)
                        For each body block
                                process this body block (xxfi_body)
                        process end of message (xxfi_eom)
                            # NOTE: This is where modifications are
                            # made. The next filter sees the neaders
                            # and body as modified by earlier filters.
                            # Filters see message content after the
                            # MTA receives End-of-Data.
                    }
        }
        For each filter
                process end of connection (xxfi_close)
}
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to