| Navigate Spew | Show Archives |
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
Close Archives
| Aromatherapy (56) | [RSS] |
| Bullshit (70) | [RSS] |
| Day to Day (214) | [RSS] |
| Journeys (13) | [RSS] |
| Projects (36) | [RSS] |
| Software (165) | [RSS] |
| Squirrel Thursday (53) | [RSS] |
| Technology (120) | [RSS] |
Web Syndication
About Spew
My education is in Computer Network Technologies. I use my free thought, when any thoughts are present, to write and produce content in a wide spectrum format flow. One day I may explain a method for accomplishing a task on a BSD operating system, or spewing about my latest Sandalwood acquisition, and other times I will keep my thoughts I put to the screen more personal and opinionated with my current gush of text in relation to my tempered mood.
BLOGS & Friends Pages
Cache Mania
Andean Trekker
Nature's Gift Blog
EINSTEIN@HOME FreeBSD
Team FreeBSD HOME
Team FreeBSD Stats Page
Join Team FreeBSD
Journeys
Geo Join
Geocaching Album
My Cache Stats
Links Visited Daily
Woot!
Hot Links
Worse Than Failure
Forever Geek
Neatorama
Engadget
Boing Boing
Gizmodo
Hack a Day
My Content and Media
My NTP Pool Contribution
My BOINC Statistics
Geeky, Funny & Strange
Sense for Content
Geo Join Travel
Love Ale
Info Female
Info Male
Receive One
Cache Blogs
I will assume you have a postfix installation that can receive incoming mail.
First, install milter spamassassin:
cd /usr/ports/mail/spamass-milter; make install; make clean
The rc script is located: /usr/local/etc/rc.d/spamass-milter Choose a socket location for Postfix. For example: /var/run/spamass-milter.sock
Edit /usr/local/etc/rc.d/spamass-milter and change the socket location to a secure location:
${spamass_milter_socket} could be changed at the bottom of this script too: : ${spamass_milter_socket="/var/run/spamass-milter.sock"}
We will create a user called "spam" for the socket USER and GROUP ownerships. Edit the following appropriately:
: ${spamass_milter_socket_owner="spam"}
: ${spamass_milter_socket_group="spam"}
: ${spamass_milter_socket_mode="664"}
The users root, spam, and postfix need access to this socket. in /etc/group add the user postfix to the group spam. Permissions for this socket type should be 664 rw rw r - rw for the user "spam" and rw for the group "spam" in which the user "postfix" is a member of. The socket is not world writable, so only those with these credentials can take advantage of the majority of this service and secure communication.
For future user allowances of personal mail spam training, you should use spamc and spamd. spamd will be run as root. The rc.d file is located here: /usr/local/etc/rc.d/sa-spamd Let's take a look at this and edit a few command line options.
The first spamd flag we want is -x which will disallow user configuration files. This can be suppressed, if you wish per user training, and call spamc from postfix with the user of the incoming e-mail address. For this demonstration, it will be used for a group of e-mail users.
The -u flag should be set to spam: -u spam, this sets the user name to spam. The -g parameter for the group is unneeded because of the UID GID hard coded association with the user "spam".
By default when adding "spam" as a user, the home directory should be /home/spam Now lets make sure spamd will use this directory for configuration even though spamd with spawned as root and will by default use /root The -H parameter specifies this: -H /home/spam
At this time we are training one spamassassin rule set with multiple e-mail addresses, so we will utilize "--virtual-config-dir". For example:--virtual-config-dir=/home/spam
So the command_args variable in the rc script should look something like this:
command_args="-x -d -u spam -H /home/spam --virtual-config-dir=/home/spam -r ${pidfile}"
Now make sure your postfix main.cf configuration file uses the smtpd milter:
smtpd_milters = unix:/var/run/spamass-milter.sock
This is an example of a basic idea for group users, and a start to multiple per recipient address configuration parameters and location manipulations.
Software  Projects  Article & Comments|
Add a Comment |
|---|
|
your e-mail address will NOT be shared |
|
Main Entry:   spew   Pronunciation:   \ˈspyü\
intransitive verb
Function: verb
Etymology: Middle English, from Old English spīwan; akin to Old High German spIwan to spit, Latin spuere, Greek ptyein   First Known Use: before 12th centurytransitive verb
- VOMIT
- to come forth in a flood or gush
- to ooze out as if under pressure : EXUDE
- VOMIT
- to send or cast forth with vigor or violence or in great quantity <a volcano spewing out ash> —often used with out —spew·er noun