Author Topic: monit is trying to send emails to root@localhost  (Read 5571 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
monit is trying to send emails to root@localhost
« on: May 26, 2020, 10:40:50 AM »
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

Offline
*
Re: monit is trying to send emails to root@localhost
« Reply #1 on: May 26, 2020, 10:45:53 AM »
CWP SETTINGS->Edit Settings->Admin Email: + forward server email

Offline
*
Re: monit is trying to send emails to root@localhost
« Reply #2 on: May 26, 2020, 10:47:35 AM »
or nano /etc/monitrc

set alert your@domain.tld

Offline
*
Re: monit is trying to send emails to root@localhost
« Reply #3 on: May 26, 2020, 10:52:33 AM »
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

Offline
*
Re: monit is trying to send emails to root@localhost
« Reply #4 on: May 26, 2020, 10:58:35 AM »
yes =) always restart after any changes.

Offline
*
Re: monit is trying to send emails to root@localhost
« Reply #5 on: May 26, 2020, 10:59:55 AM »
cwp pro is also generating system email alerts to root@my-server-hostname ..... any idea where to modify that address?

Offline
*****
Re: monit is trying to send emails to root@localhost
« Reply #6 on: May 26, 2020, 11:10:17 AM »
yes it will send from root@hostname to your email id