Hello R'twick,Miles,
At 7:01 AM -0700 10/15/03, you wrote, in part:
Hi miles, I have sucessfully installed tmda, tmda-cgi as well as ofmipd under plesk 6. But it should be same as psa 5. It requires some code manipulations to get tmda working with psa. My code changes are not too elegant but is working fine. If you haven't got it working yet, do let me know and I'll send you my changed versions of tmda and tmda-cgi with instructions.
I would very much like to see your solution. I've been banging my head against the wall on this for three days.
If you can improve the code do send me a copy :)
Will do.
Thanks!
Regards,
m i l e s
here's some info on what to do. I'm sending it to hte list in hope that some one else may find it helpfull.
1. The very first thing you have to do is edit /var/qmail/users/assign file. change the first letter to + from = (without this, qmail will not understand extension to mail ids like rtwick-dated or rtwick-confirm etc).
save it and run /var/qmail/bin/qmail_newu
You have to do this step whenever you add a new mail id through psa.
2. restart qmail and xinetd and you should be able to get confirmations getting into your mailbox and so every thing should work fine.
Make sure to setup HOSTNAME to your virtual server name
I have so far used tmda 0.84 and its working without any modification to code with the above setup.
Now if you want to use tmda-cgi then you need to make some changes.
1. download my stub program to get the user's home dir (/var/qmail/mailnames/domain.dom/user) from here http://tmda.utkalika.net/mods/stubs/psauserassign.py.txt . save it under your tmda-cgi's installation directory /stubs directory as psauserassign.py ( mine's at /usr/local/tmda-cgi/stubs/psauserassign.py)
2. compile tmda-cgi by running ./configure in tmda-cgi install dir
and pass psauseraasign as the Virtual user stub. (my configuration is as follows for a system wide implementation)
----------------------------------------------------------------
Where is the Python interpreter? (version 2.1+)
> /usr/bin/python2
When I compile the binary executable, where should I save it?
Enter the full path AND filename.
Generally, you will use the path to your webserver's cgi-bin directory, but it
can be stored elsewhere if you have your webserver configured to run CGI's in
other directories.
> /home/httpd/vhosts/tmda/index.cgi
Where did you install TMDA? For source installs, this is the directory where you unzipped the archive. You may enter a relative path (relative to the CWD) if you like. If you installed TMDA from an RPM, try: "/usr/lib/python2.2/site-packages". If you installed TMDA from a FreeBSD port, try: "/usr/local/lib/python2.2/site-packages". > ../tmda/
Where did you install tmda-cgi? This is typically the CWD. > /usr/local/tmda-cgi-0.11/
Would you like to override the default config file location? If so, enter a "formula" to specify where to look for the config file. This formula is just a path, but it can include the character "~". This character will be replaced by the user's name during execution. To use the default config file location, enter "None". > None
How should I authentication user logins? [file, program, remote, default]
"file" lets you specify a password file.
"program" lets you specify the path to a program such as checkpassword
"remote" lets you specify a protocol such as imap or pop3
"default" is similar to file, except it looks for password files in the default
locations.
> remote
What is the authentication URI? (protocol://host.domain.com[:port][/dn]) > pop3://localhost
What is the relative or absolute web path from CGI to display directory? This is discussed in the documentation at: http://tmda.sourceforge.net/tmda-cgi/compile.html#Display > /display
What mode should the CGI run in? [system-wide, single-user, no-su] > system-wide
Which virtual user stub and parameters should I use for locating virtual users?
If your system does not have any virtual users, enter "None".
> psauserassign /bin/grep ~ /var/qmail/users/assign
What real user name should I use when a virtual user logs in? > popuser
Where should I save temporary session files? Please enter a path and file prefix. > /tmp/TMDASession.
How long (in seconds) may a temporary session file be allowed to sit before it risks being cleaned up? > 300
What are the odds of cleanup I should use? (0.01 = 1%)
> 0.01
----------------------------------------------------------------
you are all set now. follow the tmda-cgi install guide to make and install tmda-cgi.
If you want to use tmda-ofmipd then it involves a lot more change.
1. download the modified tmda-ofmipd from here http://tmda.utkalika.net/mods/tmda-ofmipd.txt and save it as tmda-ofmipd under your tmda install dir/bin and chmod to 755 (mine's at /usr/local/tmda/bin/tmda-ofmipd)
2. download psa.py from here http://tmda.utkalika.net/mods/psa.py.txt and save it as psa.py under tmda install dir /contrib or where ever you want to keep it (mine's at /usr/local/tmda/contrib/psa.py ) and chmod to 755.
3. while running tmda-ofmipd, pass the following argument
-R pop3://localhost -P /usr/local/tmda/contrib/psa.py
(if using redhat and starting the server using /etc/init.d/tofmipd then put these parameters in /etc/sysconfig/tofmipd file .
Hope this works out for you. If you have any problem do let me know.
R'twick
_____________________________________________ tmda-users mailing list ([EMAIL PROTECTED]) http://tmda.net/lists/listinfo/tmda-users
