Hi masters,
I am using TMDA in the following way
|->Maildir
Postfix->Maildrop->
|->TMDA->Maildir
I mean, the postfix program (using virtual domains + Mysql support)
sends the e-mails to the maildrop program, invoked by master.cf:
maildrop unix - n n - - pipe
flags=DRhu user=maildrop argv=/usr/bin/env SENDER=${sender}
RECIPIENT=${recipient} EXTENSION=${extension} /usr/local/bin/maildrop
-w 90 -d [EMAIL PROTECTED] ${extension} ${recipient} ${user} ${nexthop}
If the TMDA is not configured to the user, maildrop will deliver the
e-mail in the maildir checking the MAILDIRQUOTA
If the TMDA is configured, the message is directed to the tmda-filter and
then delivers the e-mail do the maildir
DELIVERY = "/home/vmail/domain.com/user/Maildir/"
The TMDA software is working just fine, but I am looking for a way to
reuse the maildrop to check the MAILDIRQUOTA after the TMDA filtering
action.
My TMDA configuration file looks like this:
PRIMARY_ADDRESS_MATCH = 2
MAIL_TRANSFER_AGENT = "postfix"
RECIPIENT_DELIMITER = "+"
ACTION_INCOMING = "confirm"
ACTION_OUTGOING = "dated[=timeout_interval]"
TERSE_SUMMARY_HEADERS = ["from_name", "subject", "date"]
CONFIRM_APPEND = "/home/vmail/domain.com/user/.tmda/lists/whitelist_confirmed"
PENDING_WHITELIST_APPEND =
"/home/vmail/domain.com/user/.tmda/lists/whitelist_confirmed"
PENDING_BLACKLIST_APPEND = "/home/vmail/domain.com/user/.tmda/lists/blacklist"
LOGFILE_DEBUG = "/home/vmail/domain.com/user/.tmda/logs/debug"
TEMPLATE_DIR = "/home/vmail/domain.com/user/.tmda/templates"
PENDING_DIR = "/home/vmail/domain.com/user/.tmda/pending"
CRYPT_KEY_FILE ="/home/vmail/domain.com/user/.tmda/crypt_key"
RESPONSE_DIR ="/home/vmail/domain.com/user/.tmda/response"
FILTER_INCOMING = "/home/vmail/domain.com/user/.tmda/filters/incoming"
FILTER_OUTGOING = "/home/vmail/domain.com/user/.tmda/filters/outgoing"
MAIL_TRANSPORT ="sendmail"
#DELIVERY = "/home/vmail/seveninternet.com.br/thiago/Maildir/"
#DELIVERY = "|/usr/local/bin/maildrop -A 'ANTISPAM: YES' -w 90 -d %s%s %s %s %s
%s" % (os.environ["USER"], os.environ["NEXTHOP"], os.environ["RECIPIENT"],
os.environ["USER"], os.environ["EXTENSION"], os.environ["NEXTHOP"])
#DELIVERY = "|/usr/local/bin/maildrop"
#DELIVERY = "|/usr/local/bin/maildrop -w 90 -d "
DELIVERY = "/home/vmail/domain.com/user/Maildir/"
ALLOW_MODE_640 = 1
CONFIRM_ADDRESS = "[EMAIL PROTECTED]"
os.umask(027)
I think that the problem remains on the environment paramters like
os.environ["USER"], they will not work with in my case. So I am using
the full path to files/diretory in my ./tmda/config.
How should I configure the "DELIVERY" to reuse maildrop in these
conditions? Any ideias? Another way to verify quota?
Sorry about the poor English, thanks.
_____________________________________________
tmda-users mailing list ([email protected])
http://tmda.net/lists/listinfo/tmda-users