特殊:Badtitle/NS100:PostfixGreylisting
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/PostfixGreylisting }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:PostfixGreylisting | UbuntuHelp:PostfixGreylisting | {{#if: | :}}PostfixGreylisting}}/af | • {{#if: UbuntuHelp:PostfixGreylisting|Afrikaans| [[::PostfixGreylisting/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixGreylisting | UbuntuHelp:PostfixGreylisting | {{#if: | :}}PostfixGreylisting}}/ar | • {{#if: UbuntuHelp:PostfixGreylisting|العربية| [[::PostfixGreylisting/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixGreylisting | UbuntuHelp:PostfixGreylisting | {{#if: | :}}PostfixGreylisting}}/az | • {{#if: UbuntuHelp:PostfixGreylisting|azərbaycanca| [[::PostfixGreylisting/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixGreylisting | UbuntuHelp:PostfixGreylisting | {{#if: | :}}PostfixGreylisting}}/bcc | • {{#if: UbuntuHelp:PostfixGreylisting|جهلسری بلوچی| [[::PostfixGreylisting/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixGreylisting | UbuntuHelp:PostfixGreylisting | {{#if: | :}}PostfixGreylisting}}/bg | • {{#if: UbuntuHelp:PostfixGreylisting|български| [[::PostfixGreylisting/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixGreylisting | UbuntuHelp:PostfixGreylisting | {{#if: | :}}PostfixGreylisting}}/br | • {{#if: UbuntuHelp:PostfixGreylisting|brezhoneg| [[::PostfixGreylisting/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixGreylisting | UbuntuHelp:PostfixGreylisting | {{#if: | :}}PostfixGreylisting}}/ca | • {{#if: UbuntuHelp:PostfixGreylisting|català| [[::PostfixGreylisting/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixGreylisting | UbuntuHelp:PostfixGreylisting | {{#if: | :}}PostfixGreylisting}}/cs | • {{#if: UbuntuHelp:PostfixGreylisting|čeština| [[::PostfixGreylisting/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixGreylisting | UbuntuHelp:PostfixGreylisting | {{#if: | :}}PostfixGreylisting}}/de | • {{#if: UbuntuHelp:PostfixGreylisting|Deutsch| [[::PostfixGreylisting/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixGreylisting | UbuntuHelp:PostfixGreylisting | {{#if: | :}}PostfixGreylisting}}/el | • {{#if: UbuntuHelp:PostfixGreylisting|Ελληνικά| [[::PostfixGreylisting/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixGreylisting | UbuntuHelp:PostfixGreylisting | {{#if: | :}}PostfixGreylisting}}/es | • {{#if: UbuntuHelp:PostfixGreylisting|español| [[::PostfixGreylisting/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixGreylisting | UbuntuHelp:PostfixGreylisting | {{#if: | :}}PostfixGreylisting}}/fa | • {{#if: UbuntuHelp:PostfixGreylisting|فارسی| [[::PostfixGreylisting/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixGreylisting | UbuntuHelp:PostfixGreylisting | {{#if: | :}}PostfixGreylisting}}/fi | • {{#if: UbuntuHelp:PostfixGreylisting|suomi| [[::PostfixGreylisting/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixGreylisting | UbuntuHelp:PostfixGreylisting | {{#if: | :}}PostfixGreylisting}}/fr | • {{#if: UbuntuHelp:PostfixGreylisting|français| [[::PostfixGreylisting/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixGreylisting | UbuntuHelp:PostfixGreylisting | {{#if: | :}}PostfixGreylisting}}/gu | • {{#if: UbuntuHelp:PostfixGreylisting|ગુજરાતી| [[::PostfixGreylisting/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixGreylisting | UbuntuHelp:PostfixGreylisting | {{#if: | :}}PostfixGreylisting}}/he | • {{#if: UbuntuHelp:PostfixGreylisting|עברית| [[::PostfixGreylisting/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixGreylisting | UbuntuHelp:PostfixGreylisting | {{#if: | :}}PostfixGreylisting}}/hu | • {{#if: UbuntuHelp:PostfixGreylisting|magyar| [[::PostfixGreylisting/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixGreylisting | UbuntuHelp:PostfixGreylisting | {{#if: | :}}PostfixGreylisting}}/id | • {{#if: UbuntuHelp:PostfixGreylisting|Bahasa Indonesia| [[::PostfixGreylisting/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixGreylisting | UbuntuHelp:PostfixGreylisting | {{#if: | :}}PostfixGreylisting}}/it | • {{#if: UbuntuHelp:PostfixGreylisting|italiano| [[::PostfixGreylisting/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixGreylisting | UbuntuHelp:PostfixGreylisting | {{#if: | :}}PostfixGreylisting}}/ja | • {{#if: UbuntuHelp:PostfixGreylisting|日本語| [[::PostfixGreylisting/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixGreylisting | UbuntuHelp:PostfixGreylisting | {{#if: | :}}PostfixGreylisting}}/ko | • {{#if: UbuntuHelp:PostfixGreylisting|한국어| [[::PostfixGreylisting/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixGreylisting | UbuntuHelp:PostfixGreylisting | {{#if: | :}}PostfixGreylisting}}/ksh | • {{#if: UbuntuHelp:PostfixGreylisting|Ripoarisch| [[::PostfixGreylisting/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixGreylisting | UbuntuHelp:PostfixGreylisting | {{#if: | :}}PostfixGreylisting}}/mr | • {{#if: UbuntuHelp:PostfixGreylisting|मराठी| [[::PostfixGreylisting/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixGreylisting | UbuntuHelp:PostfixGreylisting | {{#if: | :}}PostfixGreylisting}}/ms | • {{#if: UbuntuHelp:PostfixGreylisting|Bahasa Melayu| [[::PostfixGreylisting/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixGreylisting | UbuntuHelp:PostfixGreylisting | {{#if: | :}}PostfixGreylisting}}/nl | • {{#if: UbuntuHelp:PostfixGreylisting|Nederlands| [[::PostfixGreylisting/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixGreylisting | UbuntuHelp:PostfixGreylisting | {{#if: | :}}PostfixGreylisting}}/no | • {{#if: UbuntuHelp:PostfixGreylisting|norsk| [[::PostfixGreylisting/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixGreylisting | UbuntuHelp:PostfixGreylisting | {{#if: | :}}PostfixGreylisting}}/oc | • {{#if: UbuntuHelp:PostfixGreylisting|occitan| [[::PostfixGreylisting/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixGreylisting | UbuntuHelp:PostfixGreylisting | {{#if: | :}}PostfixGreylisting}}/pl | • {{#if: UbuntuHelp:PostfixGreylisting|polski| [[::PostfixGreylisting/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixGreylisting | UbuntuHelp:PostfixGreylisting | {{#if: | :}}PostfixGreylisting}}/pt | • {{#if: UbuntuHelp:PostfixGreylisting|português| [[::PostfixGreylisting/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixGreylisting | UbuntuHelp:PostfixGreylisting | {{#if: | :}}PostfixGreylisting}}/ro | • {{#if: UbuntuHelp:PostfixGreylisting|română| [[::PostfixGreylisting/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixGreylisting | UbuntuHelp:PostfixGreylisting | {{#if: | :}}PostfixGreylisting}}/ru | • {{#if: UbuntuHelp:PostfixGreylisting|русский| [[::PostfixGreylisting/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixGreylisting | UbuntuHelp:PostfixGreylisting | {{#if: | :}}PostfixGreylisting}}/si | • {{#if: UbuntuHelp:PostfixGreylisting|සිංහල| [[::PostfixGreylisting/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixGreylisting | UbuntuHelp:PostfixGreylisting | {{#if: | :}}PostfixGreylisting}}/sq | • {{#if: UbuntuHelp:PostfixGreylisting|shqip| [[::PostfixGreylisting/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixGreylisting | UbuntuHelp:PostfixGreylisting | {{#if: | :}}PostfixGreylisting}}/sr | • {{#if: UbuntuHelp:PostfixGreylisting|српски / srpski| [[::PostfixGreylisting/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixGreylisting | UbuntuHelp:PostfixGreylisting | {{#if: | :}}PostfixGreylisting}}/sv | • {{#if: UbuntuHelp:PostfixGreylisting|svenska| [[::PostfixGreylisting/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixGreylisting | UbuntuHelp:PostfixGreylisting | {{#if: | :}}PostfixGreylisting}}/th | • {{#if: UbuntuHelp:PostfixGreylisting|ไทย| [[::PostfixGreylisting/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixGreylisting | UbuntuHelp:PostfixGreylisting | {{#if: | :}}PostfixGreylisting}}/tr | • {{#if: UbuntuHelp:PostfixGreylisting|Türkçe| [[::PostfixGreylisting/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixGreylisting | UbuntuHelp:PostfixGreylisting | {{#if: | :}}PostfixGreylisting}}/vi | • {{#if: UbuntuHelp:PostfixGreylisting|Tiếng Việt| [[::PostfixGreylisting/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixGreylisting | UbuntuHelp:PostfixGreylisting | {{#if: | :}}PostfixGreylisting}}/yue | • {{#if: UbuntuHelp:PostfixGreylisting|粵語| [[::PostfixGreylisting/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixGreylisting | UbuntuHelp:PostfixGreylisting | {{#if: | :}}PostfixGreylisting}}/zh | • {{#if: UbuntuHelp:PostfixGreylisting|中文| [[::PostfixGreylisting/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixGreylisting | UbuntuHelp:PostfixGreylisting | {{#if: | :}}PostfixGreylisting}}/zh-hans | • {{#if: UbuntuHelp:PostfixGreylisting|中文(简体)| [[::PostfixGreylisting/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PostfixGreylisting | UbuntuHelp:PostfixGreylisting | {{#if: | :}}PostfixGreylisting}}/zh-hant | • {{#if: UbuntuHelp:PostfixGreylisting|中文(繁體)| [[::PostfixGreylisting/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:PostfixGreylisting|:PostfixGreylisting|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :PostfixGreylisting/zh | | {{#ifexist: PostfixGreylisting/zh | | {{#ifeq: {{#titleparts:PostfixGreylisting|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:PostfixGreylisting|1|-1|}} | zh | | }}
Introduction
Greylisting is a spam-reduction technique which can be very effective. It works by delaying mail from untrusted senders. If the sending mail server is standards-compliant, it will re-send the e-mail, and the server will accept it. Most spam mailers, however, don't re-send the mail, and so the spam is blocked. Servers that re-send the mail will be added to a white list, and will not be delayed in future. This means that the first e-mail from a given sender will be delayed, but subsequent ones will not be.
Installation
Simply install the postgrey
package and any dependencies. Note that it is in the universe
repository. See the InstallingSoftware page for more information on installing packages.
Configuration
Run the following command to configure Postfix to use Postgrey:
sudo postconf -e 'smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination,check_policy_service inet:127.0.0.1:60000'
Then run the following to reload the Postfix configuration:
sudo /etc/init.d/postfix reload
In Use
Once Postgrey is running, entries will start to appear in /var/log/mail.log
. To see them, run sudo grep -i greylisted /var/log/mail.log
. Entries will look something like:
Sep 14 10:44:57 mailserver postfix/smtpd[17049]: NOQUEUE: reject: RCPT from mail.server.com[1.2.3.4]: 450 <[email protected]>: Recipient address rejected: Greylisted for 300 seconds (see http://isg.ee.ethz.ch/tools/postgrey/help/somedomain.com.html); from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mail.server.com>
In addition, e-mails that have been greylisted will have an X-Greylist
header, eg:
X-Greylist: delayed 1201 seconds by postgrey-1.24 at mail.server.com; Fri, 14 Sep 2007 11:04:58 BST