Jonas Pasche via Postfix-users:
> Hey folks,
>
> I'm struggling to understand why a certain setup doesn't work the way I
> expect it to work.
>
> The idea is to configure incoming and outgoing Postfix instances in a certain
> way:
>
> smtp service (port 25):
> - has some domains in virtual_mailbox_domains (in my case, a pgsql map)
> - also has virtual_mailbox_maps and stuff, a rather standard virtual setup
> - delivers mail through virtual_transport -> dovecot-lmtp
> - stuff like rspamd happens here for spam filtering, ARC signing, ...
> => this already works fine
>
> submission service (port 587):
> - demands SMTP AUTH
> - has a specific relayhost set (a centralized outgoing mail gateway)
Not possible: relayhost is not an SMTP daemon property.
> - does not feel responsible for any domains
And yet, if a recipient has a mailbox on the port 25 service, then
mail received via the submission service will also have to be
delivered to that mailbox.
There is a fundamental misunderstanding how Postfix works.
Port 25 service: this receives mail for all domains that Postfix is
authoritative for (mydestintation, virtual_xxx_domain, relay_domains).
Submission service: receives mail for all domains that Postfix is
authoritative for (mydestintation, virtual_xxx_domains, relay_domains)
AND ALSO allows relaying to other destinations.
All of this is available in the stock Postfix master.cf file.
The settings may be commented out.
master.cf:
#submission inet n - n - - smtpd
# -o syslog_name=postfix/submission
# ...Many other relevant settings...
# -o smtpd_recipient_restrictions=permit_sasl_authenticated,reject
# -o milter_macro_daemon_name=ORIGINATING
If you need a per-user relayhost, consider looking
at sender_dependent_default_transport_maps or
sender_dependent_relayhost_maps.
Wietse
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]