个人工具

“UbuntuHelp:PostfixDKIM-Filter”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(新页面: {{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的版本

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).