Re: XMail + mlmmj

Davide Libenzi <[email protected]>
Newsgroups gmane.mail.xmail.general
Message-ID <[email protected]>
On Thu, 8 Apr 2010, Sabahattin Gucukoglu wrote:

> Success!
> 
> Mlmmj requires that the Return-Path and Delivered-To headers show the envelope return and forward addresses.  In XMail create a user, alias user+* to it, and then use a script from mailproc.tab to add these headers (removing any existing ones) and append the spool file's contents past "<<MAIL-DATA>>".  That's it!  This does VERP all by itself, no requirement of the MTA (though it doesn't mention it in the docs, duh).
> 
> If you were using my TMDA tip, the script modified for use with TMDA and mlmmj called from TMDA is below.  This script is improved: it uses fcopy to do zero-copy between disk and pipe and it handles headers in-line.
> 
> Feature requests of XMail: SMTP VERP extension, delivery to pipes for Unix mailers!
> 
> Cheers,
> Sabahattin
> 
> #!/usr/bin/tclsh
> set user "sgucukoglu"
> 
> set first [string first "-" [lindex $argv 1]]
> if {$first!=-1} {
> incr first
> set last [string last "@" [lindex $argv 1]]
> if {$last==-1} {
> set env(EXT) [string range [lindex $argv 1] $first end]
> } else {
> incr last -1
> set env(EXT) [string range [lindex $argv 1] $first $last]
> }
> } else {
> set env(EXT) ""
> }
> 
> set env(HOME) "/home/$user"
> set env(SENDER) [lindex $argv 0]
> set env(RECIPIENT) [lindex $argv 1]

Oh, TCL!  Is likely 10+ years I haven't seen a line of it ;)


- Davide


_______________________________________________
xmail mailing list
[email protected]
http://xmailserver.org/mailman/listinfo/xmail
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.