[pve-devel] [PATCH 1/2] GUI: add new email_from option to datacenter.cfg

Dietmar Maurer dietmar at proxmox.com
Thu Sep 4 11:10:24 CEST 2014


> Just adopt your patch and set '-f $mailfrom' inside pvemailforward.pl.
> The mail from header is not really relevant for mail delivery, so I am not sure if
> we need/want to change it at all?
> 
> This just won't look beautiful :) 

A beautiful solution would be if your mailer accept mails from root@<host>? 

> Also it would matter for those who filter emails
> in their email clients by the From field.
> What about this? I've checked with manual substitution for $mailfrom and this
> seems to work as expected.
> open(CMD, "|procmail -f $mailfrom | sendmail -bm -N never -f $mailfrom
> $mailto") ||

I would simply keep the functionality from your patch instead. Just set the envelope sender
in pvemailforward.pl. IMHO, the from field should be set by the application which generates the mail.



More information about the pve-devel mailing list