Setup SPF and DKIM record on DNS
To Setup SPF and DKIM record on DNS you need to follow the below given points:-
You need to reboot your system after the successful installation and then use amavisd to complete the setup of DNS record.
Execute the following command in terminal to show your DKIM keys:
Note: Please use command ‘amavisd-new’ instead of ‘amavisd’ if ‘amavisd’ doesn’t work.
If it shows “/etc/amavisd.conf not found”, then you should enter the correct path of the configuration file in amavisd, for example:
Note: This kind of multi-line format can be handled by Bind, so you can just paste it in your domain zone file directly.
Copy output of the above command into one line, as given below. It will come as the value of DNS record.
Add a ‘TXT’ type DNS record, set value to the line you copied above.
After you added this in your DNS, then type below command to verify it:
If it shows ‘pass’, then it works.
How to Setup DNS record for SPF
DNS (Domain Name System) is a arranged disseminated naming system for computers, services, or any expedient connected to the Internet. It relates various information with domain names assigned to each of the involving entities. It translates domain names to the numerical IP addresses. The Domain Name System is an important element of the functionality of most Internet services.
SPF (Sender Policy Framework) is a simple email validation system which was intended to detect email spoofing. The list is published in the Domain Name System (DNS) records of all the authorized sending hosts for a domain.
To setup SPF record, please check www.openspf.org/
Below given is a simple example:
or you can use the following given:
For reference link:
Another tip from maxie_ro: http://www.iredmail.org/forum/post5456.html#p5456
Note: Note: In case, you use DNS service provided by ISP, it might take some hours to make the new DNS records available.
Please refer http://www.openspf.org/ to setup SPF record.