monit is trying to send emails to root@localhost

Started by zeejdeej, May 26, 2020, 10:40:50 AM

Previous topic - Next topic

zeejdeej

hello,

monit is trying to send email alerts to root@localhost and all these emails are being rejected due to the following reason:

May 26 12:26:17 server.baringslaw.group postfix/smtpd[8636]: NOQUEUE: reject: RCPT from server.baringslaw.group[::1]: 504 5.5.2
<root@localhost>: Recipient address rejected: need fully-qualified address; from=<monit@server.baringslaw.group> to=<root@localhost>
proto=ESMTP helo=<server.baringslaw.group>

message reject detail
---------------------
  RCPT
    Recipient address rejected: need fully-qualified address (total: 289)
         289   root@localhost


how to change the monit reporting email address ?

Regards,

Zeeshan  Javed

Nazgile

CWP SETTINGS->Edit Settings->Admin Email: + forward server email

Nazgile

or nano /etc/monitrc

set alert your@domain.tld

zeejdeej

CWP SETTINGS->Edit Settings->Admin Email: + forward server email  was already set to my domain email but it was still sending emails to root@localhost


this seems the be the right place to change root@localhost , thanks for sharing.... do i have to restart monit service after this ?

nano /etc/monitrc

set alert your@domain.tld

Nazgile


zeejdeej

cwp pro is also generating system email alerts to root@my-server-hostname ..... any idea where to modify that address?

Sandeep

yes it will send from root@hostname to your email id