[Mailmunge] Process "outgoing" vs "incoming"
dianne at skollsoft.com
Wed Sep 1 15:52:55 EDT 2021
On Wed, 01 Sep 2021 15:41:47 -0400
postfix--- via Mailmunge <mailmunge at lists.mailmunge.org> wrote:
> Is there something built-in to mailmunge like a $ctx->accessor or
> $self->method() to know this difference? Or is passing a SASL macro
> from the MTA using the "-a macro" import the only way?
The "daemon_port" macro is passed by default, so you should be able to
inspect that; it will probably be 25 for "inbound" and 465 or 587 for
"outbound". Presumably, the submission port is only used for outbound
mail and always requires auth.
Note that a given email might be considered both inbound and outbound;
consider a local user emailing another local user.
More information about the Mailmunge