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

Stanislav German-Evtushenko ginermail at gmail.com
Wed Sep 3 08:12:24 CEST 2014


>
> Message: 10
> Date: Wed, 3 Sep 2014 05:57:49 +0000
> From: Dietmar Maurer <dietmar at proxmox.com>
> To: Stanislav German-Evtushenko <ginermail at gmail.com>,
>         "pve-devel at pve.proxmox.com" <pve-devel at pve.proxmox.com>
> Subject: Re: [pve-devel] [PATCH] GUI: add new email_from option to
>         datacenter.cfg
> Message-ID:
>         <24E144B8C0207547AD09C467A8259F755D0F7FFB at lisa.maurer-it.com>
> Content-Type: text/plain; charset="us-ascii"
>
> > -                 $data .= "FROM: <root\@$hostname>\n";
> > +                 $data .= "FROM: <$mailfrom>\n";
>
> Would you mind to explain why you need that?
>
> IMHO, <root\@$hostname> is less confusing, because it shows the real host
> name.
>

Hi Dietmar,

You are right, it is less confusing but not always possible.
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.
The solution is:
- change mailfrom so something that can be accepted
- add relayhost=your_restricted_smtp_relay

Changing relayhost was easy but changing mailfrom was not possible without
this patch.

Best regards,
Stanislav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.proxmox.com/pipermail/pve-devel/attachments/20140903/3d769000/attachment.htm>


More information about the pve-devel mailing list