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
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]