Article 6M464 How can I solve the problem of "SPM, DKIM did not pass" to send email through postfix with port 25 from local pc?

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

by
cola
from LinuxQuestions.org on (#6M464)
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...ostfix-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.
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments