<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Sep 4, 2014 at 1:10 PM, Dietmar Maurer <span dir="ltr"><<a href="mailto:dietmar@proxmox.com" target="_blank">dietmar@proxmox.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="">> Just adopt your patch and set '-f $mailfrom' inside <a href="http://pvemailforward.pl" target="_blank">pvemailforward.pl</a>.<br>
> The mail from header is not really relevant for mail delivery, so I am not sure if<br>
> we need/want to change it at all?<br>
><br>
> This just won't look beautiful :)<br>
<br>
</div>A beautiful solution would be if your mailer accept mails from root@<host>?<br>
<div class=""><br>
> Also it would matter for those who filter emails<br>
> in their email clients by the From field.<br>
> What about this? I've checked with manual substitution for $mailfrom and this<br>
> seems to work as expected.<br>
> open(CMD, "|procmail -f $mailfrom | sendmail -bm -N never -f $mailfrom<br>
> $mailto") ||<br>
<br>
</div>I would simply keep the functionality from your patch instead. Just set the envelope sender<br>
in <a href="http://pvemailforward.pl" target="_blank">pvemailforward.pl</a>. IMHO, the from field should be set by the application which generates the mail.<br>
<br>
</blockquote></div><br>I will update, test and come back.<br></div></div>