<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Message: 10<br>
Date: Wed, 3 Sep 2014 05:57:49 +0000<br>
From: Dietmar Maurer <<a href="mailto:dietmar@proxmox.com">dietmar@proxmox.com</a>><br>
To: Stanislav German-Evtushenko <<a href="mailto:ginermail@gmail.com">ginermail@gmail.com</a>>,<br>
"<a href="mailto:pve-devel@pve.proxmox.com">pve-devel@pve.proxmox.com</a>" <<a href="mailto:pve-devel@pve.proxmox.com">pve-devel@pve.proxmox.com</a>><br>
Subject: Re: [pve-devel] [PATCH] GUI: add new email_from option to<br>
datacenter.cfg<br>
Message-ID:<br>
<<a href="mailto:24E144B8C0207547AD09C467A8259F755D0F7FFB@lisa.maurer-it.com">24E144B8C0207547AD09C467A8259F755D0F7FFB@lisa.maurer-it.com</a>><br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
> - $data .= "FROM: <root\@$hostname>\n";<br>
> + $data .= "FROM: <$mailfrom>\n";<br>
<br>
Would you mind to explain why you need that?<br>
<br>
IMHO, <root\@$hostname> is less confusing, because it shows the real host name.<br></blockquote><div><br></div><div>Hi Dietmar,<br><br></div><div>You are right, it is less confusing but not always possible.<br></div>
<div>Sometimes SMTP servers are not in our control and it is not possible to sent an email from non-existing domain or non-existing email.<br></div><div>The solution is:<br></div><div>- change mailfrom so something that can be accepted<br>
</div><div>- add relayhost=your_restricted_smtp_relay<br><br></div><div>Changing relayhost was easy but changing mailfrom was not possible without this patch.<br></div><div><br></div><div>Best regards,<br></div><div>Stanislav<br>
</div></div></div></div>