Configuration of email for gpbackup
search cancel

Configuration of email for gpbackup

book

Article ID: 296816

calendar_today

Updated On:

Products

VMware Tanzu Greenplum

Issue/Introduction

How to specify "SMTP host" and "From" address in the email sent by gpbackup.

Environment

Product Version: 6.20

Resolution

The gpbackup utility will send an email as specified in the gp_email_contacts.yaml configuration file.
See Configuring Email Notification for details on the file format and details.

It is not possible to specify the SMTP host or the From address in the configuration file.
The gpbackup utility uses "sendmail" to send the email. This means that sendmail needs to be configured on the master host.
NOTE: Consult local host administrator before committing any of the changes below to ensure they do not violate any local configuration rules.

The files related to sendmail configuration are found in /etc/postfix/ directory.

To specify the "SMTP host":

Change /etc/postfix/main.cf adding

relayhost = <IPaddress>:<port>.

To specify the "From" address:

Change /etc/postfix/main.cf adding:

smtp_header_checks = regexp:/etc/postfix/header_checks

Change /etc/postfix/header_checks adding:

/From:gpadmin.*/ REPLACE From: [email protected]