From: David K. <da...@ke...> - 2025-07-05 15:40:59
|
One of the enhancements I made in my fork was to add a system-notify script. This lets me consolidate into one place all "outbound" notifications which could be Email, Pushover, SMS, whatever. This adding/changing how a notification is sent can be done in one place. I updated all services that had their own Email notification code to use this instead. https://github.com/dkerr64/astlinux/blob/master/project/astlinux/target_skeleton/usr/sbin/system-notify And in my rc.conf (for example)... SYSTEM_NOTIFY da...@ke... SYSTEM_NOTIFY_FROM pb...@ke... PUSHOVER_APP_TOKEN atuwaxxxxxxxxxxxxxxob2jce PUSHOVER_USER_KEY uknjvgxxxxxxxxxxxxxxxgnuec5 PUSHOVER_API https://api.pushover.net/1/messages.json PUSHOVER_IP 104.20.42.236 SMS_CMD /mnt/kd/bin/LB1120 SMS_URL 192.168.5.1 SMS_PW ExxxxxxxC SMS_TO +1203xxxxx92 NOTIFY_PUSHOVER_UPSMON yes NOTIFY_PUSHOVER_WANFAILOVER yes NOTIFY_PUSHOVER_ACME yes NOTIFY_PUSHOVER_SSHD yes So, with my fork, a change to use Mailgun can be done in one place, and all services would use. David On Sat, Jul 5, 2025 at 11:16 AM Lonnie Abelbeck <li...@lo...> wrote: > Hi Michael, > > I have heard good things about Mailgun, but have not personally used it. > > When using the Mailgun SMTP Relay, is there only one auth credential per > account, or could every unique API key auth the SMTP Relay? > > Possibly different users in Mailgun would need to be created for multiple > SMTP Relay credentials. > > > > ... we have also left the SMTP email for applications that are not using > the API. > > My question is which ones they could be. The only one I have identified > is ‘safe asterisk’ but just wondering if there are any others? > > There are quite a few services that use sendmail (via msmtp), in AstLinux > [1] the scripts sendmail.sh, msmtpqueue.sh, testmail.sh call 'msmtp'. > > A dev could create an 'api-smtp' shell script, alternative to 'msmtp', > that takes input like sendmail, produces error codes like sendmail, but > uses 'curl' and Mailgun APIs to send the message. > > Lonnie > > [1] https://github.com/astlinux-project/astlinux/tree/master/package/msmtp > > > > > > On Jul 5, 2025, at 1:24 AM, Michael Knill < > mic...@ip...> wrote: > > > > Hi Devs > > We are currently using Mailgun for sending mail from Astlinux which > works great but I am quite concerned about having the same credentials on > all my systems. This is actually an issue for a number of our integrations > which is why we are moving to the Azure API Manager in our next release. > > Although this will be fine for applications using the current Mailgun > API e.g. voicemail, we have also left the SMTP email for applications that > are not using the API. > > My question is which ones they could be. The only one I have identified > is ‘safe asterisk’ but just wondering if there are any others? > > Regards > > Michael Knill > > Managing Director > > D: +61 2 6189 1360 > > P: +61 2 6140 4656 > > E: mic...@ip... > > W: ipcsolutions.com.au > > <image001.png>Smarter Business Communications > > _______________________________________________ > > Astlinux-devel mailing list > > Ast...@li... > > https://lists.sourceforge.net/lists/listinfo/astlinux-devel > > > > > _______________________________________________ > Astlinux-devel mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/astlinux-devel > |