SYSTEM INFORMATION | |
---|---|
OS type and version | Ubuntu 22-04-3 |
Webmin version | 2.105 |
Virtualmin version | 7.8.2 GPL |
Related packages | Postfix, Bind |
Hi, I’m trying to configure the mailserver(s), without success.
My main hostname is hosting1.domain1.com, and I created (imported from Plesk) a domain2.com
I do have a PTR for domain1.com (the same domain was working for Plesk), and I am using the same DNS records I already had for domain2.com (MX, SPF, DMARK, DKIM).
Now, if I send a mail to my gmail account from user@domain2.com, I get the followig error:
Dec 14 11:12:49 hosting1 postfix/smtpd[91513]: connect from localhost[127.0.0.1]
Dec 14 11:12:49 hosting1 postfix/smtpd[91513]: 7DF5B4A014F: client=localhost[127.0.0.1]
Dec 14 11:12:49 hosting1 postfix/cleanup[91516]: 7DF5B4A014F: message-id=<1702548769.91504@worldsinperil.it>
Dec 14 11:12:49 hosting1 opendkim[53869]: 7DF5B4A014F: DKIM-Signature field added (s=202311, d=worldsinperil.it)
Dec 14 11:12:49 hosting1 postfix/qmgr[77869]: 7DF5B4A014F: from=<urbaman@worldsinperil.it>, size=1014, nrcpt=1 (queue active)
Dec 14 11:12:49 hosting1 postfix/smtpd[91513]: disconnect from localhost[127.0.0.1] helo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Dec 14 11:12:49 hosting1 postfix/smtp[91517]: warning: DNSSEC validation may be unavailable
Dec 14 11:12:49 hosting1 postfix/smtp[91517]: warning: reason: dnssec_probe 'ns:.' received a response that is not DNSSEC validated
Dec 14 11:12:49 hosting1 postfix/smtp[91517]: connect to gmail-smtp-in.l.google.com[2a00:1450:4025:402::1b]:25: Network is unreachable
Dec 14 11:12:50 hosting1 postfix/smtp[91517]: 7DF5B4A014F: to=<urbaman@gmail.com>, relay=gmail-smtp-in.l.google.com[142.250.102.27]:25, delay=1, delays=0.12/0.04/0.34/0.53, dsn=5.7.25, status=bounced (host gmail-smtp-in.l.google.com[142.250.102.27] said: 550-5.7.25 [194.163.174.60] The IP address sending this message does not have a 550-5.7.25 PTR record setup, or the corresponding forward DNS entry does not 550-5.7.25 point to the sending IP. As a policy, Gmail does not accept messages 550-5.7.25 from IPs with missing PTR records. For more information, go to 550 5.7.25 https://support.google.com/mail/answer/81126#ip-practices b18-20020a1709062b5200b00a1d7b96dbd7si6366834ejg.213 - gsmtp (in reply to end of DATA command))
Dec 14 11:12:50 hosting1 postfix/cleanup[91516]: 85DB24A07DA: message-id=<20231214101250.85DB24A07DA@hosting1.urbaman.it>
Dec 14 11:12:50 hosting1 postfix/qmgr[77869]: 85DB24A07DA: from=<>, size=4515, nrcpt=1 (queue active)
Dec 14 11:12:50 hosting1 postfix/bounce[91521]: 7DF5B4A014F: sender non-delivery notification: 85DB24A07DA
Dec 14 11:12:50 hosting1 postfix/qmgr[77869]: 7DF5B4A014F: removed
Dec 14 11:12:51 hosting1 spamd[82697]: spamd: connection from 127.0.0.1 [127.0.0.1]:34338 to port 783, fd 5
Dec 14 11:12:51 hosting1 spamd[82697]: spamd: setuid to worldsinperil succeeded
Dec 14 11:12:51 hosting1 spamd[82697]: spamd: processing message <20231214101250.85DB24A07DA@hosting1.urbaman.it> for worldsinperil:1001
Dec 14 11:12:51 hosting1 spamd[82697]: spamd: clean message (-0.0/5.0) for worldsinperil:1001 in 0.4 seconds, 4513 bytes.
Dec 14 11:12:51 hosting1 spamd[82697]: spamd: result: . 0 - HTML_MESSAGE,NO_RELAYS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED scantime=0.4,size=4513,user=worldsinperil,uid=1001,required_score=5.0,rhost=127.0.0.1,raddr=127.0.0.1,rport=34338,mid=<20231214101250.85DB24A07DA@hosting1.urbaman.it>,autolearn=ham autolearn_force=no
Dec 14 11:12:51 hosting1 postfix/local[91522]: 85DB24A07DA: to=<worldsinperil@hosting1.urbaman.it>, orig_to=<urbaman@worldsinperil.it>, relay=local, delay=0.97, delays=0/0.01/0/0.97, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME)
Dec 14 11:12:51 hosting1 postfix/qmgr[77869]: 85DB24A07DA: removed
Dec 14 11:12:51 hosting1 spamd[82692]: prefork: child states: II
If I try to send an email from gmail to user@domain2.com I cannot see it in user’s mailbox, with the following related logs
Dec 14 17:09:20 hosting1 postfix/smtpd[106264]: connect from mail-io1-f47.google.com[209.85.166.47]
Dec 14 17:09:21 hosting1 postfix/smtpd[106264]: 4F8AD4A09F8: client=mail-io1-f47.google.com[209.85.166.47]
Dec 14 17:09:21 hosting1 postfix/cleanup[106268]: 4F8AD4A09F8: message-id=<CAByz5hG_taMzNHDfCiHwtXiMMvXTN90WrC56DwuVnG=sX78Ghg@mail.gmail.com>
Dec 14 17:09:21 hosting1 opendkim[53869]: 4F8AD4A09F8: DKIM verification successful
Dec 14 17:09:21 hosting1 opendkim[53869]: 4F8AD4A09F8: s=20230601 d=gmail.com a=rsa-sha256 SSL
Dec 14 17:09:21 hosting1 postfix/qmgr[77869]: 4F8AD4A09F8: from=<urbaman@gmail.com>, size=2573, nrcpt=1 (queue active)
Dec 14 17:09:21 hosting1 postfix/smtpd[106264]: disconnect from mail-io1-f47.google.com[209.85.166.47] ehlo=2 starttls=1 mail=1 rcpt=1 bdat=1 quit=1 commands=7
Dec 14 17:09:21 hosting1 spamd[82697]: spamd: connection from 127.0.0.1 [127.0.0.1]:38938 to port 783, fd 5
Dec 14 17:09:21 hosting1 spamd[82697]: spamd: setuid to worldsinperil succeeded
Dec 14 17:09:21 hosting1 spamd[82697]: spamd: processing message <CAByz5hG_taMzNHDfCiHwtXiMMvXTN90WrC56DwuVnG=sX78Ghg@mail.gmail.com> for worldsinperil:1001
Dec 14 17:09:22 hosting1 spamd[82697]: spamd: clean message (-5.2/5.0) for worldsinperil:1001 in 0.3 seconds, 2864 bytes.
Dec 14 17:09:22 hosting1 spamd[82697]: spamd: result: . -5 - DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_HI,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE scantime=0.3,size=2864,user=worldsinperil,uid=1001,required_score=5.0,rhost=127.0.0.1,raddr=127.0.0.1,rport=38938,mid=<CAByz5hG_taMzNHDfCiHwtXiMMvXTN90WrC56DwuVnG=sX78Ghg@mail.gmail.com>,autolearn=ham autolearn_force=no
Dec 14 17:09:22 hosting1 postfix/local[106269]: 4F8AD4A09F8: to=<worldsinperil@hosting1.urbaman.it>, orig_to=<urbaman@worldsinperil.it>, relay=local, delay=1, delays=0.21/0.01/0/0.78, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME)
Dec 14 17:09:22 hosting1 postfix/qmgr[77869]: 4F8AD4A09F8: removed
Dec 14 17:09:22 hosting1 spamd[82692]: prefork: child states: II
So: do I need PTR for both domain1.com and domain2.com? How to make the received mail to be put in the right mailbox?
Thank you very much