我正在尝试将postfixconfiguration为forwader到gmail。 我已经成功为我所托pipe的域configuration了虚拟别名,并且我希望redirect,但Gmail SPFvalidation因此失败:
Delivered-To: [email protected] Received: by 10.25.28.147 with SMTP id c141csp88155lfc; Sat, 11 Oct 2014 09:08:40 -0700 (PDT) X-Received: by 10.224.70.83 with SMTP id c19mr21300511qaj.66.1413043720159; Sat, 11 Oct 2014 09:08:40 -0700 (PDT) Return-Path: <[email protected]> Received: from mail1.mycompany.com (mail1.mycompany.com. [2604:xxxxxxx:b5c8]) by mx.google.com with ESMTP id d63si16549011qgd.80.2014.10.11.09.08.39 for <[email protected]>; Sat, 11 Oct 2014 09:08:40 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning [email protected] does not designate 2604:xxxxxxx:b5c8 as permitted sender) client-ip=2604:180:2:2cf::b5c
我认为问题在于回程。 在与其他主机(例如namecheap)进行电子邮件转发时,会自动将其重写为:
Return-Path: <SRS0+BJjl=7C=gmail.com=realsender@eforward3e.registrar-servers.com>
有没有办法在postfix中执行这样的重写? 谢谢
我通过遵循这个指南解决了这个问题: https : //www.mind-it.info/forward-postfix-spf-srs/
简而言之:
cd ~ wget https://github.com/roehling/postsrsd/archive/master.zip unzip master cd postsrsd-master/ make sudo make install
sudo postconf -e "sender_canonical_maps = tcp:127.0.0.1:10001" sudo postconf -e "sender_canonical_classes = envelope_sender" sudo postconf -e "recipient_canonical_maps = tcp:127.0.0.1:10002" sudo postconf -e "recipient_canonical_classes = envelope_recipient"
sudo chkconfig postsrsd on # Start SRS daemon sudo service postsrsd restart #Reload postfix sudo service postfix reload