I've finally got everything playing nicely with Postfix. Apparently, TMDA-CGI was not written to use Postfix (by default). So for the sake of the archives (and maybe this would be a candidate for addition to the FAQ?), here's how I pulled this all off:
First, my machine config. Running Mandrake Linux (various versions), multiple domains, but all user accounts are local machine accounts - not virtual ones. Using Procmail for delivery, POP3 for mail retieval.
TMDA is in /usr/local/tmda, and TMDA-CGI is in /usr/local/tmda-cgi.
Relevant Postfix main.cf mods: ============================== mailbox_command = /usr/bin/procmail -a "$EXTENSION" recipient_delimiter = - propagate_unmatched_extensions = canonical, virtual, forward
TMDA Config: /etc/tmdarc: ========================= MAIL_TRANSFER_AGENT = "postfix" DELIVERY = "|/usr/bin/procmail -f $SENDER ~/.procmailrc-tmda" RECIPIENT_DELIMITER = "-" LOGFILE_DEBUG = "/var/log/tmda.log" PRIMARY_ADDRESS_MATCH = 0 CONFIRM_APPEND = os.path.expanduser("~/.tmda/lists/whitelist") PENDING_RELEASE_APPEND = os.path.expanduser("~/.tmda/lists/whitelist") PENDING_WHITELIST_APPEND = os.path.expanduser("~/.tmda/lists/whitelist")
TMDA Default Messages: ====================== /usr/local/tmda/templates/bounce, confirm_request.txt, confirm_accept.txt: (changed all "recipient_address" to "CONFIRM_ADDRESS") This got rid of the wrong hostname problem.
=-=-=-=-=-=-=-=-=-=-=-=-
TMDA-CGI Mods:
Apache: /etc/httpd/conf/httpd.conf: ================================== ScriptAliasMatch ^/cgi-bin/tmda.cgi /var/www/cgi-bin/tmda.cgi Alias /display /usr/local/tmda-cgi/display
TMDA-CGI user files: ==================== 1. Delete the .qmail* stuff in /usr/local/tmda-cgi/skel/install and uninstall. 2. Create /usr/local/tmda-cgi/skel/install/.forward:
|/usr/local/tmda/bin/tmda-filter
3. Create /usr/local/tmda-cgi/skel/install/.tmdarc:
import os HOSTNAME = "%(ShortUrlDom)s" CONFIRM_ADDRESS = "%(User)[EMAIL PROTECTED](ShortUrlDom)s"
4. Change this one line in /usr/local/tmda-cgi/skel/install/anomalies:
REAL_ONLY = [".forward", ".tmdarc"]
=-=-=--=-=-=-=-=-=-==-=-=-=-=-=-=-=-==-=-=
Install notes for TMDA-CGI:
1. Filename to save binary file: /var/www/cgi-bin/tmda.cgi 2. Which virtual user stub: None All other parameters are defaults.
=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-
Note that this does not take care of renaming your old .procmailrc file to .procmailrc-tmda. It also does not handle removal of TMDA from the user account.
Any input welcome!
Bob
_____________________________________________ tmda-users mailing list ([EMAIL PROTECTED]) http://tmda.net/lists/listinfo/tmda-users
