特殊:Badtitle/NS100:PostfixDKIM-Filter:修订间差异
小 新页面: {{From|https://help.ubuntu.com/community/PostfixDKIM-Filter}} {{Languages|UbuntuHelp:PostfixDKIM-Filter}} == Introduction == DKIM-Filter implements a Sendmail Mail Filter (Milter) for ... |
小无编辑摘要 |
||
第1行: | 第1行: | ||
{{From|https://help.ubuntu.com/community/PostfixDKIM-Filter}} | {{From|https://help.ubuntu.com/community/PostfixDKIM-Filter}} | ||
{{Languages|UbuntuHelp:PostfixDKIM-Filter}} | {{Languages|UbuntuHelp:PostfixDKIM-Filter}} | ||
== Introduction == | == Introduction == | ||
DKIM-Filter implements a Sendmail Mail Filter (Milter) for the DomainKeys Identified Mail (DKIM) standard. DKIM provides a way for senders to confirm their identity when sending email by adding a cryptographic signature to the headers of the message. | DKIM-Filter implements a Sendmail Mail Filter (Milter) for the DomainKeys Identified Mail (DKIM) standard. DKIM provides a way for senders to confirm their identity when sending email by adding a cryptographic signature to the headers of the message. | ||
The dkim-milter implements both signing and verification. | The dkim-milter implements both signing and verification. | ||
== Installation == | == Installation == | ||
The <code><nowiki>dkim-filter</nowiki></code> package is available in the Universe repository. See InstallingSoftware for details on using package managers and enabling repositories. | The <code><nowiki>dkim-filter</nowiki></code> package is available in the Universe repository. See InstallingSoftware for details on using package managers and enabling repositories. | ||
== Configuration == | == Configuration == | ||
As of Postfix version '''2.3''' the Sendmail version 8 milter protocol has been supported. | As of Postfix version '''2.3''' the Sendmail version 8 milter protocol has been supported. | ||
=== DKIM-Filter === | === DKIM-Filter === | ||
The main configuration options for '''DKIM-Filter''' are placed in <code><nowiki>/etc/dkim-filter.conf</nowiki></code>. To configure DKIM-Filter to only verify messages edit the file and uncomment the following lines: | The main configuration options for '''DKIM-Filter''' are placed in <code><nowiki>/etc/dkim-filter.conf</nowiki></code>. To configure DKIM-Filter to only verify messages edit the file and uncomment the following lines: | ||
<pre><nowiki> | <pre><nowiki> | ||
Mode v | Mode v | ||
第26行: | 第15行: | ||
On-BadSignature reject | On-BadSignature reject | ||
</nowiki></pre> | </nowiki></pre> | ||
'''Note:''' the ''X-Header'' line isn't strictly necessary, but having DKIM-Filter add a line to the message header can help in debugging problems. | '''Note:''' the ''X-Header'' line isn't strictly necessary, but having DKIM-Filter add a line to the message header can help in debugging problems. | ||
After configuring DKIM-Filter start the service: | After configuring DKIM-Filter start the service: | ||
<pre><nowiki> | <pre><nowiki> | ||
sudo /etc/init.d/dkim-filter start | sudo /etc/init.d/dkim-filter start | ||
</nowiki></pre> | </nowiki></pre> | ||
=== Postfix === | === Postfix === | ||
Now Postfix needs to be configured to filter messages using the DKIM-Filter daemon. To configure Postfix from a terminal enter the following: | Now Postfix needs to be configured to filter messages using the DKIM-Filter daemon. To configure Postfix from a terminal enter the following: | ||
<pre><nowiki> | <pre><nowiki> | ||
sudo postconf -e 'smtpd_milters = inet:localhost:8891' | sudo postconf -e 'smtpd_milters = inet:localhost:8891' | ||
</nowiki></pre> | </nowiki></pre> | ||
Then restart Postfix to enable the new configuration: | Then restart Postfix to enable the new configuration: | ||
<pre><nowiki> | <pre><nowiki> | ||
sudo /etc/init.d/postfix restart | sudo /etc/init.d/postfix restart | ||
</nowiki></pre> | </nowiki></pre> | ||
== Troubleshooting == | == Troubleshooting == | ||
The best way to figure out problems with Postfix is to check the log files. Using the '''tail''' command you can see new log messages in real time: | The best way to figure out problems with Postfix is to check the log files. Using the '''tail''' command you can see new log messages in real time: | ||
<pre><nowiki> | <pre><nowiki> | ||
tail -f /var/log/mail.log | tail -f /var/log/mail.log | ||
</nowiki></pre> | </nowiki></pre> | ||
Another way to make sure DKIM-Filter is working correctly is to enable the '''X-Header''' option as noted above. You will then be able to see the DKIM authentication results. | Another way to make sure DKIM-Filter is working correctly is to enable the '''X-Header''' option as noted above. You will then be able to see the DKIM authentication results. | ||
<br> | <br> | ||
'''Note:''' this guide has been tested on Ubuntu 7.10 (Gutsy Gibbon). | '''Note:''' this guide has been tested on Ubuntu 7.10 (Gutsy Gibbon). | ||
---- | ---- | ||
[[category:CategoryDocumentation]] | [[category:CategoryDocumentation]] | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2007年11月30日 (五) 21:06的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/PostfixDKIM-Filter }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:PostfixDKIM-Filter | UbuntuHelp:PostfixDKIM-Filter | {{#if: | :}}PostfixDKIM-Filter}}/af | • {{#if: UbuntuHelp:PostfixDKIM-Filter|Afrikaans| [[::PostfixDKIM-Filter/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixDKIM-Filter | UbuntuHelp:PostfixDKIM-Filter | {{#if: | :}}PostfixDKIM-Filter}}/ar | • {{#if: UbuntuHelp:PostfixDKIM-Filter|العربية| [[::PostfixDKIM-Filter/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixDKIM-Filter | UbuntuHelp:PostfixDKIM-Filter | {{#if: | :}}PostfixDKIM-Filter}}/az | • {{#if: UbuntuHelp:PostfixDKIM-Filter|azərbaycanca| [[::PostfixDKIM-Filter/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixDKIM-Filter | UbuntuHelp:PostfixDKIM-Filter | {{#if: | :}}PostfixDKIM-Filter}}/bcc | • {{#if: UbuntuHelp:PostfixDKIM-Filter|جهلسری بلوچی| [[::PostfixDKIM-Filter/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixDKIM-Filter | UbuntuHelp:PostfixDKIM-Filter | {{#if: | :}}PostfixDKIM-Filter}}/bg | • {{#if: UbuntuHelp:PostfixDKIM-Filter|български| [[::PostfixDKIM-Filter/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixDKIM-Filter | UbuntuHelp:PostfixDKIM-Filter | {{#if: | :}}PostfixDKIM-Filter}}/br | • {{#if: UbuntuHelp:PostfixDKIM-Filter|brezhoneg| [[::PostfixDKIM-Filter/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixDKIM-Filter | UbuntuHelp:PostfixDKIM-Filter | {{#if: | :}}PostfixDKIM-Filter}}/ca | • {{#if: UbuntuHelp:PostfixDKIM-Filter|català| [[::PostfixDKIM-Filter/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixDKIM-Filter | UbuntuHelp:PostfixDKIM-Filter | {{#if: | :}}PostfixDKIM-Filter}}/cs | • {{#if: UbuntuHelp:PostfixDKIM-Filter|čeština| [[::PostfixDKIM-Filter/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixDKIM-Filter | UbuntuHelp:PostfixDKIM-Filter | {{#if: | :}}PostfixDKIM-Filter}}/de | • {{#if: UbuntuHelp:PostfixDKIM-Filter|Deutsch| [[::PostfixDKIM-Filter/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixDKIM-Filter | UbuntuHelp:PostfixDKIM-Filter | {{#if: | :}}PostfixDKIM-Filter}}/el | • {{#if: UbuntuHelp:PostfixDKIM-Filter|Ελληνικά| [[::PostfixDKIM-Filter/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixDKIM-Filter | UbuntuHelp:PostfixDKIM-Filter | {{#if: | :}}PostfixDKIM-Filter}}/es | • {{#if: UbuntuHelp:PostfixDKIM-Filter|español| [[::PostfixDKIM-Filter/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixDKIM-Filter | UbuntuHelp:PostfixDKIM-Filter | {{#if: | :}}PostfixDKIM-Filter}}/fa | • {{#if: UbuntuHelp:PostfixDKIM-Filter|فارسی| [[::PostfixDKIM-Filter/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixDKIM-Filter | UbuntuHelp:PostfixDKIM-Filter | {{#if: | :}}PostfixDKIM-Filter}}/fi | • {{#if: UbuntuHelp:PostfixDKIM-Filter|suomi| [[::PostfixDKIM-Filter/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixDKIM-Filter | UbuntuHelp:PostfixDKIM-Filter | {{#if: | :}}PostfixDKIM-Filter}}/fr | • {{#if: UbuntuHelp:PostfixDKIM-Filter|français| [[::PostfixDKIM-Filter/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixDKIM-Filter | UbuntuHelp:PostfixDKIM-Filter | {{#if: | :}}PostfixDKIM-Filter}}/gu | • {{#if: UbuntuHelp:PostfixDKIM-Filter|ગુજરાતી| [[::PostfixDKIM-Filter/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixDKIM-Filter | UbuntuHelp:PostfixDKIM-Filter | {{#if: | :}}PostfixDKIM-Filter}}/he | • {{#if: UbuntuHelp:PostfixDKIM-Filter|עברית| [[::PostfixDKIM-Filter/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixDKIM-Filter | UbuntuHelp:PostfixDKIM-Filter | {{#if: | :}}PostfixDKIM-Filter}}/hu | • {{#if: UbuntuHelp:PostfixDKIM-Filter|magyar| [[::PostfixDKIM-Filter/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixDKIM-Filter | UbuntuHelp:PostfixDKIM-Filter | {{#if: | :}}PostfixDKIM-Filter}}/id | • {{#if: UbuntuHelp:PostfixDKIM-Filter|Bahasa Indonesia| [[::PostfixDKIM-Filter/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixDKIM-Filter | UbuntuHelp:PostfixDKIM-Filter | {{#if: | :}}PostfixDKIM-Filter}}/it | • {{#if: UbuntuHelp:PostfixDKIM-Filter|italiano| [[::PostfixDKIM-Filter/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixDKIM-Filter | UbuntuHelp:PostfixDKIM-Filter | {{#if: | :}}PostfixDKIM-Filter}}/ja | • {{#if: UbuntuHelp:PostfixDKIM-Filter|日本語| [[::PostfixDKIM-Filter/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixDKIM-Filter | UbuntuHelp:PostfixDKIM-Filter | {{#if: | :}}PostfixDKIM-Filter}}/ko | • {{#if: UbuntuHelp:PostfixDKIM-Filter|한국어| [[::PostfixDKIM-Filter/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixDKIM-Filter | UbuntuHelp:PostfixDKIM-Filter | {{#if: | :}}PostfixDKIM-Filter}}/ksh | • {{#if: UbuntuHelp:PostfixDKIM-Filter|Ripoarisch| [[::PostfixDKIM-Filter/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixDKIM-Filter | UbuntuHelp:PostfixDKIM-Filter | {{#if: | :}}PostfixDKIM-Filter}}/mr | • {{#if: UbuntuHelp:PostfixDKIM-Filter|मराठी| [[::PostfixDKIM-Filter/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixDKIM-Filter | UbuntuHelp:PostfixDKIM-Filter | {{#if: | :}}PostfixDKIM-Filter}}/ms | • {{#if: UbuntuHelp:PostfixDKIM-Filter|Bahasa Melayu| [[::PostfixDKIM-Filter/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixDKIM-Filter | UbuntuHelp:PostfixDKIM-Filter | {{#if: | :}}PostfixDKIM-Filter}}/nl | • {{#if: UbuntuHelp:PostfixDKIM-Filter|Nederlands| [[::PostfixDKIM-Filter/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixDKIM-Filter | UbuntuHelp:PostfixDKIM-Filter | {{#if: | :}}PostfixDKIM-Filter}}/no | • {{#if: UbuntuHelp:PostfixDKIM-Filter|norsk| [[::PostfixDKIM-Filter/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixDKIM-Filter | UbuntuHelp:PostfixDKIM-Filter | {{#if: | :}}PostfixDKIM-Filter}}/oc | • {{#if: UbuntuHelp:PostfixDKIM-Filter|occitan| [[::PostfixDKIM-Filter/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixDKIM-Filter | UbuntuHelp:PostfixDKIM-Filter | {{#if: | :}}PostfixDKIM-Filter}}/pl | • {{#if: UbuntuHelp:PostfixDKIM-Filter|polski| [[::PostfixDKIM-Filter/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixDKIM-Filter | UbuntuHelp:PostfixDKIM-Filter | {{#if: | :}}PostfixDKIM-Filter}}/pt | • {{#if: UbuntuHelp:PostfixDKIM-Filter|português| [[::PostfixDKIM-Filter/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixDKIM-Filter | UbuntuHelp:PostfixDKIM-Filter | {{#if: | :}}PostfixDKIM-Filter}}/ro | • {{#if: UbuntuHelp:PostfixDKIM-Filter|română| [[::PostfixDKIM-Filter/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixDKIM-Filter | UbuntuHelp:PostfixDKIM-Filter | {{#if: | :}}PostfixDKIM-Filter}}/ru | • {{#if: UbuntuHelp:PostfixDKIM-Filter|русский| [[::PostfixDKIM-Filter/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixDKIM-Filter | UbuntuHelp:PostfixDKIM-Filter | {{#if: | :}}PostfixDKIM-Filter}}/si | • {{#if: UbuntuHelp:PostfixDKIM-Filter|සිංහල| [[::PostfixDKIM-Filter/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixDKIM-Filter | UbuntuHelp:PostfixDKIM-Filter | {{#if: | :}}PostfixDKIM-Filter}}/sq | • {{#if: UbuntuHelp:PostfixDKIM-Filter|shqip| [[::PostfixDKIM-Filter/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixDKIM-Filter | UbuntuHelp:PostfixDKIM-Filter | {{#if: | :}}PostfixDKIM-Filter}}/sr | • {{#if: UbuntuHelp:PostfixDKIM-Filter|српски / srpski| [[::PostfixDKIM-Filter/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixDKIM-Filter | UbuntuHelp:PostfixDKIM-Filter | {{#if: | :}}PostfixDKIM-Filter}}/sv | • {{#if: UbuntuHelp:PostfixDKIM-Filter|svenska| [[::PostfixDKIM-Filter/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixDKIM-Filter | UbuntuHelp:PostfixDKIM-Filter | {{#if: | :}}PostfixDKIM-Filter}}/th | • {{#if: UbuntuHelp:PostfixDKIM-Filter|ไทย| [[::PostfixDKIM-Filter/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixDKIM-Filter | UbuntuHelp:PostfixDKIM-Filter | {{#if: | :}}PostfixDKIM-Filter}}/tr | • {{#if: UbuntuHelp:PostfixDKIM-Filter|Türkçe| [[::PostfixDKIM-Filter/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixDKIM-Filter | UbuntuHelp:PostfixDKIM-Filter | {{#if: | :}}PostfixDKIM-Filter}}/vi | • {{#if: UbuntuHelp:PostfixDKIM-Filter|Tiếng Việt| [[::PostfixDKIM-Filter/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixDKIM-Filter | UbuntuHelp:PostfixDKIM-Filter | {{#if: | :}}PostfixDKIM-Filter}}/yue | • {{#if: UbuntuHelp:PostfixDKIM-Filter|粵語| [[::PostfixDKIM-Filter/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixDKIM-Filter | UbuntuHelp:PostfixDKIM-Filter | {{#if: | :}}PostfixDKIM-Filter}}/zh | • {{#if: UbuntuHelp:PostfixDKIM-Filter|中文| [[::PostfixDKIM-Filter/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixDKIM-Filter | UbuntuHelp:PostfixDKIM-Filter | {{#if: | :}}PostfixDKIM-Filter}}/zh-hans | • {{#if: UbuntuHelp:PostfixDKIM-Filter|中文(简体)| [[::PostfixDKIM-Filter/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixDKIM-Filter | UbuntuHelp:PostfixDKIM-Filter | {{#if: | :}}PostfixDKIM-Filter}}/zh-hant | • {{#if: UbuntuHelp:PostfixDKIM-Filter|中文(繁體)| [[::PostfixDKIM-Filter/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:PostfixDKIM-Filter|:PostfixDKIM-Filter|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :PostfixDKIM-Filter/zh | | {{#ifexist: PostfixDKIM-Filter/zh | | {{#ifeq: {{#titleparts:PostfixDKIM-Filter|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:PostfixDKIM-Filter|1|-1|}} | zh | | }}
Introduction
DKIM-Filter implements a Sendmail Mail Filter (Milter) for the DomainKeys Identified Mail (DKIM) standard. DKIM provides a way for senders to confirm their identity when sending email by adding a cryptographic signature to the headers of the message. The dkim-milter implements both signing and verification.
Installation
The dkim-filter
package is available in the Universe repository. See InstallingSoftware for details on using package managers and enabling repositories.
Configuration
As of Postfix version 2.3 the Sendmail version 8 milter protocol has been supported.
DKIM-Filter
The main configuration options for DKIM-Filter are placed in /etc/dkim-filter.conf
. To configure DKIM-Filter to only verify messages edit the file and uncomment the following lines:
Mode v X-Header yes On-BadSignature reject
Note: the X-Header line isn't strictly necessary, but having DKIM-Filter add a line to the message header can help in debugging problems. After configuring DKIM-Filter start the service:
sudo /etc/init.d/dkim-filter start
Postfix
Now Postfix needs to be configured to filter messages using the DKIM-Filter daemon. To configure Postfix from a terminal enter the following:
sudo postconf -e 'smtpd_milters = inet:localhost:8891'
Then restart Postfix to enable the new configuration:
sudo /etc/init.d/postfix restart
Troubleshooting
The best way to figure out problems with Postfix is to check the log files. Using the tail command you can see new log messages in real time:
tail -f /var/log/mail.log
Another way to make sure DKIM-Filter is working correctly is to enable the X-Header option as noted above. You will then be able to see the DKIM authentication results.
Note: this guide has been tested on Ubuntu 7.10 (Gutsy Gibbon).