3 messages in net.sourceforge.lists.courier-maildrop[maildropl] Re: Request to amend mail...
FromSent OnAttachments
Matthias AndreeJun 2, 2002 6:36 am 
Juan Jose Rodriguez BuleoJun 4, 2002 8:56 am 
Matthias AndreeJun 5, 2002 2:25 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[maildropl] Re: Request to amend maildrop documentationActions...
From:Juan Jose Rodriguez Buleo (jrbu@di.uc3m.es)
Date:Jun 4, 2002 8:56:39 am
List:net.sourceforge.lists.courier-maildrop

Hi,

I'm using Postfix+courier-imap+maildrop-1.3.9.

When a user forwards his/her mail to a non-existent or error account, the error message remains in my server instead of send it to the $FROM that I pass as argument in the .mailfilter.

An example of my .mailfilter looks like this:

if (/.*/) { to "! -f \"$FROM\" jrbu@di.uc3m.es" }

If I change the maildomain @di to @blabla (Non-existent domain of Course :D) and I send a mail to the mail account with the mailfilter, maildrop catch the error of sendmail:

81F284225D 416 Tue Jun 4 17:43:35 ro@domain.uc3m.es (host smtp.uc3m.es[163.117.136.123] said: 450 <jrbu@blabla.uc3m.es>: Recipient address rejected: Domain not found) jrbu@blabla.uc3m.es

And it is enqueued in the postfix queue instead of send it to the sender...

If I do a postcat of the message, the field Errors-to:, Sender:, From: all of them are of the original sender account, but the message is still on my server!

Thanks, and excuse my poor english,

Matthias Andree wrote:

Hello,

I take the liberty to suggest that the maildropex or maildropfilter man page be amended.

While the maildropfilter man page says that the arguments of

to '!address'

are all passed to SENDMAIL, it is not explicit as to the envelope sender address. The user may desire to forward a mail while keeping the original envelope sender. Doing so is trivial, but not obvious to newbies.

The solution is:

to "!-f \"$FROM\" address"

(Of course, this also works with cc.)

So may I suggest that the paragraph

An expression that begins with an exclamation mark, "!" specifies a whitespace-delimited list of E-mail addresses to forward the message to. The program specified by the SENDMAIL variable is run as an external program, with the list of E-mail addresses provided as parameters to the program.

be changed to:

An expression that begins with an exclamation mark, "!" specifies a whitespace-delimited list of E-mail addresses to forward the message to. The program specified by the SENDMAIL variable is run as an external program, with the list of E-mail addresses provided as parameters to the program. So, if you wish to keep the original envelope sender intact, use something like:

to "!-f \"$FROM\" joe.@example.com"

Of course, you will have to adjust "joe.@example.com" to the real address where you want the mail forwarded.

(I am donating this documentation to Maildrop, permission to relicense under any Open Source Initiative approved license is herewith granted.)

Thanks a lot.

Sistemas UNIX Correo Electronico para Alumnos Servicio de Informatica Universidad Carlos III de Madrid (Leganes)