-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello!
I have an iki.fi ("forever.fi") mail forwarding service, which forwards
my mail to a server. I get the mail from the server by fetchmail.
During this procedure, the envelope receiver address is lost. iki.fi
uses sendmail as a forwarder :-(
I made a short c-program that scans the mail, looks for every
"Received:" header and checks if it has "for" in it. If it has, it
copies the email address written after it.
My ".forward" :
"| ~/.tmda/xtmdaheader | /usr/local/tmda/bin/tmda-filter"
When all the headers are scanned (first empty line), it adds a custom
header "X-TMDA-Recipient:" with the last found email address. Added
address is the last "Received for", so I assume it is the first
envelope receiver address.
In my TMDA configuration, I have
RECIPIENT_HEADER = "X-TMDA-Recipient"
It works. At least it looks like working.
What are the risks? Can something go wrong?
Can I do it in any other way? I'd like to receive my mail directly to my
computer, but that's not possible. I have an ADSL, but the university
blocks port 25 :-(
If anyone is interested in getting the C-code, I can mail/post/upload
it.
BTW.. thanks for the TMDA. It is suberb!
BTW.. is there any possibility to use gpg to check for a signature and
let all signed mails through? Of course, I could use procmail..
- --
Hannu K.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE/VO/8uA3ghgc3fUsRAkZYAJ4rjWBpfJgbbaGdHkf69niiEjeinwCfZ9j9
BKnoy1rMAXp5VhteEGcw3X0=
=dJ3C
-----END PGP SIGNATURE-----
_________________________________________________
tmda-workers mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-workers