python / psf-salt

PSF infrastructure configuration
MIT License
115 stars 58 forks source link

mailhub from docs.iad1.psf.io? #146

Open JulienPalard opened 6 years ago

JulienPalard commented 6 years ago

While working on the docsbuild-scripts I spotted this in /var/log/syslog which does not looks right:

/var/log/syslog.1:Jul 25 00:07:01 docs sSMTP[24028]: Unable to locate mailhub
/var/log/syslog.1:Jul 25 00:07:01 docs sSMTP[24028]: Cannot open mailhub:25
/var/log/syslog.1:Jul 25 00:07:01 docs CRON[24025]: (docsbuild) MAIL (mailed 1 byte of output; but got status 0x0001, #012)

Context: the docsbuild script (started by cron) was failing (I used an f-string, remembering you installed Python to 3.6 on the server, but the cron is still running 3.4 (which is not a problem, the cron then make subsequents calls (to blurb and sphinx-doc) use the 3.6 venv)).

ewdurbin commented 6 years ago

seems this is due to our ssmtp configuration, https://github.com/python/psf-salt/blob/cf8cde732f0e0e6cc41ecd6c06c93887055e2a70/salt/base/mail.sls#L11

Currently the file is owned by root only, so users that aren't root can't send mail.

I'll look into if we can change this.