[csw-devel] SF.net SVN: gar:[11511] csw/mgar/pkg/mimedefang/trunk/files

bonivart at users.sourceforge.net bonivart at users.sourceforge.net
Sun Nov 7 00:58:25 CET 2010


Revision: 11511
          http://gar.svn.sourceforge.net/gar/?rev=11511&view=rev
Author:   bonivart
Date:     2010-11-06 23:58:24 +0000 (Sat, 06 Nov 2010)

Log Message:
-----------
mimedefang: add files

Added Paths:
-----------
    csw/mgar/pkg/mimedefang/trunk/files/README.CSW
    csw/mgar/pkg/mimedefang/trunk/files/cswusergroup
    csw/mgar/pkg/mimedefang/trunk/files/mimedefang

Added: csw/mgar/pkg/mimedefang/trunk/files/README.CSW
===================================================================
--- csw/mgar/pkg/mimedefang/trunk/files/README.CSW	                        (rev 0)
+++ csw/mgar/pkg/mimedefang/trunk/files/README.CSW	2010-11-06 23:58:24 UTC (rev 11511)
@@ -0,0 +1,21 @@
+CONFIGURATION (from the README file)
+-------------
+Add the following line to your Sendmail "m4" configuration file.
+
+INPUT_MAIL_FILTER(`mimedefang', `S=unix:/var/spool/MIMEDefang/mimedefang.sock, F
+=T, T=S:360s;R:360s;E:15m')
+
+(If you keep your spool directory elsewhere, use its location instead of
+/var/spool/MIMEDefang/mimedefang.sock)
+
+The "T=..." equate increases the default timeouts for milter, which are
+way too small.
+
+To configure your filter, you have to edit the file
+`/etc/mail/mimedefang-filter'. This is a Perl source file, so you have
+to know Perl. Go ahead and read the man pages mimedefang(8),
+mimedefang.pl(8) and mimedefang-filter(5). There are some sample
+filters in the examples directory.
+
+-- 
+Peter Bonivart, OpenCSW, 2010-11-06

Added: csw/mgar/pkg/mimedefang/trunk/files/cswusergroup
===================================================================
--- csw/mgar/pkg/mimedefang/trunk/files/cswusergroup	                        (rev 0)
+++ csw/mgar/pkg/mimedefang/trunk/files/cswusergroup	2010-11-06 23:58:24 UTC (rev 11511)
@@ -0,0 +1 @@
+defang:defang:CSW MimeDefang:/false:/bin/false:::NP

Added: csw/mgar/pkg/mimedefang/trunk/files/mimedefang
===================================================================
--- csw/mgar/pkg/mimedefang/trunk/files/mimedefang	                        (rev 0)
+++ csw/mgar/pkg/mimedefang/trunk/files/mimedefang	2010-11-06 23:58:24 UTC (rev 11511)
@@ -0,0 +1,161 @@
+# This is where you customize some settings of your MimeDefang installation so
+# you don't have to edit the scripts themselves as they will be replaced during
+# upgrades.
+#
+# Peter Bonivart, OpenCSW
+
+# The spool directory
+# SPOOLDIR=/var/spool/MIMEDefang
+
+# The socket used by mimedefang to communicate with sendmail
+# SOCKET=$SPOOLDIR/mimedefang.sock
+
+# If you want to log messages like "Filter time is 156ms" to syslog,
+# uncomment the next line
+# LOG_FILTER_TIME=yes
+
+# Run the multiplexor and filters as this user, not root.  RECOMMENDED
+MX_USER=defang
+
+# If you want to keep spool directories around if the filter fails,
+# set the next one to yes
+# KEEP_FAILED_DIRECTORIES=no
+
+# If "yes", turn on the multiplexor relay checking function
+# MX_RELAY_CHECK=no
+
+# If "yes", turn on the multiplexor HELO checking function
+# MX_HELO_CHECK=no
+
+# If "yes", turn on the multiplexor sender checking function
+# MX_SENDER_CHECK=no
+
+# If "yes", turn on the multiplexor recipient checking function
+# MX_RECIPIENT_CHECK=no
+
+# Ask for filter_tick to be called every 60 seconds
+# MX_TICK_REQUEST=60
+
+# Run three tick bands
+# MX_TICK_PARALLEL=3
+
+# Set to yes if you want the multiplexor to log events to syslog
+MX_LOG=yes
+
+# Number of slaves reserved for connections from loopback.  Use -1
+# for default behaviour, 0 to allow loopback connections to queue,
+# or >0 to reserve slaves for loopback connections
+LOOPBACK_RESERVED_CONNECTIONS=-1
+
+# Set to path name of UNIX-domain socket if you want to use MIMEDefang
+# with Sendmail's SOCKETMAP map type
+# MX_MAP_SOCKET=$SPOOLDIR/map.sock
+
+# Set to yes if you want to use an embedded Perl interpreter
+# MX_EMBED_PERL=yes
+
+# Set to the syslog facility.  Also set $SyslogFacility in your filter
+# SYSLOG_FACILITY=mail
+
+# The multiplexor does not start all slaves at the same time.  Instead,
+# it starts one slave every MX_SLAVE_DELAY seconds when the system is idle.
+# (If the system is busy, the multiplexor starts slaves as incoming mail
+# requires attention.)
+# MX_SLAVE_DELAY=3
+
+# The next setting is an absolute limit on slave activation.  The multiplexor
+# will NEVER activate a slave within MX_MIN_SLAVE_DELAY seconds of another.
+# The default of zero means that the multiplexor will activate slaves as
+# quickly as necessary to keep up with incoming mail.
+# MX_MIN_SLAVE_DELAY=0
+
+# Set to yes if you want the multiplexor to log stats in
+# /var/log/mimdefang/md-stats  The /var/log/mimedefang directory
+# must exist and be writable by the user you're running MIMEDefang as.
+# MX_STATS=no
+
+# Set to yes if you want the stats file flushed after each entry
+# MX_FLUSH_STATS=no
+
+# Set to yes if you want the multiplexor to log stats to syslog
+# MX_STATS_SYSLOG=no
+
+# The socket used by the multiplexor
+# MX_SOCKET=$SPOOLDIR/mimedefang-multiplexor.sock
+
+# Maximum # of requests a process handles
+# MX_REQUESTS=200
+
+# Minimum number of processes to keep.  The default of 0 is probably
+# too low; we suggest 2 instead.
+MX_MINIMUM=2
+
+# If you want to allow the multiplexor to queue new connections when
+# all slaves are busy, set this to yes
+ALLOW_NEW_CONNECTIONS_TO_QUEUE=yes
+
+# Maximum number of processes to run (mail received while this many
+# processes are running is rejected with a temporary failure, so be
+# wary of how many emails you receive at a time).  This applies only
+# if you DO use the multiplexor.  The default value of 2 is probably
+# too low; we suggest 10 instead
+MX_MAXIMUM=10
+
+# Uncomment to log slave status; it will be logged every
+# MX_LOG_SLAVE_STATUS_INTERVAL seconds
+# MX_LOG_SLAVE_STATUS_INTERVAL=30
+
+# Uncomment next line to have busy slaves send status updates to the
+# multiplexor.  NOTE: Consumes one extra file descriptor per slave, plus
+# a bit of CPU time.
+# MX_STATUS_UPDATES=yes
+
+# Limit slave processes' resident-set size to this many kilobytes.  Default
+# is unlimited.
+# MX_MAX_RSS=10000
+
+# Limit total size of slave processes' memory space to this many kilobytes.
+# Default is unlimited.
+# MX_MAX_AS=30000
+
+# If you want to use the "notification" facility, set the appropriate port.
+# See the mimedefang-notify man page for details.
+# MX_NOTIFIER=inet:4567
+
+# Number of seconds a process should be idle before checking for
+# minimum number and killed
+# MX_IDLE=300
+
+# Limit number of concurrent recipok requests on a per-domain basis.
+# 0 means no limit
+MX_RECIPOK_PERDOMAIN_LIMIT=0
+
+# Number of seconds a process is allowed to scan an email before it is
+# considered dead.  The default is 30 seconds; we suggest 600.
+MX_BUSY=600
+
+# Multiplexor queue size -- default is 0 (no queueing)
+# MX_QUEUE_SIZE=10
+
+# Multiplexor queue timeout -- default is 30 seconds
+# MX_QUEUE_TIMEOUT=30
+
+# Any extra arguments to mimedefang
+# MD_EXTRA="-a auth_author"
+
+# SUBFILTER specifies which filter rules file to use
+# SUBFILTER=/etc/mail/mimedefang-filter
+
+# I question why I'm including this as I see no real need for it
+# but in the interests of a flexible implementation, here goes!
+#
+# DO NOT CHANGE THIS VARIABLE LIGHTLY!!
+#
+# The filtering program used by mimedefang or the multiplexor. This is
+# *NOT* a replacement for /etc/mail/mimedefang-filter!!!  It replaces
+# the entire mimedefang perl program, /usr/bin/mimedefang.pl and allows
+# a unique filtering agent to be used.  Read mimedefang-protocol man
+# page VERY carefully before you attempt to change this!
+#
+# FILTER=/usr/bin/mimedefang.pl
+


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list