D?vis Mos?ns via Postfix-users:
> ceturtd., 2024. g. 1. aug., plkst. 09:10 ? lietot?js Wietse Venema via
> Postfix-users (<postfix-users@postfix.org>) rakst?ja:
> >
> > Davis Mosans via Postfix-users:
> > > Hi,
> > >
> > > I'm trying to setup Postfix in a way that will forward/relay all mail
> > > on SMTP port 25 but send out (don't forward) email when receiving on
> > > submission port 465.
> >
> > You cant to receive email on port 465 and want to send that out to
> > the internet? That requires that the SMTP clients have relay
> > permission (permit_sasl_authenticated, reject).
> >
> > You want to receive email on port 25 from local systems, and forward
> > their messages to the internet? That requires that local SMTP clients
> > have relay permission (permit_mynetworks, reject_unauth_destination).
> >
> > You want to receive email on port 25 from the internet and want to
> > forward messages for specific destinations? See Configuring Postfix
> > as primary or backup MX host for a remote site",
> > https://www.postfix.org/STANDARD_CONFIGURATION_README.html#backup
> >
> > You want to receive email on port 25 from anywhere on the internet
> > and want to forward messages to anywhere on the internet? Don't do
> > that.
> >
> 
> None of that is what I want. Also it's not about permissions, those work fine.
> What I want is forward incoming email on port 25 to internal email
> server but at same time deliver outgoing email from port 465 and that
> shouldn't be forwarded to internal server.

You don't need two instances for that. One will do just fine.

- Receive email on port 465 and to send that out to the internet.
That is handled by the smtps or submissions example in master.cf.
No transport map needed. Just remove the '#' from those lines.

- Receive email on port 25 from the internet and forward messages
for specific destinations? That involves a transport map and
relay_domains as described in
https://www.postfix.org/STANDARD_CONFIGURATION_README.html#backup

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

Reply via email to