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 mySCILHS 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.
...
- Open the file /etc/postfix/main.cf and add/edit the following lines to look like the following:
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options =
- Also in /etc/postfix/main.cf, edit the following:
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>
- Reload Postfix with the new configuration:
postfix reload
...
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 5 |
---|
spaces | MYSCILHS |
---|
showSpace | false |
---|
sort | modified |
---|
showSpace | false |
---|
reverse | true |
---|
type | page |
---|
cql | label = "redcap" and type = "page" and space = "MYSCILHS" |
---|
labels | REDCap |
---|
|