Open ThrawnCA opened 5 years ago
initd is getting old, I know, but it's still used by Amazon Linux 1, which appears to be the version you get if you start OpsWorks instances without specifying a custom AMI.
You can also look at the Pull Request #22
Nice to know, thanks. The servers we're working on don't use systemd though.
(I did search for existing issues before posting, just didn't check pull requests.)
I'm surprised that more people aren't taking this approach. Google can't seem to find anyone except you guys. Everyone just generates smtp credentials. But rotating those for CIS compliance is a proper pain when you have lots of applications.
Expected behavior
Starting and stopping the SMTP relay on machine start/stop.
Actual behavior
Steps to reproduce the behavior
/usr/local/sbin/start-aws-smtp-relay.sh
:/usr/local/sbin/stop-aws-smtp-relay.sh
:/etc/init.d/aws-smtp-relay
:This could also be adapted to replace the default mail sender, of course, by setting the port to 25 and disabling the other sender.