LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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


Closed Thread
  Search this Thread
Old 04-16-2024, 11:29 AM   #1
cola
Senior Member
 
Registered: Sep 2007
Posts: 1,045

Rep: Reputation: 65
How can I solve the problem of "SPM, DKIM did not pass" to send email through postfix with port 25 from local pc?


Error:
Code:
to=<abcd@gmail.com>, relay=gmail-smtp-in.l.google.com[74.125.130.26]:25, delay=2.5, delays=0.02/0.01/1.6/0.82, dsn=5.7.26, status=bounced 
(host gmail-smtp-in.l.google.com[74.125.130.26] said: 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 [mydomain.com] with ip: [a.b.c.d] = did not pass 550-5.7.26  550-5.7.26  For instructions on setting up authentication, go to 550 5.7.26  
https://support.google.com/mail/answer/81126#authentication j23-20020a632317000000b005f0a5131be5si9917986pgj.293 - gsmtp (in reply to end of DATA command))
Here, a.b.c.d is the public ip address. It is dynamic ip address. I think, it is the router's public ip address. Local pc has ip address like 192.168.1.103.

I am trying to send email to gmail through postfix with port 25 from local pc or localhost. I have installed postfix, opendkim and configured these. /etc/hostname has "mydomain.com". So the sender is user1@mydomain.com.

I have followed this website: https://netcorecloud.com/tutorials/c...stfix-ubuntu//

How can I solve the problem of "SPM, DKIM did not pass" to send email through postfix with port 25 from local pc? I have done the steps following that website to configure DKIM.

Last edited by cola; 04-17-2024 at 11:05 AM.
 
Old 04-17-2024, 04:39 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
1) Link you give to the tutorial doesn't work.
2) Have you correctly configured SPF to reflect your public IP address? - You can test that here: https://www.appmaildev.com/en/spf
3) Have you published the relevant selector for your domain in DNS? - You can also test DKIM signing here: https://www.appmaildev.com/en/dkim
 
Old 04-17-2024, 11:12 AM   #3
cola
Senior Member
 
Registered: Sep 2007
Posts: 1,045

Original Poster
Rep: Reputation: 65
1) I have edited the link. It should work now.
2) Checked there, SPF permerror:
What is the way to configure SPF to reflect public IP?
3) Got error: DKIM permerror. I have put DKIM TXT record in mydomain.com as default._domainkey
 
Old 04-17-2024, 11:18 AM   #4
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Quote:
Originally Posted by cola View Post
2) Checked there, SPF permerror:
What is the way to configure SPF to reflect public IP?
If you don't know how to configure an SPF entry then try: https://mxtoolbox.com/SPFRecordGenerator.aspx

Last edited by TenTenths; 04-17-2024 at 11:25 AM.
 
Old 04-18-2024, 02:24 AM   #5
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

https://www.linuxquestions.org/quest...pc-4175736093/
 
  


Closed Thread



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
How can I solve the problem of "IPs with missing PTR records." to send email through postfix with port 25 from local pc? cola Linux - Server 8 04-18-2024 10:44 AM
[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
LXer: Set Up DKIM On Postfix With dkim-milter (CentOS 5.2) LXer Syndicated Linux News 0 04-06-2009 12:30 PM
KDE upgrade via SPM did not go well... daTerminehtor SUSE / openSUSE 10 07-24-2006 12:08 PM

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

All times are GMT -5. The time now is 04:17 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