I'm playing with Exim trying to create a mail server for a company, basically i'm able to send email without problem using command line or via localhost. I was trying to set SPF header but I can figure out how, documentation is very low level and i shoud be pointed in the right direction. As you can see in the email's header i have this
Delivered-To: mymail@mail.com
Received: by 10.194.54.131 with SMTP id j3csp145253wjp;
Sun, 23 Nov 2014 14:04:51 -0800 (PST)
X-Received: by 10.194.189.81 with SMTP id gg17mr28397292wjc.115.1416780291387;
Sun, 23 Nov 2014 14:04:51 -0800 (PST)
Return-Path: <bounce@mydomain.com>
Received: from mydomain ([2a01:7e00::f03c:91ff:fe89:9bac])
by mx.google.com with ESMTPS id l17si9093719wiv.106.2014.11.23.14.04.51
for <mymail@mail.com>
(version=TLSv1 cipher=RC4-SHA bits=128/128);
Sun, 23 Nov 2014 14:04:51 -0800 (PST)
Received-SPF: fail (google.com: domain of bounce@mydomain.com does not designate 2a01:7e00::f03c:91ff:fe89:9bac as permitted sender) client-ip=2a01:7e00::f03c:91ff:fe89:9bac;
Authentication-Results: mx.google.com;
spf=fail (google.com: domain of bounce@mydomain.com does not designate 2a01:7e00::f03c:91ff:fe89:9bac as permitted sender) smtp.mail=bounce@mydomain.com
Received: from root by mydomain with local (Exim 4.76)
(envelope-from <bounce@mydomain.com>)
id 1XsfH1-00032X-53
for mymail@mail.com; Sun, 23 Nov 2014 22:04:51 +0000
Subject: subject2
From: EmailControls <bounce@mydomain.com>
To: <mymail@mail.com>
X-Mailer: mail (GNU Mailutils 2.2)
Message-Id: <E1XsfH1-00032X-53@mydomain>
Date: Sun, 23 Nov 2014 22:04:51 +0000
body mail
in this case the email was delivered to a gmail account. I never touched the SPF configuration so I think it's normal it does not pass. I know i have to set some txt record into my DNS but I don't know how to manage the SPF configuration in Exim. Thank you