简体   繁体   English

域密钥,DKIM和Sendmail

[英]Domain Keys, DKIM and Sendmail

When I am using DomainKeys and DKIM together on a linux system, do I run both of them on the same port? 当我在Linux系统上同时使用DomainKeys和DKIM时,是否都在同一端口上运行它们?

DomainKeys: DomainKeys的:
/usr/bin/dk-filter -l -p inet: 8891 @localhost -d example.com -s /var/db/ domainkeys/default.key.pem -S default / usr / bin / dk-filter -l -p inet: 8891 @localhost -d example.com -s / var / db / domainkeys / default.key.pem -S默认

DKIM: DKIM:
/usr/bin/dkim-filter -l -p inet: 8891 @localhost -c simple -d example.com -k /var/db/dkim/mail.key.pem -s mail -S rsa-sha256 -u dkim -m MSA / usr / bin / dkim-filter -l -p inet: 8891 @localhost -c simple -d example.com -k /var/db/dkim/mail.key.pem -s mail -S rsa-sha256 -u dkim -m MSA

Or do I do something like this: 还是我做这样的事情:

DomainKeys: DomainKeys的:
/usr/bin/dk-filter -l -p inet: 8892 @localhost -d example.com -s /var/db/ domainkeys/mail1.key.pem -S default / usr / bin / dk-filter -l -p inet: 8892 @localhost -d example.com -s / var / db / domainkeys / mail1.key.pem -S默认

DKIM: DKIM:
/usr/bin/dkim-filter -l -p inet: 8891 @localhost -c simple -d example.com -k /var/db/dkim/mail2.key.pem -s mail -S rsa-sha256 -u dkim -m MSA / usr / bin / dkim-filter -l -p inet: 8891 @localhost -c simple -d example.com -k /var/db/dkim/mail2.key.pem -s mail -S rsa-sha256 -u dkim -m MSA

Just wondering since information about DomainKeys and DKIM tell you to run them on the same port: 只是想知道既然有关DomainKeys和DKIM的信息告诉您在同一端口上运行它们:
http://www.elandsys.com/resources/sendmail/domainkeys.html http://www.elandsys.com/resources/sendmail/domainkeys.html
http://www.elandsys.com/resources/sendmail/dkim.html http://www.elandsys.com/resources/sendmail/dkim.html

I want to run both of them together, is this a bad idea? 我想同时运行它们,这是个坏主意吗?

You have to set it up on two differnt ports using two different services. 您必须使用两个不同的服务在两个不同的端口上进行设置。 I used dk-filter and dkim-filter on sendmail. 我在sendmail上使用了dk-filter和dkim-filter。

Add the services to your sendmail.mc, rebuild sendmail (make -C /etc/mail), start the services from the command line, and restart sendmail. 将服务添加到sendmail.mc中,重新构建sendmail(使-C / etc / mail),从命令行启动服务,然后重新启动sendmail。

Ports 8891 and 8892 will work. 端口8891和8892将起作用。

To add to the other answer, which is correct (use different ports). 要添加到其他答案,这是正确的(使用其他端口)。 If you happen to use CentOS, make may not be installed by default, you can install as root like so: 如果您碰巧使用CentOS,默认情况下可能未安装make,则可以以root用户身份安装,如下所示:

yum -y install gcc automake autoconf libtool make yum -y安装gcc automake autoconf libtool make

this will install all required dependencies to use make as root, so when you edit sendmail.mc. 这将安装所有需要的依赖项以将make用作root,因此在编辑sendmail.mc时。

which will regenerate sendmail.cf, as well as regenerate .db files if you happen to also change them. 如果您碰巧也要更改它们,它将重新生成sendmail.cf以及重新生成.db文件。

One last note about the port for dkim-milter - you can set it to whatever you want, but just make sure it is not a reserved port or default port for other common services. 关于dkim-milter的端口的最后一点说明-您可以将其设置为所需的任何端口,但只需确保它不是其他通用服务的保留端口或默认端口即可。 (don't set it to port 80 etc). (请勿将其设置为端口80等)。 The tutorial I found to get dkim-milter working with sendmail used port 10035 and that is what I used successfully. 我发现使dkim-milter与sendmail一起使用的教程使用的端口为10035,这是我成功使用的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM