Skip to main content

Unauthenticated email... is not accepted due to domain's DMARC policy

Comments

5 comments

  • ffeingol
    I'm pretty sure that DMARC will not sign the email if it's routed through /usr/sbin/sendmail. You have to use actual SMTP commands and authenticate to have it DKIM signed.
    0
  • cPRex Jurassic Moderator
    What @ffeingol said sounds right to me. You could further confirm this by comparing the message from your form to a message sent through webmail and see if they show up differently in the exim_mainlog.
    0
  • GoWilkes
    Well that's disappointing, I didn't have this problem until this year when I moved everything to a new server :-( What's weird is that my own site has a contact form that uses sendmail to send to my Gmail address, and I don't seem to have any problem getting those emails! Did I somehow change my own Gmail to allow unauthenticated email, and either didn't know it or forgot that I did it? @ffeingol, when you say "use actual SMTP commands and authenticate", can you be more specific? Are you thinking about something like this (an example I found, not my own): use MIME::Lite; use Net::SMTP; my $host = 'mail.domain.com'; my $user = 'user@domain.com'; my $pass = 'password1234'; MIME::Lite->send('smtp', $host, AuthUser => $user, AuthPass => $pass); my $msg = MIME::Lite->new( From => $from, To => $to, Subject => 'Foo', Type => 'text/plain; charset=UTF-8', Encoding => 'quoted-printable', Data => 'Hello world!' ); $msg->send;
    0
  • ffeingol
    @GoWilkes that code looks correct. It's using a user-id/password, so it's authenticating. Do you have a DMARC policy for your domain? It's their DMARC policy that is more than likely causing the issue: What is a DMARC Policy? All about the 3 policies - DMARC Analyzer
    0
  • GoWilkes
    [quote] Do you have a DMARC policy for your domain?
    I do, and it's the same as for the client. The SPF is the same, too, so it makes no sense to me...
    0

Please sign in to leave a comment.