Page last updated: 21/10/2014 |
procmail
procmail is a mail delivery agent (MDA) capable of sorting incoming mail into various directories and filtering out spam messages. Procmail is stable, but no longer maintained.[1] Users who wish to use a maintained program are advised to use an alternative MDA, such as maildrop.
As superuser whilst logged in as
pi@raspberrypi
Download and install procmail
From command line in the directory /home/pi then use the following command
sudo apt-get install procmail
Next create the following directory structures:
/var/spool/svxlink/propagation_monitor/dxrobot
/var/spool/svxlink/propagation_monitor/vhfdx
From command line:
cd /var/spool/svxlink/propagation_monitor
then
mkdir dxrobot
mkdir vhfdx
NOTE: the directory /var/spool/svxlink/propagation_monitor
should already exist, having been created as part of the base SVXlink
installation...
Next create the script .procmailrc
From command line in the directory /home/svxlink then using the following
command
sudo nano .procmailrc copy the script below and
save...
# This is the configuration file for procmail that is used
to
# extract received propagation alerts into separate files.
# This is used by the PropagationMonitor SvxLink module.
# Store received propagation alerts here
MAILDIR=/var/spool/svxlink/propagation_monitor
# Log for procmail activity
#LOGFILE=$MAILDIR/procmail.log
# Enable more verbose logging. Good for debugging your procmailrc.
#VERBOSE=yes
# Put e-mails from the DXrobot (gooddx.net) in the folder below
:0
* ^From.*DXrobot
dxrobot
# Put e-mails from DXMAPS (dxmaps.com) in the folder below
:0
* ^From.*DXMAPS
vhfdx
# Send all other, non matching e-mails, to user root.
# Replace "!root" with "/dev/null" to throw non-matching
# e-mails away instead or comment both lines below out
# to just let non-matching e-mails pass through.
:0
/dev/null
See also procmail manpage