Cannot receive email - 530 5.7.1 Client was not authenticated

2 posts / 0 new
Last post
#1 Fri, 06/07/2019 - 03:59
Xan

Cannot receive email - 530 5.7.1 Client was not authenticated

Hi all!
I got a vps from ovh with debian 8, virtualmin 6.06-2, Webmin 1.900, Usermin 1.751.
I got also a domain from ovh, let's call it mydomain.ovh.
I have copied SPF record from virtualmin to DNS Zone of my ovh account, and I am able to send email from virtualmin (email@mydomain.ovh) to my gmail account.
What I cannot do is to send email from my gmail account to email@mydomain.ovh, the response of server is 530 5.7.1 Client was not authenticated. How can i configure postfix/dovecot for enable my vps to receive email?
This is my first experience with a vps and virtualmin, maybe is a noob question :)

Thanks in advance

Fri, 06/07/2019 - 18:11
Xan

Hey there! I found the solution.
I just forgot to set A record for smtp of vps in ovh dns zone.
However I still cannot receive email, here mail.log

Jun  7 18:18:15 vpsxxxxxx postfix/smtpd[21069]: connect from mail-qk1-f171.google.com[209.85.222.171]
Jun  7 18:18:16 vpsxxxxxx postfix/smtpd[21069]: 0286339: client=mail-qk1-f171.google.com[209.85.222.171]
Jun  7 18:18:16 vpsxxxxxx postfix/cleanup[21073]: 0286339: message-id=<CAKYy3r5D+=5qByz44ZKDk=KYy6AZrAQv4O0_ESA6+2XorhKXLw@mail.gmail.com>
Jun  7 18:18:16 vpsxxxxxx postfix/qmgr[18419]: 0286339: from=<myemail@gmail.com>, size=2500, nrcpt=1 (queue active)
Jun  7 18:18:16 vpsxxxxxx postfix/smtp[21074]: 0286339: to=<myemail@vpsxxxxxx.ovh.net>, orig_to=<myemail@mydomain.ovh>, relay=none, delay=0.26, delays=0.22/0.01/0.02/0, dsn=5.4.6, status=bounced (mail for vpsxxxxxx
.ovh.net loops back to myself)
Jun  7 18:18:16 vpsxxxxxx postfix/cleanup[21073]: 42D4F210: message-id=<20190607161816.42D4F210@template.ovh.net>
Jun  7 18:18:16 vpsxxxxxx postfix/qmgr[18419]: 42D4F210: from=<>, size=4367, nrcpt=1 (queue active)
Jun  7 18:18:16 vpsxxxxxx postfix/bounce[21075]: 0286339: sender non-delivery notification: 42D4F210
Jun  7 18:18:16 vpsxxxxxx postfix/smtpd[21069]: disconnect from mail-qk1-f171.google.com[209.85.222.171]
Jun  7 18:18:16 vpsxxxxxx postfix/qmgr[18419]: 0286339: removed
Jun  7 18:18:17 vpsxxxxxx postfix/smtp[21074]: 42D4F210: host gmail-smtp-in.l.google.com[173.194.76.26] said: 421-4.7.0 This message does not have authentication information or fails to pass 421-4.7.0 authentica
tion checks. To best protect our users from spam, the 421-4.7.0 message has been blocked. Please visit 421-4.7.0  https://support.google.com/mail/answer/81126#authentication for more 421 4.7.0 information. n2si1
783250wrg.416 - gsmtp (in reply to end of DATA command)
Jun  7 18:18:17 vpsxxxxxx postfix/smtp[21074]: connect to gmail-smtp-in.l.google.com[2a00:1450:400c:c00::1b]:25: Network is unreachable
Jun  7 18:18:17 vpsxxxxxx postfix/smtp[21074]: 42D4F210: to=<myemail@gmail.com>, relay=alt1.gmail-smtp-in.l.google.com[108.177.14.26]:25, delay=1.5, delays=0/0/1.1/0.38, dsn=4.7.0, status=deferred (host al
t1.gmail-smtp-in.l.google.com[108.177.14.26] said: 421-4.7.0 This message does not have authentication information or fails to pass 421-4.7.0 authentication checks. To best protect our users from spam, the 421-4
.7.0 message has been blocked. Please visit 421-4.7.0  https://support.google.com/mail/answer/81126#authentication for more 421 4.7.0 information. h12si2093724lfm.45 - gsmtp (in reply to end of DATA command))

Thanks in advance!