On Sat, Jan 27, 2024 at 12:01:55PM +0100, Aleksandar Ivanisevic via 
Postfix-users wrote:

> in main.cf
> sender_dependent_default_transport_maps = hash:/etc/postfix/relay_by_sender
> 
> in /etc/postfix/relay_by_sender
> mysender.com smtp:[localhost]:588

The listening SMTP service for that port would have to be part of a
different Postfix "instance":

    https://www.postfix.org/MULTI_INSTANCE_README.html

> in master cf
> 588       inet n       -       n       -       -       smtpd -o 
> maximal_queue_lifetime=1d -o sender_dependent_default_transport_maps=

With the parameters in question set in the main.cf file of that
instance.  You can only override parameters that are documented
as relevant to the service (smtpd(8)) in question, and even then
only to the extent that they're exclusively used by that service,
otherwise (as with e.g. virtual_alias_maps, used in both smtpd(8)
for recipient validation, and cleanup(8) for address rewriting)
you may not get the results you expected.

See the smtpd(8) manpage for the list of parameters known to smtpd(8),
and qmgr(8) and trivial-rewrite(8) for the parameters that are
"queue-wide", and can only be set per-Postfix-instance, rather than
per-SMTP-service.

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

Reply via email to