@
guoxu1231 我这里可以
Aug 12 00:01:00 dev postfix/pickup[50246]: 773471B822: uid=1001 from=<pubby>
Aug 12 00:01:00 dev postfix/cleanup[53100]: 773471B822: message-id=<
[email protected]>
Aug 12 00:01:00 dev postfix/qmgr[64627]: 773471B822: from=<
[email protected]>, size=354, nrcpt=1 (queue active)
Aug 12 00:01:01 dev postfix/smtp[53104]: Verified TLS connection established to
smtpdm.aliyun.com[110.75.48.181]:465: TLSv1 with cipher AES256-SHA (256/256 bits)
Aug 12 00:01:01 dev postfix/smtp[53104]: 773471B822: to=<
[email protected]>, relay=
smtpdm.aliyun.com[110.75.48.181]:465, delay=1.2, delays=0.33/0.26/0.53/0.08, dsn=2.0.0, status=sent (250 Data Ok: queued as freedom ###envid=82880264085)
Aug 12 00:01:01 dev postfix/qmgr[64627]: 773471B822: removed
你要么再加上 sender 重写规则,把所有邮件发信人改写成你的阿里云邮件推送的发信地址
main.cf 里加上:
sender_canonical_maps = pcre:/usr/local/etc/postfix/sender_canonical_map
sender_canonical_map 内容:
/.*/
[email protected]# 所有发件人都改写成
[email protected]# 同样需要 postmap sender_canonical_map 预处理一下这个文件
我这边确是也有这样的设置