Closed qpfiffer closed 11 years ago
[2610x17:17:22nick@thesourcecoffee~]$ sudo su -c 'echo --newline-- >> /var/log/exim4/mainlog' [2620x17:17:37nick@thesourcecoffee~]$ echo notspam | mail -s nosrsly ntzaperas@gmail.com [2630x17:18:10nick@thesourcecoffee~]$ sudo tail /var/log/exim4/mainlog 2013-07-12 23:20:01 1Uxmd7-0004gt-VN <= eric@thesourcecoffee.com U=eric P=local S=951 2013-07-12 23:20:01 1Uxmd7-0004gt-VN => eric eric@thesourcecoffee.com R=local_user T=mail_spool 2013-07-12 23:20:01 1Uxmd7-0004gt-VN Completed 2013-07-12 23:22:32 1UxmfY-0004le-46 <= nick@thesourcecoffee.com U=nick P=local S=498 2013-07-12 23:22:32 1UxmfY-0004le-46 => ntzaperas@gmail.com R=dnslookup T=remote_smtp H=gmail-smtp-in.l.google.com [74.125.129.26] X=TLS1.0:RSA_ARCFOUR_SHA1:16 DN="C=US,ST=California,L=Mountain View,O=Google Inc,CN=mx.google.com" 2013-07-12 23:22:32 1UxmfY-0004le-46 Completed --newline-- 2013-07-12 23:24:16 1UxmhE-0004nA-Ah <= nick@thesourcecoffee.com U=nick P=local S=493 2013-07-12 23:24:17 1UxmhE-0004nA-Ah => ntzaperas@gmail.com R=dnslookup T=remote_smtp H=gmail-smtp-in.l.google.com [74.125.129.26] X=TLS1.0:RSA_ARCFOUR_SHA1:16 DN="C=US,ST=California,L=Mountain View,O=Google Inc,CN=mx.google.com" 2013-07-12 23:24:17 1UxmhE-0004nA-Ah Completed [2640x17:18:12nick@thesourcecoffee~]$
Added "v=spf1 a mx -all" as a TXT record for thesourcecoffee.com
Installed exim4 and did: sudo dpkg-reconfigure exim4-config choosing internet site; mail is sent and received directly using SMTP and defaults for the rest
Had to put:
net.ipv6.conf.all.autoconf=0 net.ipv6.conf.all.accept_ra=0
in /etc/sysctl.conf and do a:
sudo sysctl -p /etc/sysctl.conf
to disable ipv6 because Google was marking as spam still: Received-SPF: fail (google.com: domain of nick@thesourcecoffee.com does not designate 2600:3c01::f03c:91ff:fe70:7dcc as permitted sender) client-ip=2600:3c01::f03c:91ff:fe70:7dcc;
I could have just put the ipv6 address in the spf1 TXT record, but that would require having eric updating DNS again and waiting for TTL expiration. Creating an issue for future reference.
We'll need it to send emails. Postfix? Do we even want to do our own emailing stuff?