0

I have an Amazon EC2 instance. My postfix server sometimes tries to send outbound emails (web form etc) to ipv6 addresses. It fails and the emails go into the queue.

Is there a way to prevent postfix from getting ipv6 mx records, OR allow my instance to connect to ipv6 mail servers?

I don't need to service inbound ipv6 requests.

Is it possible to setup an ipv6 interface with an internal address only (i don't think amazon will give me one).

  • Show log entries and `ip addr` for your instance. Postfix would not attempt IPv6 unless it thought you already had IPv6 connectivity, and by default, EC2 instances do not. – Michael Hampton Dec 05 '13 at 19:13

1 Answers1

0

You can limit the protocols that Postfix uses with the inet_protocols setting.

inet_protocols = ipv4

would be what you need.

It would be better of course if you do support IPv6 for both inbound and outbound mail. You'll probably use both protocols in production sooner than you think!

Sander Steffann
  • 7,712
  • 19
  • 29