Dear Yunohost community,
I would like to discuss some configurations a friend suggested to improve the rating of the emails I send from my little server. I tried them, and it seems to improve the way the email I sent were treated my Hotmail and Gmail.
Add the IPv6 in the SPF entry
The admin panel of Yunohost provides a suggestion for the configuration of the DNS record. (It can also configure it itself, but I never tried that feature). In the suggestions, we find entries related to the email (SPF, DKIM and DMARC). The suggested SPF entry looks like this:
“v=spf1 a mx -all”
I tried to add the ip address of the server in the entry (especially the ipv6):
“v=spf1 a mx ip4:XXX.XXX.XXX.XXX ip6:YYYY:YYYY:YYYY:YYYY:YYYY:YYYY -all”
Do you think it is a good idea to update the suggested entry in Yunohost admin panel?
Activate IPv6 in Postfix
By default, Postfix uses IPv4 to send the email. Some major email provider have drastic rules for emails received via IPv4, but are more permissive for email received via IPv6. So it is intresting to configure Postfix so it sends emails via IPv6 when possible. To do so, I edited the file /etc/postfix/main.cf
and add two lines after inet_interfaces = all
(the position is not important, but I put it where it seems coherent):
inet_protocols = all
smtp_address_preference = ipv6
Do you think it is a good idea to update this configuration file?
For information, since I did this change, Yunohost’s diagnosis system warns me that the file was manually modified.
I am eager to read your opinon on this subject, since I am not an expert in postfix and email sending…
Regards