PHP Mailer - Wrong domain

Hello all,

I recently finished the installation of CyberPanel on a VPS. Everything is working as expected, but I have an issue with emails from a wordpress setup. Rainloop for the domain that I want is working, sending and recieving.

postcat: name_mask: all
postcat: inet_addr_local: configured 2 IPv4 addresses
postcat: inet_addr_local: configured 3 IPv6 addresses
*** ENVELOPE RECORDS deferred/7/7B27B17727C ***
message_size:            3512             325               1               0            3512               0
message_arrival_time: Tue May 10 15:54:02 2022
create_time: Tue May 10 15:54:02 2022
named_attribute: log_message_origin=local
named_attribute: trace_flags=0
sender: 
pointer_record:             0
named_attribute: dsn_orig_rcpt=rfc822;[email protected]
original_recipient: [email protected]
recipient: [email protected]
pointer_record:               0
*** MESSAGE CONTENTS deferred/7/7B27B17727C ***
regular_text: Received: by mail.karavias.xyz (Postfix)
regular_text: 	id 7B27B17727C; Tue, 10 May 2022 15:54:02 +0000 (UTC)
regular_text: Date: Tue, 10 May 2022 15:54:02 +0000 (UTC)
regular_text: From: [email protected] (Mail Delivery System)
regular_text: Subject: Undelivered Mail Returned to Sender
regular_text: To: [email protected]
regular_text: Auto-Submitted: auto-replied
regular_text: MIME-Version: 1.0
regular_text: Content-Type: multipart/report; report-type=delivery-status;
regular_text: 	boundary="083C4177277.1652198042/mail.karavias.xyz"
regular_text: Content-Transfer-Encoding: 8bit
regular_text: Message-Id: <[email protected]>
pointer_record:               0
regular_text: 
regular_text: This is a MIME-encapsulated message.
regular_text: 
regular_text: --083C4177277.1652198042/mail.karavias.xyz
regular_text: Content-Description: Notification
regular_text: Content-Type: text/plain; charset=utf-8
regular_text: Content-Transfer-Encoding: 8bit
regular_text: 
regular_text: This is the mail system at host mail.karavias.xyz.
regular_text: 
regular_text: I'm sorry to have to inform you that your message could not
regular_text: be delivered to one or more recipients. It's attached below.
regular_text: 
regular_text: For further assistance, please send mail to postmaster.
regular_text: 
regular_text: If you do so, please include this problem report. You can
regular_text: delete your own text from the attached returned message.
regular_text: 
regular_text:                    The mail system
regular_text: 
regular_text: <[email protected]>: host
regular_text:     gmail-smtp-in.l.google.com[2a00:1450:400c:c0b::1a] said: 550-5.7.1
regular_text:     [2a01:4f8:c010:7f2c::1] Our system has detected that this message does
regular_text:     550-5.7.1 not meet IPv6 sending guidelines regarding PTR records and
regular_text:     550-5.7.1 authentication. Please review 550-5.7.1
regular_text:     https://support.google.com/mail/?p=IPv6AuthError for more information 550
regular_text:     5.7.1 . o3-20020a05600002c300b0020c7844fc3asi20649010wry.21 - gsmtp (in
regular_text:     reply to end of DATA command)
regular_text: 
regular_text: --083C4177277.1652198042/mail.karavias.xyz
regular_text: Content-Description: Delivery report
regular_text: Content-Type: message/delivery-status
regular_text: 
regular_text: Reporting-MTA: dns; mail.karavias.xyz
regular_text: X-Postfix-Queue-ID: 083C4177277
regular_text: X-Postfix-Sender: rfc822; [email protected]
regular_text: Arrival-Date: Tue, 10 May 2022 15:54:02 +0000 (UTC)
regular_text: 
regular_text: Final-Recipient: rfc822; [email protected]
regular_text: Original-Recipient: rfc822;[email protected]
regular_text: Action: failed
regular_text: Status: 5.7.1
regular_text: Remote-MTA: dns; gmail-smtp-in.l.google.com
regular_text: Diagnostic-Code: smtp; 550-5.7.1 [2a01:4f8:c010:7f2c::1] Our system has
regular_text:     detected that this message does 550-5.7.1 not meet IPv6 sending guidelines
regular_text:     regarding PTR records and 550-5.7.1 authentication. Please review 550-5.7.1
regular_text:     https://support.google.com/mail/?p=IPv6AuthError for more information 550
regular_text:     5.7.1 . o3-20020a05600002c300b0020c7844fc3asi20649010wry.21 - gsmtp
regular_text: 
regular_text: --083C4177277.1652198042/mail.karavias.xyz
regular_text: Content-Description: Undelivered Message
regular_text: Content-Type: message/rfc822
regular_text: Content-Transfer-Encoding: 8bit
regular_text: 
regular_text: Return-Path: <[email protected]>
regular_text: To: [email protected]
regular_text: Subject: Unique Bags "Test Email"
regular_text: Date: Tue, 10 May 2022 15:54:02 +0000
regular_text: From: Unique Bags <[email protected]>
regular_text: Reply-To: [email protected]
regular_text: Message-ID: <[email protected]>
regular_text: X-Mailer: PHPMailer 6.5.3 (https://github.com/PHPMailer/PHPMailer)
regular_text: MIME-Version: 1.0
regular_text: Content-Type: text/plain; charset=UTF-8
regular_text: Content-Transfer-Encoding: 8bit
regular_text: 
regular_text: Από: cyberpanel <[email protected]>
regular_text: Θέα: Test Email
regular_text: 
regular_text: Σώμα μηνύματος:
regular_text: Test email
regular_text: 
regular_text: -- 
regular_text: Αυτό το μήνυμα ηλεκτρονιού ταχυδρομείου τάλθηκε από την φόρμα επικοινωνία του Unique Bags (https://unique-bags.com)
regular_text: 
regular_text: 
regular_text: --083C4177277.1652198042/mail.karavias.xyz--
pointer_record:               0
*** HEADER EXTRACTED deferred/7/7B27B17727C ***
named_attribute: encoding=8bit
pointer_record:               0
*** MESSAGE FILE END deferred/7/7B27B17727C ***

The issue is that I have a domain, unique-bags.com. It’s works ok. As you can see on the message above, it’s trying to use mail.karavias.xyz, which is a website that I have deleted. It’s not using the correct domain (unique-bags.com)

show me results of checktls.com

Hi please check below:

Checking unique-bags.com from www12-azure.checktls.com(V03.66.05) at 2022-05-11T07:18:59Z:

seconds		lookup	result
[000.000]	    	DNS LOOKUPS
[000.001]	    	SEARCHLIST	104.131.108.216,134.209.169.224,1.1.1.1,8.8.8.8,67.207.67.3
[000.010]	    	MX	(10) mail.unique-bags.com
[000.020]	    	MX:A-->mail.unique-bags.com	188.34.166.231
seconds		test stage and result
[000.000]		Trying TLS on mail.unique-bags.com[188.34.166.231:25] (10)
[000.092]		Server answered
[000.427]	<‑‑	220 mail.karavias.xyz ESMTP Postfix
[000.428]		We are allowed to connect
[000.428]	‑‑>	EHLO www12-azure.checktls.com
[000.518]	<‑‑	250-mail.karavias.xyz
250-PIPELINING
250-SIZE 30720000
250-ETRN
250-STARTTLS
250-AUTH PLAIN
250-AUTH=PLAIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-DSN
250 CHUNKING
[000.519]		We can use this server
[000.519]		TLS is an option on this server
[000.519]	‑‑>	STARTTLS
[000.609]	<‑‑	220 2.0.0 Ready to start TLS
[000.610]		STARTTLS command works on this server
[000.713]		Connection converted to SSL
SSLVersion in use: TLSv1_3
Cipher in use: TLS_AES_256_GCM_SHA384
Perfect Forward Secrecy: yes
Session Algorithm in use: Curve X25519 DHE(253 bits)
Certificate #1 of 1 (sent by MX):
Cert VALIDATION ERROR(S): self signed certificate
So email is encrypted but the recipient domain is not verified
Cert Hostname VERIFIED (mail.unique-bags.com = mail.unique-bags.com)
Not Valid Before: May  4 10:04:23 2022 GMT
Not Valid After: May  1 10:04:23 2032 GMT
subject: /C=US/ST=Denial/L=Springfield/O=Dis/CN=mail.unique-bags.com
issuer: /C=US/ST=Denial/L=Springfield/O=Dis/CN=mail.unique-bags.com
[000.717]	~~>	EHLO www12-azure.checktls.com
[000.895]	<~~	250-mail.karavias.xyz
250-PIPELINING
250-SIZE 30720000
250-ETRN
250-AUTH PLAIN
250-AUTH=PLAIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-DSN
250 CHUNKING
[000.895]		TLS successfully started on this server
[000.896]	~~>	MAIL FROM:<[email protected]>
[000.987]	<~~	250 2.1.0 Ok
[000.988]		Sender is OK
[000.988]	~~>	QUIT
[001.079]	<~~	221 2.0.0 Bye

Hello again,

I found the issue. I issued a Mail server SSL. It’s now working properly. Thanks for your time.

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.