-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello!
I'v been using TMDA with fetchmail for a while now and I thought
someone could be interested in installing it. Here is a description
what I needed to do.
The source file for xtmdaheader.c is not long, only 2kb, so I might
consider posting (I read this mailing list throught gmane) here or to
tmda.devel. Until that, feel free to ask it by mail.
If there is someone willing to integrate this to tmda and translate it
to Python, please do it. I have never coded with Pyhtone earlier, but
it seems to be quite easily learned language, I'll consider making
that by myself.
This document is far from perfect, so if you have any suggestions,
please mail me.
Here is the howto:
- ----------------------------------------
How to use TMDA with fetchmail
This document explains how to install TMDA to work with fetchmail.
I only explain things that should be made differently from normal
TMDA configuration; please read the TMDA documentation first!
My MTA is postfix, but I quess this should be easily converted to
work with other MTA's also. You need c-compiler to do this (unless
someone will translate the xtmdaheader.c to python...). My TMDA
version is 1.0
1. Install fetchmail.
2. Install TMDA
3. Compile the xtmdaheader.c file and copy the result to your
preferred directory. I copied it to ~/.tmda
4. when feeding the mail to TMDA, feed it first throught xtmdaheader.
With other MTA's, this might be different. This is how to do it in
postfix:
In .forward - file, instead of using
"| /path/to/bin/tmda-filter"
use
"| ~/.tmda/xtmdaheader | /path/to/bin/tmda-filter"
5. Add the following lines (insert your own data when applicaple)
to your ~/.tmda/config. Use the hostname of your email address,
not your local hostname.
Recipient header is needed, because the recipient information is lost
with fetchmail. xtmdaheader extracts this from the mail headers.
Email addresses are needed, because your local email address will
propably not be the same than the address fetchmail gets the mail to.
- ----------------------------
RECIPIENT_HEADER = "X-RecFor-Recipient"
CONFIRM_ADDRESS = "[EMAIL PROTECTED]"
USERNAME = "username"
HOSTNAME = "domain.xxx"
FULLNAME = "Surname Lastname"
- ----------------------------
6. Optionally you can patch the tmda source; With the original
source, the emails that are released from the pending queue will
go to another round on the outside word. This does not stop it
from working, but it adds some (minimal) overhead to email servers.
Also mail is delayed a bit; you will not get the
released mail until the next fetchmail check.
By patching the TMDA, the mail won't get the extra round and you
get the mail immediately when it is released from the pending queue.
And here is the patch:
- --------------
In the TMDA/Pending.Py, class Message: Change the line
self.recipient = self.msgobj.get('x-tmda-recipient')
to
self.recipient = self.msgobj.get('delivered-to')
- ---------------
In the bin/tmda-rfilter, in function def release_pending, change
the line
recipient = msg.get('x-tmda-recipient')
to
recipient = msg.get('delivered-to')
- ---------------
Remember to compile the source by running compileall...
That should be it. I have been happily using this for almost a year!
- ----------------------------------------
- --
Send replies to:
[EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQE/+tNguA3ghgc3fUsRAkpWAJsEbynGXK99HgwDdwNujgJcIpvsLACgnN+M
5TElG9L2erdXr2M0BSjbz7E=
=VvZu
-----END PGP SIGNATURE-----
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users