I have been at this all day and just cant seem to figure out what I am 
doing wrong, so here is what I have done

I have installed tmda in /usr/share/tmda I 755'd the whole folder...user 
is root and group is root

The line define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail' is in my 
Sendmail config file

I am testing this on a user and in their home directory I have the 
following folders, subfolders and files

    -.tmda
       --filters
              -incoming
       --lists
              -blacklists
              -confirmed
              -whitelist
       --logs
              -debug
              -incoming
       --pending
       --responses
       -config (contents shown below)
       -crypt_key

In addition at the root of the users home directory I have .procmailrc 
with the following

# Uncomment this for users without valid shells.
SHELL=/bin/sh

# Set the necessary environment variables.
EXTENSION="$1"
:0
* EXTENSION ?? .
{
  DELIMITER="+"
}
RECIPIENT="[EMAIL PROTECTED]"
SENDER=`formail -x Return-Path | sed 's/[<>]//g;s/^[ ]*//'`

# Run the message through tmda-filter.
:0 w
| /usr/share/tmda/bin/tmda-filter

# Take the exit code from TMDA.
EXITCODE=$?

# TMDA takes care of final delivery
DEFAULT=/dev/null


My config file looks like this...

# -*- python -*-

# sample.config - Sample configuration file for TMDA.
#
# See http://tmda.net/config-vars.html for descriptions of all
# the available options.
#
# NOTE: ~/.tmda/config must be chmod 400 or chmod 600 !

#########################################################
# qmail/Courier required variables; required only for
# qmail/Courier users
#
# (none at this time)
#
#########################################################

#################################################################
# Non-qmail/Courier required variables; required only for
# non-qmail/Courier users
#
# Uncomment one line from each section.
#
# Please read http://tmda.net/config-vars.html for more information
# on these variables.
#################################################################

#MAIL_TRANSFER_AGENT = "exim"
#MAIL_TRANSFER_AGENT = "postfix"
MAIL_TRANSFER_AGENT = "sendmail"

#RECIPIENT_DELIMITER = "-"
RECIPIENT_DELIMITER = "+"

#DELIVERY = "~/Maildir/"
#DELIVERY = "~/Mailbox"
#DELIVERY = ":/var/mail/joeuser"
#DELIVERY = "|/usr/bin/maildrop"
DELIVERY = "|/usr/bin/procmail ~/.procmailrc-tmda"
#DELIVERY = "[EMAIL PROTECTED]"

######################################################################
# No other variables are required, but you may be interested in
# further customization.  See http://tmda.net/config-vars.html for
# more information on the other available configuration variables.
#
# Here are examples of some recommended configuration variables.
######################################################################

#CONFIRM_APPEND = os.path.expanduser("~/.tmda/lists/confirmed")
#LOGFILE_DEBUG = os.path.expanduser("~/.tmda/logs/debug")
LOGFILE_INCOMING = os.path.expanduser("~/.tmda/logs/incoming")
LOGFILE_OUTGOING = os.path.expanduser("~/.tmda/logs/outgoing")


My filters/incoming file has this

from-file ~/.tmda/lists/confirmed ok # or accept or deliver
from-file ~/.tmda/lists/whitelist ok # Master Whitelist
from-file ~/.tmda/lists/blacklist bounce #Master Blacklist


So far I have tried to use both Delivery to procmail and delivery to 
/var/spool/mail/username

I enable the .procmailrc file and then send an email and get this as a 
mail returned...

   ----- Transcript of session follows -----
procmail: Skipped "
"
procmail: Skipped "
"
procmail: Closing brace unexpected
procmail: Skipped "
"
/bin/sh: /bin/sh
: No such file or directory
procmail: Skipped "
"
procmail: Skipped "
"
/bin/sh: /usr/share/tmda/bin/tmda-filter
: No such file or directory
procmail: Error while writing to "/usr/share/tmda/bin/tmda-filter
"
procmail: Program failure (127) of "/usr/share/tmda/bin/tmda-filter
"
procmail: Skipped "
"
procmail: Skipped "
"
554 5.3.0 unknown mailer error 127

None of my users have /bin/sh they are all  /sbin/nologin

what am I doing wrong....



_____________________________________________
tmda-users mailing list (tmda-users@tmda.net)
http://tmda.net/lists/listinfo/tmda-users

Reply via email to