質問: postfixメールキューに詰まったメールを配信するにはどうすればよいですか? postfixからこのメールを送信するにはどうすればよいですか? postfix2.6.6を実行しているcentosリリース6.8を使用しています。メールログjan 16 21:23:16 ip-172-99-99-99 postfix/smtp[17128]: connect to alt1.aspmx.l.google.com[2607:f8b0:4001:c06::1a]:25: network is unreachable jan 16 21:23:16 ip-172-99-99-99 postfix/smtp[17128]: connect to aspmx2.googlemail.com[2607:f8b0:4001:c06::1a]:25: network is unreachable jan 16 21:23:16 ip-172-99-99-99 postfix/smtp[17128]: connect to aspmx3.googlemail.com[2607:f8b0:4002:c03::1a]:25: network is unreachable jan 16 21:23:16 ip-172-99-99-99 postfix/smtp[17128]: connect to aspmx5.googlemail.com[2607:f8b0:400c:c11::1b]:25: network is unreachable jan 16 21:23:16 ip-172-99-99-99 postfix/smtp[17128]: connect to aspmx.l.google.com[2607:f8b0:400e:c04::1a]:25: network is unreachable jan 16 21:23:16 ip-172-99-99-99 postfix/smtp[17128]: a3aee2026d: to=<support+b78fd7ef-a67e-410e-xxxx-xxxxxxxxxxx@heroku.com>, relay=none, delay=361752, delays=361752/0.04/0.28/0, dsn=4.4.1, status=deferred (connect to aspmx.l.google.com[2607:f8b0:400e:c04::1a]:25: network is unreachable) キュー# postqueue -p -queue id- --size-- ----arrival time---- -sender/recipient------- a3aee2026d 9899 thu jan 12 16:54:04 chloe@example.com (connect to aspmx4.googlemail.com[2607:f8b0:400d:c0b::1a]:25: network is unreachable) support+b78fd7ef-a67e-410e-xxxx-xxxxxxx@heroku.com -- 11 kbytes in 1 request. ping# ping alt1.aspmx.l.google.com ping alt1.aspmx.l.google.com (74.125.202.26) 56(84) bytes of data. 64 bytes from io-in-f26.1e100.net (74.125.202.26): icmp_seq=1 ttl=32 time=50.7 ms
回答: postqueue -fは通常、配信失敗の根本原因が解決された後、キューをフラッシュするために使用されます。-f flush the queue: attempt to deliver all queued mail. this option implements the traditional "sendmail -q" command, by contacting the postfix qmgr(8) daemon. warning: flushing undeliverable mail frequently will result in poor delivery performance of all other mail. postqueue -iは、特定のメッセージに使用できます。-i queue_id schedule immediate delivery of deferred mail with the specified queue id. this option implements the traditional sendmail -qi command, by contacting the flush(8) server. this feature is available with postfix version 2.4 and later. ipv6が永続的に停止している場合は、inet_protocolsを使用してpostfixでipv6を無効にすることができます。から http://www.postfix.org/ipv6_readme.html :/etc/postfix/main.cf: # you must stop/start postfix after changing this parameter. inet_protocols = ipv4 (default: enable ipv4 only) inet_protocols = all (enable ipv4, and ipv6 if supported) inet_protocols = ipv4, ipv6 (enable both ipv4 and ipv6) inet_protocols = ipv6 (enable ipv6 only)