LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 11-18-2023, 12:51 AM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,599

Rep: Reputation: 180Reputation: 180
550 sender unauthenticated


It seems like the email labyrinth is never ending! I have a host on a subdomain: host.ohprs.org. I tried sending a test message from a user on this host to my gmail account. I got bounced the following rejection:
Code:
 
   ----- The following addresses had permanent fatal errors -----
<mercureytech@gmail.com>
    (reason: 550-5.7.26 This mail has been blocked because the sender is unauthenticated.)

   ----- Transcript of session follows -----
... while talking to gmail-smtp-in.l.google.com.:
>>> DATA
<<< 550-5.7.26 This mail has been blocked because the sender is unauthenticated.
<<< 550-5.7.26 Gmail requires all senders to authenticate with either SPF or DKIM.
<<< 550-5.7.26
<<< 550-5.7.26  Authentication results:
<<< 550-5.7.26  DKIM = did not pass
<<< 550-5.7.26  SPF [ohprs.org] with ip: [24.142.169.13] = did not pass
<<< 550-5.7.26
<<< 550-5.7.26  To mitigate this issue, please visit Gmail's authentication guide
<<< 550-5.7.26 for instructions on setting up authentication:
<<< 550 5.7.26  https://support.google.com/mail/answer/81126#authentication g8-20020ac87f48000000b00419544d589bsi3213665qtk.743 - gsmtp
554 5.0.0 Service unavailable
This says specifically "SPF [ohprs.org] with ip: [24.142.169.13] = did not pass", yet the SPF record for ohprs.org is:
Code:
v=spf1 include:spf.protection.outlook.com include:novatec-inc.com include:24.142.169.13 -all
So why does the SPF not pass? There must be more to the story.

Last edited by mfoley; 11-18-2023 at 12:53 AM.
 
Old 11-18-2023, 09:28 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,173
Blog Entries: 1

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
Quote:
This says specifically "SPF [ohprs.org] with ip: [24.142.169.13] = did not pass", yet the SPF record for ohprs.org is:

v=spf1 include:spf.protection.outlook.com include:novatec-inc.com include:24.142.169.13 -all

So why does the SPF not pass? There must be more to the story.
The SPF record is wrong. You don't use include with an IP address. Instead try this:
Code:
v=spf1 include:spf.protection.outlook.com include:novatec-inc.com ip4:24.142.169.13 -all
 
2 members found this post helpful.
Old 11-19-2023, 05:53 PM   #3
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,599

Original Poster
Rep: Reputation: 180Reputation: 180
Quote:
Originally Posted by bathory View Post
The SPF record is wrong. You don't use include with an IP address. Instead try this:
Code:
v=spf1 include:spf.protection.outlook.com include:novatec-inc.com ip4:24.142.169.13 -all
Doh! That did it! You're a life saver. I've used ip4: before, but for some reason I thought include: and ipv4: were synonyms, But no. Using ipv4: did the trick.
 
Old 11-20-2023, 04:36 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,173
Blog Entries: 1

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
Quote:
Originally Posted by mfoley View Post
Doh! That did it! You're a life saver. I've used ip4: before, but for some reason I thought include: and ipv4: were synonyms, But no. Using ipv4: did the trick.
They are not the same.
You use include if you're going to use a third party to send out email for your domain. So for example in your case you include spf.protection.outlook.com meaning that any of the following IP addresses are allowed to send email for your domain:
Code:
dig spf.protection.outlook.com txt +short
"v=spf1 ip4:40.92.0.0/15 ip4:40.107.0.0/16 ip4:52.100.0.0/14 ip4:104.47.0.0/17 ip6:2a01:111:f400::/48 ip6:2a01:111:f403::/49 ip6:2a01:111:f403:8000::/50 ip6:2a01:111:f403:c000::/51 ip6:2a01:111:f403:f000::/52 -all"
 
Old 11-27-2023, 11:19 AM   #5
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,599

Original Poster
Rep: Reputation: 180Reputation: 180
Quote:
Originally Posted by bathory View Post
They are not the same.
You use include if you're going to use a third party to send out email for your domain. So for example in your case you include spf.protection.outlook.com meaning that any of the following IP addresses are allowed to send email for your domain:
Code:
dig spf.protection.outlook.com txt +short
"v=spf1 ip4:40.92.0.0/15 ip4:40.107.0.0/16 ip4:52.100.0.0/14 ip4:104.47.0.0/17 ip6:2a01:111:f400::/48 ip6:2a01:111:f403::/49 ip6:2a01:111:f403:8000::/50 ip6:2a01:111:f403:c000::/51 ip6:2a01:111:f403:f000::/52 -all"
Ah! so which SPF would be better:
Code:
v=spf1 include:spf.protection.outlook.com ip4:74.218.88.254 -all

or 

v=spf1 include:spf.protection.outlook.com include:members.cwa4502.org -all
The members.cwa4502.org host is a mail server running send mail.
 
Old 11-27-2023, 04:06 PM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,173
Blog Entries: 1

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
Quote:
Originally Posted by mfoley View Post
Ah! so which SPF would be better:
Code:
v=spf1 include:spf.protection.outlook.com ip4:74.218.88.254 -all

or 

v=spf1 include:spf.protection.outlook.com include:members.cwa4502.org -all
The members.cwa4502.org host is a mail server running send mail.
If members.cwa4502.org resolves to a single IP address, use ip4, else use include. Perhaps you should also add "mx" in the SPF record.

FYI you can use an online tool like this to create a valid SPF record for your domain
 
  


Reply

Tags
authentication, fail, 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
550 550 relay not permitted (state 13) error SarahGurung Linux - Newbie 1 08-09-2012 05:09 PM
A strange issue with unauthenticated apt repositories TheOneKEA Debian 5 03-17-2011 11:05 AM
550 Sender verify failed (in reply to RCPT TO command) Brandon.Wamboldt Linux - Server 3 05-31-2009 10:35 AM
lockd unauthenticated request errors Ziggie Linux - Server 6 05-07-2008 09:53 AM
allow unauthenticated access to samba dlublink Linux - Networking 2 12-21-2006 09:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 07:55 AM.

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