All of lore.kernel.org
 help / color / mirror / Atom feed
From: Russell Coker <rcoker@redhat.com>
To: SE Linux <selinux@tycho.nsa.gov>
Subject: postgrey policy
Date: Tue, 3 Aug 2004 13:18:34 +1000	[thread overview]
Message-ID: <200408031318.34469.rcoker@redhat.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 593 bytes --]

Attached is policy for the postgrey daemon for grey-listing in Postfix.

Grey-listing means giving a 45x code in response to email the first time a 
particular IP address or combination of IP address and email address attempts 
to send mail to you.  Some minutes later the mail will be received.

Spam machines generally don't re-try so greylisting stops lots of spam, and as 
long as the delay is significantly less than 4 hours (usually only a few 
minutes) someone who sends legit email will never notice any difference.

-- 
http://apac.redhat.com/disclaimer
See above URL for disclaimer.

[-- Attachment #2: postgrey.fc --]
[-- Type: text/plain, Size: 276 bytes --]

# postgrey - postfix grey-listing server
/usr/sbin/postgrey	--	system_u:object_r:postgrey_exec_t
/var/run/postgrey\.pid	--	system_u:object_r:postgrey_var_run_t
/etc/postgrey(/.*)?		system_u:object_r:postgrey_etc_t
/var/lib/postgrey(/.*)?		system_u:object_r:postgrey_var_lib_t

[-- Attachment #3: postgrey.te --]
[-- Type: text/plain, Size: 703 bytes --]

#DESC postgrey - Postfix Grey-listing server
#
# Author:  Russell Coker <russell@coker.com.au>
# X-Debian-Packages: postgrey

daemon_domain(postgrey)

allow postgrey_t urandom_device_t:chr_file { getattr read };

# for perl
allow postgrey_t sbin_t:dir search;
allow postgrey_t usr_t:{ file lnk_file } { getattr read };
dontaudit postgrey_t usr_t:file ioctl;

allow postgrey_t { etc_t etc_runtime_t }:file { getattr read };
etcdir_domain(postgrey)

can_network(postgrey_t)
allow postgrey_t self:unix_stream_socket create_stream_socket_perms;
allow postgrey_t proc_t:file { getattr read };

allow postgrey_t self:capability { chown setuid };

var_lib_domain(postgrey)

allow postgrey_t tmp_t:dir getattr;

             reply	other threads:[~2004-08-03  3:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-03  3:18 Russell Coker [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-04-18  2:13 postgrey policy Russell Coker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200408031318.34469.rcoker@redhat.com \
    --to=rcoker@redhat.com \
    --cc=selinux@tycho.nsa.gov \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.