[Dovecot] deliver rewrites envelop-sender
Gerhard Wiesinger
lists at wiesinger.com
Sun Jan 7 20:07:55 UTC 2007
Hello!
I'm the author of the procmail patch for dovecot's deliver program.
You can specify -f <envelope sender> with dovecot deliver when I remember
correctly.
DELIVER_PROGRAM="/usr/libexec/dovecot/deliver -m \$BOXNAME -d \$RECIPIENT -f SOMETHING_ELSE -c /etc/dovecot.conf"
(Can't remember whether there was a variable for the from user or not,
when yes you can specify the from user, too.
)
When you need any help feel free to contact me.
BTW: The First from line is only the mbox delimiter and really has no
effect on the Mail headers. I also have MAILER-DAEMON in the From line
without any problems at all. So this is IHMO only cosmetic.
@Timo:
Running /usr/libexec/dovecot/deliver (without any parameters waiting for
stdin) and pressing Ctrl-C => Core dump with dovecot 1.0rc17.
Grüße aus Wien :-)
Ciao,
Gerhard
--
http://www.wiesinger.com/
On Sun, 7 Jan 2007, Ralf Becker wrote:
> Hello,
>
> we are currently using sendmail, procmail, uwimap and qpopper. We are
> planing to replace uwimap and qpopper with dovecot. Which seems to be a
> very good idea :-)
> But: Sendmail and Procmail will not be replaced.
>
> Now I've realized that deliver rewrites existing "From <....> ..."
> header lines to ">From <...> ..." and adds it's own "From "-line.
>
> Example:
> --------
> My procmailrc end with
> :0
> | deliver -d beckerr
>
> Mails are deliver to my INBOX, but
>
> * From beckerr at fh-trier.de Sun Jan 07 17:37:43 2007
> * Received: ...
> * From: ...
>
> is rewritten to
>
> * From MAILER-DAEMON Sun Jan 07 17:37:44 2007
> * > From beckerr at fh-trier.de Sun Jan 07 17:37:43 2007
> * Received: ...
> * From: ...
>
> Is there a (simple) way to prevent deliver from doing so?
>
> OR
>
> In case "-f <envelop sender>" is not given, could deliver
> 1) read the envelop sender address from the "From <...>" line,
> 2) remove the line and
> 3) add it's own using the formally extracted sender address?
>
> This sounds best for me and would cover the problem most effective...
>
> BTW:
>
> I've found the "dovecot deliver patch for procmail" and it looks really
> good (http://dovecot.org/pipermail/dovecot/2006-July/014656.html), but
> it seems to me, that the "From " line problem is solved by optionally
> removing the whole line, so deliver would use it's own default "From
> MAILER-DAEMON "-line ... and this in fact the problem
>
>
> Regards, Ralf
>
> --
> ______________________________________________________________________
>
> Dipl.-Inform. (FH) Ralf Becker Rechenzentrum (r/ft) der FH Trier
> (Network|Mail|Web|Firewall) University of applied sciences
> Administrator Schneidershof, D-54293 Trier
>
> Mail: beckerr at fh-trier.de Fon: +49 651 8103 499
> WWW: http://www.fh-trier.de/~beckerr Fax: +49 651 8103 214
> PGP: http://www.fh-trier.de/~beckerr/pgp ICQ: <available>
> ______________________________________________________________________
>
> Wenn Gott gewollt haette, dass E-Mail in HTML geschrieben wuerden,
> endeten Gebete traditionell mit </amen>. (Tom Listen)
>
>
More information about the dovecot
mailing list