How to change the "From" address in Watch4net emails
search cancel

How to change the "From" address in Watch4net emails

book

Article ID: 304638

calendar_today

Updated On:

Products

VMware

Issue/Introduction

Symptoms:


How do I change the From address which appears in mails generated from Watch4net
How to configure the From address which appears in mails generated from Watch4Net

How to edit MAIL FROM with no-reply address to another email address for reports


emails are being rejected by the mail server
Unable to receive email from schedule report

Environment

VMware Smart Assurance - Watch4Net/M&R

Cause

The default value of the From address in Watch4net emails is no-reply@apgserver, but some mail servers may reject this value because "apgserver" is not a valid domain name.

Resolution

Use the mail.from Java system property to change the From address.

1) modify <BASEDIR>/bin/apg.properties by adding:

[email protected]

(Watch4net 5.x)
[email protected]
 

when using mail.from, all mail from reports will be coming from this address.

2) restart tomcat service:

<BASEDIR>/APG/bin/apg-tomcat-default stop
<BASEDIR>/APG/bin/apg-tomcat-default start


Additional Information

To change a Java system property, see 87185 .