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
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 Aug 19 20:37:56 portable-navi postfix/qmgr[360216]: warning: private/smtp socket: malformed response Aug 19 20:37:56 portable-navi postfix/qmgr[360216]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem description Aug 19 20:37:56 portable-navi postfix/master[360214]: warning: process /usr/lib/postfix/bin/smtp pid 360340 exit status 1 Aug 19 20:37:56 portable-navi postfix/master[360214]: warning: /usr/lib/postfix/bin/smtp: bad command startup -- throttling Aug 19 20:37:56 portable-navi postfix/error[360343]: 2BE0C1428EA: to=<m...@example.com>, relay=none, delay=1.1, delays=0.03/1.1/0/0.02, dsn=4.3.0, status=deferred (unknown mail transport error) ``` The mail is sent to and from `m...@example.com`. The above sender_relay file seems to be in the wrong format. How do I specify what service is being used for which relay correctly? -- witcher
signature.asc
Description: PGP signature