Login
You're viewing the code4lib.social public feed.
  • Nov 6, 2026, 12:50 PM

    @ColinTheMathmo AIUI the SPF record (which is a DNS TXT record) lists the hosts that are allowed to send email, so you might need to add the machine-running-your-CLI to it?

    Maybe the host sending things from webmail is listed in there but not the CLI machine?

    💬 1🔄 0⭐ 0

Replies

  • Nov 6, 2026, 1:17 PM

    @amcewen The script connects to the regular email host and sends from there:

    server = smtplib.SMTP(server_host_name,587)

    So the emails should not advertise themselves as coming from my local machine where the script is running.

    💬 0🔄 0⭐ 0