Setting up Postfix with use with freerelay

Edit /etc/postfix/ and add the following lines:

smtp_use_tls = yes
		smtp_tls_key_file =  /etc/postfix/certs/minfine.key
		smtp_tls_cert_file = /etc/postfix/certs/minfine.crt
		smtp_tls_CAfile =    /etc/postfix/certs/freerelayCA2.crt.crt
		relayhost = []:2525
After doing that, restart postfix and check that relaying works. Freerelay listens to port 25, 587 (submission), 6667 (irc) and 2525, so if any of those are blocked in your network, try another one.

Tollef Fog Heen
Last modified: 2019-09-08 17:05:12 UTC