• 1 Post
  • 5 Comments
Joined 1 year ago
cake
Cake day: June 12th, 2023

help-circle
  • Your current approach of talking raw SMTP is likely to be more hassle than is worthwhile, and since the days of permissive SMTP servers are long gone, might not work at all.

    Since you appear to be using an Debian-based Linux distro, I suggest this approach:

    • If you don’t specifically need exim, consider replacing it with the lightweight dma package (DragonFly Mail Agent): apt install dma
    • Configure dma (or exim) to use your ISP’s SMTP server as a smart host. (Or the Gmail SMTP server if your ISP doesn’t provide one.)
    • Use the /usr/sbin/sendmail command (which comes with dma or exim) to send messages from your scripting language of choice.

    If you prefer to receive messages as SMS, note that most major mobile carriers maintain an email-to-sms gateway for this purpose. Some web searches will probably lead you to the one for your carrier. They usually accept email at an address like [email protected]