<html 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-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.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>
</head>
<body lang="EN-GB" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<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"><spacewalk-list-bounces@redhat.com> on behalf of "P.Cookson@bham.ac.uk" <P.Cookson@bham.ac.uk><br>
<b>Reply-To: </b>"spacewalk-list@redhat.com" <spacewalk-list@redhat.com><br>
<b>Date: </b>Thursday, 2 May 2019 at 15:19<br>
<b>To: </b>"spacewalk-list@redhat.com" <spacewalk-list@redhat.com><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"><span style="mso-fareast-language:EN-GB">Regards</span><o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-GB"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-GB">Philip Cookson</span><o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-GB">Linux Administrator</span><o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-GB">IT Services </span>
<o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-GB">ERI Building</span><o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-GB">Edgbaston</span><o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-GB">Birmingham</span><o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-GB">B15 2TT</span><o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-GB"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-GB">Tel: 0121 414 4731</span><o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-GB">Email: p.cookson@bham.ac.uk</span><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</body>
</html>