<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US">Hi Graeme<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US">Thanks for your response.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US">If I send a test email the from address is
<a href="mailto:root@hostname.domain">root@hostname.domain</a> and these appear in my inbox immediately.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US">The from address for the notification emails is
<a href="mailto:dev-null@localhost.domain">dev-null@localhost.domain</a> and these just queue up.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US">I’ve tried setting the default_mail_from to either of the 2 from addresses, and re-started Spacewalk services, but it makes no difference.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US">However, I’ll check with owners of mail relay, as has been suggested separately.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US">Best regards<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US">Phil<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> spacewalk-list-bounces@redhat.com <spacewalk-list-bounces@redhat.com>
<b>On Behalf Of </b>Graeme Fowler<br>
<b>Sent:</b> 02 May 2019 15:39<br>
<b>To:</b> spacewalk-list@redhat.com<br>
<b>Subject:</b> Re: [Spacewalk-list] Mail Notifications<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The error message you detail looks to me very much like an Exim response, not Postfix; your system looks to be accepting the locally-generated mail but the mail relay is struggling with it.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">If you’re not sending from a fully-qualified, verifiable sender address within your own institution’s email namespace(s) then you might well find the relay won’t accept the messages – although the 451 error implies that there’s something
 the relay can’t process rather than something it rejects on.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">At Loughborough we set default_mail_from to be <a href="mailto:root@hostname.domain">
root@hostname.domain</a> – so something like:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">default_mail_from = <a href="mailto:root@dev-spacewalk-instance.birmingham.ac.uk">
root@dev-spacewalk-instance.birmingham.ac.uk</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">(noting that the hostname/domain must resolve in your DNS!)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Graeme<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black"><<a href="mailto:spacewalk-list-bounces@redhat.com">spacewalk-list-bounces@redhat.com</a>> on behalf of "<a href="mailto:P.Cookson@bham.ac.uk">P.Cookson@bham.ac.uk</a>"
 <<a href="mailto:P.Cookson@bham.ac.uk">P.Cookson@bham.ac.uk</a>><br>
<b>Reply-To: </b>"<a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a>" <<a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a>><br>
<b>Date: </b>Thursday, 2 May 2019 at 15:19<br>
<b>To: </b>"<a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a>" <<a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a>><br>
<b>Subject: </b>[Spacewalk-list] Mail Notifications<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal">Good afternoon<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">I have <b>Spacewalk 2.8</b> installed on a <b>RHEL 7.6</b> system with
<b>Postfix</b> configured to use our <b>own mail relay</b>. If I send an email test, from the command line, to my personal email box I receive the email straightaway. However, I’m not receiving email Notifications, from Spacewalk, even though they are checked
 in the Users’ Preferences screen.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">I can see the following type of errors in <b>/var/log/maillog</b> (hostname etc made anonymous):<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">May  2 14:34:50 <hostname> postfix/smtp[45681]: 422EAE2C60: to=<user>@<address>, relay=<relay name>[<relay IP>]:25, delay=409786, delays=409781/0.03/5/0.02, dsn=4.0.0, status=deferred (host relay=<relay name>[<relay IP>] said:
<span style="color:red">451 Temporary local problem - please try later (in reply to RCPT TO command))</span><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Is there some Spacewalk configuration that needs to be done to enable it to utilise Postfix perhaps? As an example I’ve seen some references to
<b>web.default_mail_from</b>, in <b>/etc/rhn/rhn.conf</b>, but I’m not sure what it actually needs to be set to.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Regards<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Philip Cookson<o:p></o:p></p>
<p class="MsoNormal">Linux Administrator<o:p></o:p></p>
<p class="MsoNormal">IT Services <o:p></o:p></p>
<p class="MsoNormal">ERI Building<o:p></o:p></p>
<p class="MsoNormal">Edgbaston<o:p></o:p></p>
<p class="MsoNormal">Birmingham<o:p></o:p></p>
<p class="MsoNormal">B15 2TT<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Tel: 0121 414 4731<o:p></o:p></p>
<p class="MsoNormal">Email: <a href="mailto:p.cookson@bham.ac.uk">p.cookson@bham.ac.uk</a><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</body>
</html>