LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-31-2023, 12:23 PM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,638

Rep: Reputation: 183Reputation: 183
DKIM/SPF Disposition: fail


My mail server (static, business IP) has a DKIM record:
Code:
$ dig +short TXT novatec._domainkey.novatec-inc.com
"v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQE ...
and SPF record:
Code:
$ dig +short novatec-inc.com txt
"v=spf1 mx a ip4:24.142.169.12/32 ip6:2603:6011:2d02:ee82:f66d:4ff:fe5f:ffd1 ~all"
"google-site-verification=8pUMKzGWw5oxZSgjy1VO3yXb2-z5lDfREHje8YNlCr0"
"spectrum-siteverification=f1b3d94c-a619-42d6-98bc-f7ccc33d2c4c"
When I send emails from this server to e.g. gmail, it works fine; my DMARC notices show DKIM Results: pass and SPF Results: pass. However, when I send email from my home computer using Thunderbird and the novatec-inc.com server as the relay, I get the following:
Code:
Email Provider: google.com
Email: noreply-dmarc-support@google.com
Extra Contact Info: https://support.google.com/a/answer/2466580
Report Id: 8456968221888363130
Report Start Date:  2023-08-23 20:00:00
Report End Date:  2023-08-24 19:59:59
Domain: novatec-inc.com
<adkim> DKIM Alignment: r Relaxed
<aspf> SPF Alignment: r Relaxed
<p> Public Key: none
<sp> Subdomain Policy: none
<pct> Policy Applies: 100%
Source IP: 184.57.112.120 
Email Volume: 1
Policy Disposition: none
DKIM Disposition: fail
SPF Disposition: fail
Header From: novatec-inc.com 
SPF Auth. Domain: novatec-inc.com
SPF Results: softfail
The 'Source IP' in this notice is the IP address of my home computer. I'm assuming this DKIM/SPF "fail" dispositions are because the Source IP is not that of the mail server novatec-inc.com.

I think the messages are getting delivered, but with gmail, that may change.

I send quite a lot of email from my home computer connecting with POP via the mail server at novatec-inc.com. I'm sure many people send email from home computers or cell phones connecting to their work computers to so so.

Am I doing something wrong to get the "fail" dispositions? How can I fix this?
 
Old 09-01-2023, 12:31 PM   #2
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,764

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
As in your other, almost-a-duplicate thread, use the spf record for your domain to define who is authorized to send email with that domain name. I suspect the same is true for DKIM, but I’ve not yet broken the learning curve on DKIM.

I am wondering why your home computer using Thunderbird is sending email with its presumably dynamic road runner IP. If you’re relaying, it should be using the IP of the mail server you’re relaying with.
Typically, a TB setup would connect to the remote server and send email from there…not “relay”. My home Linux PC doesn’t even run an email server (MTA), only Thunderbird connected to my production email server.
 
Old 09-05-2023, 03:58 AM   #3
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,638

Original Poster
Rep: Reputation: 183Reputation: 183
Quote:
Originally Posted by scasey View Post
I am wondering why your home computer using Thunderbird is sending email with its presumably dynamic road runner IP. If you’re relaying, it should be using the IP of the mail server you’re relaying with.
Well, maybe I've got my TBird config wrong. I've got outgoing SMTP to port 587 on the office mail server, security = Password. In checking just now I noticed that my home computer IP was not in the officer server's relay list, so I just added it and sent a test message to my gmail account. The gmail header for that message says, "PASS with IP 24.142.169.12", which is the IP of my mail server.

I bcc'd that message to my office mail server and it's header has:
Code:
Received: from [192.168.0.17] (quadmon [184.57.112.120])
        (authenticated bits=0)
        by novatec-inc.com (8.15.2/8.15.2) with ESMTPA id 3858WUHR016132;
        Tue, 5 Sep 2023 04:32:30 -0400
Which does show it coming from my home TBird (quadmon) IP. 184.57.112.120 IP is the external/Public IP of my home Spectrum modem and 192.168.0.17 is the home/LAN IP of the computer with TBird. I guess I'll have to wait until I get the DMARC reports to see if this fixed it or not.

Last edited by mfoley; 09-05-2023 at 04:02 AM.
 
