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

    Sending email via my usual webmail interface is working fine.

    Sending email via the command line utility that I use is *mostly* working fine.

    There is one destination (that I know of!) that is rejecting email with:

    550 5.7.1 Message rejected:
    Message lacks SPF/DKIM/DMARC Auth Records

    So they get delivered via the web interface, but not via the script I'm using.

    * I own my own domain
    * I can connect via shell
    * it is shared hosting
    * I do not administer the machine,
    * My access to logs is limited
    * my options are limited.

    I'm currently *really* busy with other things, but it would be really nice to get this fixed. If someone can provide me with the right level of "This is what's wrong" then I'd be very grateful.

    #linux #email #EmailProblems #AdviceNeeded

    💬 1🔄 1⭐ 0

Replies

  • 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
  • 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
  • 💬 0🔄 0⭐ 1
  • 💬 0🔄 0⭐ 1
  • Nov 6, 2026, 1:30 PM

    @ColinTheMathmo @semiprime looking through that, it seems that your DMARC might be the problem.

    I don't think (running `dig _dmarc.solipsys.co.uk TXT`) that you've got a DMARC record in your DNS.

    From know.me.uk/@CenturyAvocado/117 it might just need a TXT record adding to your DNS for _dmarc.solipsys.co.uk - seems it might just need to contain "v=DMARC1; p=none;"

    (`dig _dmarc.doesliverpool.com TXT` will give you a comparison showing ours, but I don't think you *need* the rua/ruf stuff)

    💬 1🔄 0⭐ 0
  • Nov 6, 2026, 1:41 PM

    @amcewen That's excellent news ... I can pass that directly on to my admin.

    I'll keep monitoring the thread in case something else shows up, but that's very good news.

    Thank you.

    CC: @semiprime

    💬 1🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • Nov 6, 2026, 1:47 PM

    @ColinTheMathmo @semiprime Ah, good point. I'm not sure.

    Mostly the _dmarc record would be the next thing I'd be trying if I'd hit the same problem.

    (and probably sending emails to myself from both options and looking at the headers in them—your mail client usually has a way to show headers on received emails. Not that I'd know exactly what I was looking for, but mostly I'd be comparing differences in any that mention DKIM/DMARC/SPF :-D)

    💬 1🔄 0⭐ 0
  • Nov 6, 2026, 1:58 PM

    @amcewen Would it help if I sent you an email from each of my CLI and my webmail? Would you have time to compare and contrast?

    If so, DM me the email you'd like me to use. If not ... totally OK.

    CC: @semiprime

    💬 0🔄 0⭐ 0