postfix+maildrop+tmda virutal users not working.
"Thiago Lima" <[email protected]>
| Newsgroups | gmane.mail.spam.tmda.user |
|---|---|
| Message-ID | <[email protected]> |
Hi all.
Sorry to bother you guys, but I'm getting crazy with TMDA.
I Can't make TMDA to look for .tmda directory for virtual users.
What looks to me is that tmda-filter is not runnning the script to get the
virtual directory.
If I turn on a debug into the vpopmaildir.sh to write a logfile when it is
run I never get this output. So I believe that it never ran.
For the record. Everything is working fine. But I want a .tmda directory for
each of my virtual users not one for all.
My versions :
postfix-2.2.11-1 (auth by mysql)
maildrop-2.0.2-1 (auth by authlib + mysql)
tmda-1.1.9-1
Let me show my configs :
master.cf
maildrop unix - n n - - pipe flags=DRhu
user=pop argv=/usr/bin/maildrop -d ${user}@${nexthop<$%7Buser%7D@$%7Bnexthop>}
${extension} ${recipient} ${user} ${nexthop} ${sender}
maildroprc
# /etc/maildroprc
LOGNAME=tolower("$LOGNAME")
EXTENSION="$1"
RECIPIENT=tolower("$2")
USER=tolower("$3")
HOST=tolower("$4")
SENDER="$5"
DEFAULT="/var/spool/pop/$HOST/$USER/."
if ( "$EXTENSION" ne "" )
{
DELIMITER="+"
}
if (!$SENDER)
{
SENDER = "<>"
}
`test -e /var/spool/pop/$HOST`
if ( $RETURNCODE != 0 )
{
`mkdir /var/spool/pop/$HOST`
}
`test -e /var/spool/pop/$HOST/$USER`
if ( $RETURNCODE != 0 )
`maildirmake /var/spool/pop/$HOST/$USER`
`chmod -R 0700 /var/spool/pop/$HOST`
}
# pega as configuracoes do usuario
`test -f /var/spool/pop/.mailfilters/$LOGNAME`
if ( $RETURNCODE == 0 )
{
include "/var/spool/pop/.mailfilters/$LOGNAME"
}
if ( !/^Received-SPF: pass/ )
{
if ( $TMDA eq "Y" )
{
to "| /usr/bin/tmda-filter -S /usr/bin/vpopmail-vdir.sh"
}
}
to "/var/spool/pop/$HOST/$USER";
--------------------------------------------
I'm not using qmail so I wrote a stub for vpopmail (it is working for
tmda-cgi, but not for tmda)
cat /usr/bin/vpopmail-vdir.sh
#!/bin/sh
# my little debug
echo "args $1 $2 $3" > /tmp/vpoparg
echo "/var/spool/pop/$2/$1/"
this is the .tmda/config for the POP user (pop is my real unix user)
[root@localhost .tmda]# cat /var/spool/pop/.tmda/config
CGI_VIRTUALUSER = 1
PRIMARY_ADDRESS_MATCH = 2
MAIL_TRANSFER_AGENT = "postfix"
RECIPIENT_DELIMITER = "+"
DELIVERY = "~/%s/%s/" % (os.environ["HOST"], os.environ["USER"])
CONFIRM_APPEND = os.path.expanduser("~/.tmda/lists/confirmed")
BARE_APPEND = os.path.expanduser("~/.tmda/lists/whitelist")
LOGFILE_DEBUG = os.path.expanduser("~/.tmda/logs/debug")
LOGFILE_INCOMING = os.path.expanduser("~/.tmda/logs/incoming")
LOGFILE_OUTGOING = os.path.expanduser("~/.tmda/logs/outgoing")
CONFIRM_ACCEPT_NOTIFY = 0
WHYYYYY the ~ isn't been converted to the user virtual direcorryyy? I'm
getting MAD! 5 days working on it. I've read all posts in
the list and googled for it but I can't find the answer.
any tips or help will be very apreciatated and sorry for the poor english.