I use Ubuntu 16.04 with Bash, Nginx, and
sSMTP. On this environment I have 2 or more WordPress apps.
The basic configuration of
sSMTP allows it to route WordPress contact form emails from one app, into my personal email account (Gmail).
sudo cat /etc/ssmtp/ssmtp.conf:
root=MY_GMAIL_ADDRESS@gmail.com mailhub=smtp.gmail.com:587 UseTLS=YES UseSTARTTLS=YES AuthUser=MY_GMAIL_ADDRESS@gmail.com AuthPass=___MY_GMAIL_PASSWORD___ rewriteDomain=gmail.com hostname=alien FromLineOverride=YES
In case I have 2 or more apps, how should the
sSMTP conf be reconstructed when the Ubuntu user has 2 or more apps?
In your answer, please also refer to the issue of security. Putting my personal Gmail password exposed in a config file seems like a security risk, not something I want to do. On the other hand, I don't want to create a second Gmail account, or I must and should shut up and do so?...