Is it possible to configure postfix to send via IPV4 only but receive using both IPV4 & IPV6?
My server, running on AWS Lightsail, now can have an IPV6 address. The address is relatively static (as long as I keep IPV6 active on the instance), but it's not truly static because I can't move the address from server to server (like I can do with the static IPV4 address). I also can't (currently) as Amazon to assign an PTR record for the IPV6 address.
As I have the IPV6 address available, I'd like to be able to receive mail using either IPV4 or IPV6 but only send using IPV4.
I know I can set postfix to only listen on the IPV4 address using the inet_protocols setting.
inet_protocolsis absolutely supposed to affect outgoing connections, too. Applying it to yoursmtpservice inmaster.cfshould limit name lookups and connections postfix makes, if that is not the case you are using an old or buggy version.smtpd(receiving mails) and forsmtp(sending mails). Define per-service options, e.g. by adding space-prefixed ` -o option=value` after the relevant service in yourmaster.cffile.