OpenDKIM:修订间差异

来自Gea-Suan Lin's Wiki
跳到导航 跳到搜索
此页面具有访问限制。如果您看见此消息,则说明您没有权限访问此页面。
第14行: 第14行:


<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
cd /etc/dkimkeys; sudo opendkim-genkey -t -s mail -d example.com
cd /etc/dkimkeys; sudo opendkim-genkey -t -s mail -d my.example.com
</syntaxhighlight>
 
在<code>/etc/opendkim.conf</code>內加上:
 
<syntaxhighlight lang="apache">
Domain          my.example.com
Selector         mail
KeyFile         /etc/dkimkeys/mail.private
</syntaxhighlight>
</syntaxhighlight>



2023年6月30日 (五) 07:38的版本

OpenDKIM是一套实作DKIM的软件。

安装

Ubuntu内可以直接安装:

sudo apt install -y opendkim; sudo apt clean

设定

先产生key pair,其中的-s mailDKIM的selector,预设会产生2048 bit RSA key pair,产生出来的mail.txt是DNS的TXT record的内容:

cd /etc/dkimkeys; sudo opendkim-genkey -t -s mail -d my.example.com

/etc/opendkim.conf内加上:

Domain                  my.example.com
Selector                mail
KeyFile                 /etc/dkimkeys/mail.private

Postfix

/etc/postfix/main.cf内加上:

milter_default_action = accept
milter_protocol = 2
smtpd_milters = local:/run/opendkim/opendkim.sock
non_smtpd_milters = local:/run/opendkim/opendkim.sock

相关连结

外部链接