Hello,

My email server sends lots of emails to networks in China, however they seem to 
have packet loss due to what my postfix instance struggles to deliver letters 
to them - only few letters occasionally got successfully sent:
$ sudo grep -e abuse@china -e \\.cn /var/log/mail.log | grep -e dsn=2 | awk 
'{print$1" "$2}' | uniq -c
     74 Sep 10
$ sudo grep -e abuse@china -e \\.cn /var/log/mail.log | grep -e dsn=4 | awk 
'{print$1" "$2}' | uniq -c
  10243 Sep 10
$

As you can see below, my queue is very large and it is constantly growing:
$ sudo /usr/sbin/postqueue -j | /usr/bin/jq -r '. | select(.queue_name ==  "deferred") | 
.recipients[] | join(": ")' | grep "Connection timed out" |sort | uniq -c | sort
      1 ab...@cernet.edu.cn: connect to sea.net.edu.cn[166.111.204.8]:25: 
Connection timed out
      1 anti-s...@chinatelecom.cn: connect to 
oa-mta.21cn.net[182.42.134.193]:25: Connection timed out
      1 ipreport...@chinatelecom.cn: delivery temporarily suspended: connect to 
oa-mta.21cn.net[182.42.129.150]:25: Connection timed out
      1 l...@chinaunicom.cn: delivery temporarily suspended: connect to 
mailc.mailex.Chinaunicom.cn[123.138.59.138]:25: Connection timed out
      1 qcloud_net_d...@tencent.com: delivery temporarily suspended: connect to 
cloudmx.qq.com[121.51.167.59]:25: Connection timed out
      1 sxip_registe...@chinatelecom.cn: connect to 
oa-mta.21cn.net[182.42.129.150]:25: Connection timed out
      1 sxip_registe...@chinatelecom.cn: connect to 
oa-mta.21cn.net[182.42.134.193]:25: Connection timed out
      1 tencent_...@tencent.com: delivery temporarily suspended: connect to 
cloudmx.qq.com[121.51.167.59]:25: Connection timed out
      1 tencent_...@tencent.com: connect to cloudmx.qq.com[121.51.167.59]:25: 
Connection timed out
      2 anti-s...@chinatelecom.cn: connect to 
oa-mta.21cn.net[182.42.129.150]:25: Connection timed out
      2 fj...@fjdcb.fz.fj.cn: connect to mx.fj.bnet.cn[183.56.203.132]:25: 
Connection timed out
      2 shenchen...@chinatelecom.cn: delivery temporarily suspended: connect to 
oa-mta.21cn.net[182.42.129.150]:25: Connection timed out
      2 shenchen...@chinatelecom.cn: delivery temporarily suspended: connect to 
oa-mta.21cn.net[182.42.134.193]:25: Connection timed out
      2 zhao...@chinaunicom.cn: delivery temporarily suspended: connect to 
mailc.mailex.chinaunicom.cn[123.138.59.138]:25: Connection timed out
      4 ab...@chinamobile.com: connect to mx.chinamobile.com[221.176.66.77]:25: 
Connection timed out
      4 zhao...@chinaunicom.cn: delivery temporarily suspended: connect to 
mailc.mailex.Chinaunicom.cn[123.138.59.138]:25: Connection timed out
      6 hqs-ipab...@chinaunicom.cn: connect to 
mailc.mailex.Chinaunicom.cn[123.138.59.138]:25: Connection timed out
     23 hqs-ipab...@chinaunicom.cn: delivery temporarily suspended: connect to 
mailc.mailex.chinaunicom.cn[123.138.59.138]:25: Connection timed out
     61 sxip_registe...@chinatelecom.cn: delivery temporarily suspended: 
connect to oa-mta.21cn.net[182.42.129.150]:25: Connection timed out
     75 sxip_registe...@chinatelecom.cn: delivery temporarily suspended: 
connect to oa-mta.21cn.net[182.42.134.193]:25: Connection timed out
    131 ab...@chinamobile.com: delivery temporarily suspended: connect to 
mx.chinamobile.com[221.176.66.77]:25: Connection timed out
    180 hqs-ipab...@chinaunicom.cn: delivery temporarily suspended: connect to 
mailc.mailex.Chinaunicom.cn[123.138.59.138]:25: Connection timed out
    448 anti-s...@chinatelecom.cn: delivery temporarily suspended: connect to 
oa-mta.21cn.net[182.42.129.150]:25: Connection timed out
    624 anti-s...@chinatelecom.cn: delivery temporarily suspended: connect to 
oa-mta.21cn.net[182.42.134.193]:25: Connection timed out


However, from my troubleshooting I can see that it is possible to connect to 
them:
$ nc -v oa-mta.21cn.net 25
Warning: inverse host lookup failed for 182.42.134.193: Warning: inverse host lookup failed for 182.42.129.150: oa-mta.21cn.net [182.42.134.193] 25 (smtp) open
220 chinatelecom.cn
QUIT
$


Can you please suggest me any optimizations for this case? I have already tried 
to configure smtp_connection_cache_destinations as well as 
smtp_tls_session_cache_database, however it didn't have any observable impact.

Thanks.
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to