Control Web Panel

WebPanel => CentOS-WebPanel Bugs => Topic started by: zeejdeej on May 26, 2020, 10:40:50 AM

Title: monit is trying to send emails to root@localhost
Post by: zeejdeej 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
Title: Re: monit is trying to send emails to root@localhost
Post by: Nazgile on May 26, 2020, 10:45:53 AM
CWP SETTINGS->Edit Settings->Admin Email: + forward server email
Title: Re: monit is trying to send emails to root@localhost
Post by: Nazgile on May 26, 2020, 10:47:35 AM
or nano /etc/monitrc

set alert your@domain.tld
Title: Re: monit is trying to send emails to root@localhost
Post by: zeejdeej 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
Title: Re: monit is trying to send emails to root@localhost
Post by: Nazgile on May 26, 2020, 10:58:35 AM
yes =) always restart after any changes.
Title: Re: monit is trying to send emails to root@localhost
Post by: zeejdeej 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?
Title: Re: monit is trying to send emails to root@localhost
Post by: Sandeep on May 26, 2020, 11:10:17 AM
yes it will send from root@hostname to your email id