Old 09-05-2023, 08:38 PM   #4
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,764

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Is that the first header in the bcc’d message? Note that every computer that process the message wil add a Received line. The first Received header is added by the receiving server, and it records the IP address of the server from which it got the message.
Using SMTP port 587 is not “relaying” email, but is logging in and authenticating to use the remote server.
 
Old 09-06-2023, 08:27 PM   #5
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,638

Original Poster
Rep: Reputation: 183Reputation: 183
Quote:
Originally Posted by scasey View Post
Is that the first header in the bcc’d message? Note that every computer that process the message wil add a Received line. The first Received header is added by the receiving server, and it records the IP address of the server from which it got the message.
Using SMTP port 587 is not “relaying” email, but is logging in and authenticating to use the remote server.
My top several headers are:
Code:
From mfoley@novatec-inc.com  Tue Sep  5 04:32:32 2023
Return-Path: <mfoley@novatec-inc.com>
Received: from [192.168.0.17] (quadmon [184.57.112.120])
        (authenticated bits=0)
        by novatec-inc.com (8.15.2/8.15.2) with ESMTPA id 3858WUHR016132;
        Tue, 5 Sep 2023 04:32:30 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=novatec-inc.com;
        s=novatec; t=1693902751;
        bh=oV1lg/v9xafFAKM+/FBAO5THAYiNUnAgQRdo8Qf5PuU=;
        h=Date:To:From:Subject;
        b=EJLl8x6scQMsyzPY1QYmMioObi//WSGOD1rSHdg0FzcwVKQYEuVZ1UzR+ucRs9DR8
         jygbDMRMzF4wzKqmY5gNyY8NNBFCAIKvGQVOfzAbKLWRwXI+1pmZ+etJDHmogH7xyC
         ft2f5ErajnR8jDK3oVApgPexr1RejxmkeMODCIW0=
Date: Tue, 5 Sep 2023 04:32:30 -0400
As stated in my previous message, my Thunderbird settings on my home computer have the IP of the work computer as the outgoing server, port 587, authentication Password transmitted insecurely. I did set my home (dynamic) IP as a relay on the office computer in /etc/mail/access. I believe I'm still have the DKIM fail issue:
Code:
Email Provider: google.com
Email: noreply-dmarc-support@google.com
Extra Contact Info: https://support.google.com/a/answer/2466580
Report Id: 548217587229079336
Report Start Date:  2023-09-04 20:00:00
Report End Date:  2023-09-05 19:59:59
Domain: novatec-inc.com
<adkim> DKIM Alignment: r Relaxed
<aspf> SPF Alignment: r Relaxed
<p> Public Key: none
<sp> Subdomain Policy: none
<pct> Policy Applies: 100%
Source IP: 184.57.112.120 
Email Volume: 2
Policy Disposition: none
DKIM Disposition: fail
SPF Disposition: fail
Header From: novatec-inc.com 
SPF Auth. Domain: novatec-inc.com
SPF Results: softfail
This is the most recent DMARC from Gmail and still shows Source IP: 184.57.112.120 (my home computer)., with DKIM and SPF dispositions: fail. The test message was sent at 4:32A EDT on 9/5 and the time range of the DMARC is 2023-09-04 20:00:00 to 2023-09-05 19:59:59, so possible that my changes did were not in effect, but I doubt it. I just sent another message to gmail at 21:17, so I'll see what the next DMARC report comes up with. The header on that message at gmail says: SPF: PASS with IP 24.142.169.12 and DKIM: 'PASS' with domain novatec-inc.com.

Last edited by mfoley; 09-06-2023 at 08:30 PM.
 
  


Reply

Tags
dkim, invalid, spf



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Implementing DKIM and SPF: Postfix and Slackware rshepard Linux - Server 2 04-08-2024 09:09 PM
[SOLVED] DKIM Keeps bringing up dkim=neutral (bad format) header.i=@ j.smith1981 Linux - Server 4 08-28-2019 06:26 AM
LXer: Set Up DKIM For Multiple Domains On Postfix With dkim-milter 2.8.x (CentOS 5.3) LXer Syndicated Linux News 0 09-07-2009 06:20 PM
Starting spf-milter: spf-milter: Milter for 'spf-milter' not found in /etc/mail/sendm Niceman2005 Linux - Software 1 07-06-2009 03:07 AM
LXer: Set Up DKIM On Postfix With dkim-milter (CentOS 5.2) LXer Syndicated Linux News 0 04-06-2009 12:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration