Re: [Spacewalk-list] Mail Notifications
Think this could have been (very) summarised as. "If Spacewalk notification emails are appearing from dev-null@localhost.domain (and therefore queueing) and you would like the address to be a valid one for your organization, include the web.default_mail_from variable and appropriate value in /etc/rhn/rhn.conf" Now done that and waiting to see if future notifications get through to me. Regards Phil -Original Message- From: spacewalk-list-boun...@redhat.com On Behalf Of v...@spamcop.net Sent: 03 May 2019 14:19 To: spacewalk-list@redhat.com Subject: Re: [Spacewalk-list] Mail Notifications On 03.05.19 10:58, p.cook...@bham.ac.uk wrote: > The from address for the notification emails is > dev-null@localhost.domain <mailto:dev-null@localhost.domain> and these > just queue up. The dev-null address is the default: web.default_mail_from = Spacewalk > 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. What exactly is "no difference"? You don't write your exact configuration but only write about "default_mail_from" and not "web.default_mail_from". Thus: Does it still use the dev-null address as from address or does it use the correct from address you have set but it's still not working? Are you sure you have set the correct variable "web.default_mail_from"? > However, I’ll check with owners of mail relay, as has been suggested > separately. Well, sending mails with "localhost" as sender domain is generally not a good idea, unless it all stays local anyway... Cheers, Gerald > > Best regards > > Phil > > *From:*spacewalk-list-boun...@redhat.com > *On Behalf Of *Graeme Fowler > *Sent:* 02 May 2019 15:39 > *To:* spacewalk-list@redhat.com > *Subject:* Re: [Spacewalk-list] Mail Notifications > > 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. > > 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. > > At Loughborough we set default_mail_from to be root@hostname.domain > <mailto:root@hostname.domain> – so something like: > > default_mail_from = r...@dev-spacewalk-instance.birmingham.ac.uk > <mailto:r...@dev-spacewalk-instance.birmingham.ac.uk> > > (noting that the hostname/domain must resolve in your DNS!) > > Graeme > > *From: * <mailto:spacewalk-list-boun...@redhat.com>> on behalf of > "p.cook...@bham.ac.uk <mailto:p.cook...@bham.ac.uk>" > mailto:p.cook...@bham.ac.uk>> > *Reply-To: *"spacewalk-list@redhat.com > <mailto:spacewalk-list@redhat.com>" <mailto:spacewalk-list@redhat.com>> > *Date: *Thursday, 2 May 2019 at 15:19 > *To: *"spacewalk-list@redhat.com <mailto:spacewalk-list@redhat.com>" > mailto:spacewalk-list@redhat.com>> > *Subject: *[Spacewalk-list] Mail Notifications > > Good afternoon > > I have *Spacewalk 2.8* installed on a *RHEL 7.6* system with *Postfix* > configured to use our *own mail relay*. 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. > > I can see the following type of errors in */var/log/maillog* (hostname > etc made anonymous): > > May 2 14:34:50 postfix/smtp[45681]: 422EAE2C60: > to=@, relay=[]:25, delay=409786, > delays=409781/0.03/5/0.02, dsn=4.0.0, status=deferred (host > relay= name>[] said: 451 Temporary local problem - please try later > (in reply to RCPT TO command)) > > 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 *web.default_mail_from*, in */etc/rhn/rhn.conf*, but I’m not sure > what it actually needs to be set to. > > Regards > > Philip Cookson > > Linux Administrator > > IT Services > > ERI Building > > Edgbaston > > Birmingham > > B15 2TT > > Tel: 0121 414 4731 > > Email: p.cook...@bham.ac.uk <mailto:p.cook...@bham.ac.uk> > > > ___ > Spacewalk-list mailing list > Spacewalk-list@redhat.com > https://www.redhat.com/mailman/listinfo/spacewalk-list > ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list
Re: [Spacewalk-list] Mail Notifications
On 03.05.19 10:58, p.cook...@bham.ac.uk wrote: The from address for the notification emails is dev-null@localhost.domain <mailto:dev-null@localhost.domain> and these just queue up. The dev-null address is the default: web.default_mail_from = Spacewalk 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. What exactly is "no difference"? You don't write your exact configuration but only write about "default_mail_from" and not "web.default_mail_from". Thus: Does it still use the dev-null address as from address or does it use the correct from address you have set but it's still not working? Are you sure you have set the correct variable "web.default_mail_from"? However, I’ll check with owners of mail relay, as has been suggested separately. Well, sending mails with "localhost" as sender domain is generally not a good idea, unless it all stays local anyway... Cheers, Gerald Best regards Phil *From:*spacewalk-list-boun...@redhat.com *On Behalf Of *Graeme Fowler *Sent:* 02 May 2019 15:39 *To:* spacewalk-list@redhat.com *Subject:* Re: [Spacewalk-list] Mail Notifications 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. 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. At Loughborough we set default_mail_from to be root@hostname.domain <mailto:root@hostname.domain> – so something like: default_mail_from = r...@dev-spacewalk-instance.birmingham.ac.uk <mailto:r...@dev-spacewalk-instance.birmingham.ac.uk> (noting that the hostname/domain must resolve in your DNS!) Graeme *From: *<mailto:spacewalk-list-boun...@redhat.com>> on behalf of "p.cook...@bham.ac.uk <mailto:p.cook...@bham.ac.uk>" mailto:p.cook...@bham.ac.uk>> *Reply-To: *"spacewalk-list@redhat.com <mailto:spacewalk-list@redhat.com>" <mailto:spacewalk-list@redhat.com>> *Date: *Thursday, 2 May 2019 at 15:19 *To: *"spacewalk-list@redhat.com <mailto:spacewalk-list@redhat.com>" mailto:spacewalk-list@redhat.com>> *Subject: *[Spacewalk-list] Mail Notifications Good afternoon I have *Spacewalk 2.8* installed on a *RHEL 7.6* system with *Postfix* configured to use our *own mail relay*. 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. I can see the following type of errors in */var/log/maillog* (hostname etc made anonymous): May 2 14:34:50 postfix/smtp[45681]: 422EAE2C60: to=@, relay=[]:25, delay=409786, delays=409781/0.03/5/0.02, dsn=4.0.0, status=deferred (host relay=name>[] said: 451 Temporary local problem - please try later (in reply to RCPT TO command)) 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 *web.default_mail_from*, in */etc/rhn/rhn.conf*, but I’m not sure what it actually needs to be set to. Regards Philip Cookson Linux Administrator IT Services ERI Building Edgbaston Birmingham B15 2TT Tel: 0121 414 4731 Email: p.cook...@bham.ac.uk <mailto:p.cook...@bham.ac.uk> ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list
Re: [Spacewalk-list] Mail Notifications
Hi Graeme Thanks for your response. If I send a test email the from address is root@hostname.domain<mailto:root@hostname.domain> and these appear in my inbox immediately. The from address for the notification emails is dev-null@localhost.domain<mailto:dev-null@localhost.domain> and these just queue up. 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. However, I’ll check with owners of mail relay, as has been suggested separately. Best regards Phil From: spacewalk-list-boun...@redhat.com On Behalf Of Graeme Fowler Sent: 02 May 2019 15:39 To: spacewalk-list@redhat.com Subject: Re: [Spacewalk-list] Mail Notifications 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. 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. At Loughborough we set default_mail_from to be root@hostname.domain<mailto:root@hostname.domain> – so something like: default_mail_from = r...@dev-spacewalk-instance.birmingham.ac.uk<mailto:r...@dev-spacewalk-instance.birmingham.ac.uk> (noting that the hostname/domain must resolve in your DNS!) Graeme From: mailto:spacewalk-list-boun...@redhat.com>> on behalf of "p.cook...@bham.ac.uk<mailto:p.cook...@bham.ac.uk>" mailto:p.cook...@bham.ac.uk>> Reply-To: "spacewalk-list@redhat.com<mailto:spacewalk-list@redhat.com>" mailto:spacewalk-list@redhat.com>> Date: Thursday, 2 May 2019 at 15:19 To: "spacewalk-list@redhat.com<mailto:spacewalk-list@redhat.com>" mailto:spacewalk-list@redhat.com>> Subject: [Spacewalk-list] Mail Notifications Good afternoon I have Spacewalk 2.8 installed on a RHEL 7.6 system with Postfix configured to use our own mail relay. 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. I can see the following type of errors in /var/log/maillog (hostname etc made anonymous): May 2 14:34:50 postfix/smtp[45681]: 422EAE2C60: to=@, relay=[]:25, delay=409786, delays=409781/0.03/5/0.02, dsn=4.0.0, status=deferred (host relay=[] said: 451 Temporary local problem - please try later (in reply to RCPT TO command)) 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 web.default_mail_from, in /etc/rhn/rhn.conf, but I’m not sure what it actually needs to be set to. Regards Philip Cookson Linux Administrator IT Services ERI Building Edgbaston Birmingham B15 2TT Tel: 0121 414 4731 Email: p.cook...@bham.ac.uk<mailto:p.cook...@bham.ac.uk> ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list
Re: [Spacewalk-list] Mail Notifications
On 02.05.19 16:16, p.cook...@bham.ac.uk wrote: Good afternoon I have *Spacewalk 2.8* installed on a *RHEL 7.6* system with *Postfix* configured to use our *own mail relay*. 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. I can see the following type of errors in */var/log/maillog* (hostname etc made anonymous): May 2 14:34:50 postfix/smtp[45681]: 422EAE2C60: to=@, relay=[]:25, delay=409786, delays=409781/0.03/5/0.02, dsn=4.0.0, status=deferred (host relay=name>[] said: 451 Temporary local problem - please try later (in reply to RCPT TO command)) Your relay says that there is a temporary local problem on your relay. First place to look is into the mail logs on your relay and find out what problem it is. Until you know the problem it's pretty pointless to guess what it might be and what might fix the problem. 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 *web.default_mail_from*, in */etc/rhn/rhn.conf*, but I’m not sure what it actually needs to be set to. You should know what your mail relay needs to process the email. So you should know what you need to set. So find out what the problem is on your mail relay and then you most likely know what's wrong or missing. Then you have to either fix your relay or spacewalk or both, depending on what it is... Cheers, Gerald Regards Philip Cookson Linux Administrator IT Services ERI Building Edgbaston Birmingham B15 2TT Tel: 0121 414 4731 Email: p.cook...@bham.ac.uk ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list
Re: [Spacewalk-list] Mail Notifications
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. 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. At Loughborough we set default_mail_from to be root@hostname.domain<mailto:root@hostname.domain> – so something like: default_mail_from = r...@dev-spacewalk-instance.birmingham.ac.uk<mailto:r...@dev-spacewalk-instance.birmingham.ac.uk> (noting that the hostname/domain must resolve in your DNS!) Graeme From: on behalf of "p.cook...@bham.ac.uk" Reply-To: "spacewalk-list@redhat.com" Date: Thursday, 2 May 2019 at 15:19 To: "spacewalk-list@redhat.com" Subject: [Spacewalk-list] Mail Notifications Good afternoon I have Spacewalk 2.8 installed on a RHEL 7.6 system with Postfix configured to use our own mail relay. 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. I can see the following type of errors in /var/log/maillog (hostname etc made anonymous): May 2 14:34:50 postfix/smtp[45681]: 422EAE2C60: to=@, relay=[]:25, delay=409786, delays=409781/0.03/5/0.02, dsn=4.0.0, status=deferred (host relay=[] said: 451 Temporary local problem - please try later (in reply to RCPT TO command)) 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 web.default_mail_from, in /etc/rhn/rhn.conf, but I’m not sure what it actually needs to be set to. Regards Philip Cookson Linux Administrator IT Services ERI Building Edgbaston Birmingham B15 2TT Tel: 0121 414 4731 Email: p.cook...@bham.ac.uk ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list
[Spacewalk-list] Mail Notifications
Good afternoon I have Spacewalk 2.8 installed on a RHEL 7.6 system with Postfix configured to use our own mail relay. 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. I can see the following type of errors in /var/log/maillog (hostname etc made anonymous): May 2 14:34:50 postfix/smtp[45681]: 422EAE2C60: to=@, relay=[]:25, delay=409786, delays=409781/0.03/5/0.02, dsn=4.0.0, status=deferred (host relay=[] said: 451 Temporary local problem - please try later (in reply to RCPT TO command)) 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 web.default_mail_from, in /etc/rhn/rhn.conf, but I'm not sure what it actually needs to be set to. Regards Philip Cookson Linux Administrator IT Services ERI Building Edgbaston Birmingham B15 2TT Tel: 0121 414 4731 Email: p.cook...@bham.ac.uk ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list