Commit graph

4 commits

Author SHA1 Message Date
Daniel F. Dickinson
b9cc3cf269 msmtp-scripts: Fix spool/lock dir permissions
If the spool or lock dir exist before msmtp's initscript runs we
need to modify the permisions to be appropriate instead of just
bailing, otherwise non-root can't send mail.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
2019-08-27 06:55:04 -04:00
Daniel F. Dickinson
3c15d410a9 msmtp-scripts: Make conn_test default nc
On OpenWrt nc (netcat) connectivity test makes more sense than
ping because a) for non-root users ping is not permitted, and
b) nc is a default binary included with OpenWrt.
We do, however, have to change the upstream default from using
`nc -vz` to `printf "<http head request>"|nc` (with openwrt
nc if text is sent then nc closes after a response and fails
if no connection is made; the response is already thrown away
(to /dev/null) by the existing code).

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
2019-08-27 06:54:56 -04:00
Daniel F. Dickinson
d163eaea52 msmtp-scripts: Overhaul and update like upstream
The project has been revived upstream and a user has convinced me
there is a valid use case for this package in openwrt, so remove
deprecation notice, adjust links to upstream (it's moved) and
update to latest version.  Sync behavior with that expected upstream.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
2019-08-08 21:50:09 -04:00
Daniel Dickinson
4d64a05350 mail/msmtp-scripts: Add queuing mta wrapper for msmtp
This commit adds the msmtp-scripts package from SourceForge, which
is a wrapper around msmtp that provides queueing, syslog or file logging,
and a basic SMTP (no auth) server.

Signed-off-by: Daniel Dickinson <lede@daniel.thecshore.com>
2016-09-21 15:46:14 -04:00