This guide is helpful to configure a REDCap application running on a Linux host to use an external SMTP/mail server for handling email exchange. This guide is using the myARCH REDCap VM as a guide, which is running CentOS 7 with the normal AMP stack on top of it. We will use the onboard Postfix mail server as a null email client, relaying all requests from the php mail() function to the email server. The following will be performed as 'root' from the command line of the REDCap server.
chown root:root /etc/postfix/sasl_passwd && chmod 600 /etc/postfix/sasl_passwd
postmap hash:/etc/postfix/sasl_passwd
smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options =
myhostname = <hostname-of-redcap-vm>
#$mydomain (commented out - this will revert to the domain portion of myhostname if specified)
myorigin = $mydomain
inet_interfaces = loopback-only
mydestination =
relayhost = <SMTP-server>:<SMTP-port>
postfix reload
Reference: Postfix configuration Parameters |
Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.
|