On 19.08.22 02:12, Matus UHLAR - fantomas wrote:
you can define multiple transports in master.cf and use them if you
need different client settings.
That's interesting, thank you for the tip and example configuration!
so you can use transport like "smtpssl:" in your *relayhost_maps:
smtpssl unix - - y - - smtp
-o smtp_tls_wrappermode=yes
-o smtp_tls_security_level=encrypt
On 19.08.22 21:01, witcher wrote:
I'll be using the following example as the server I'm configuring is
using STARTTLS:
smtpstarttls unix - - y - - smtp
-o smtp_tls_wrappermode=no
-o smtp_tls_security_level=may
I saw that the service name, here `smtpstarttls`, should be used in the
following format in the sender_relay file specified with
`sender_dependent_relayhost_maps` in main.cf:
m...@example.com smtpstarttls:[smtp.example.com]:587
The error I'm encountering is the following one, taken from the postfix
logs:
Aug 19 20:37:55 portable-navi postfix/smtp[360340]: fatal: valid hostname or
network address required in server description:
smtpstarttls:[smtp.example.com]:587
oh!
http://www.postfix.org/postconf.5.html#sender_dependent_relayhost_maps
looks like sender_dependent_relayhost_maps requires just relayhost, not
transport.
It is also overridden with other settings, see the page above.
sender_dependent_default_transport_maps allows specifying transport, with
some limits:
http://www.postfix.org/postconf.5.html#sender_dependent_default_transport_maps
--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
The early bird may get the worm, but the second mouse gets the cheese.