Hello. On a fresh installation, by using the installed domain for sending through php, it works fine.
The problem is when triying the same task for a second domain. The second domain is added to the list by creating an email and successfully checked like follow:
####################################
mail.domain2.com
?
The nameservers set on this domain at your domain name registrar should be ns1.box.domain1.com; ns2.box.domain1.com. They are currently [Not Set]. If you are using External DNS, this may be OK.
✓
Domain’s email is directed to this domain. [mail.domain2.com ↦ 10 box.domain1.com]
✓
Postmaster contact address exists as a mail alias. [postmaster@mail.domain2.com ↦ administrator@box.domain1.com]
✓
Domain is not blacklisted by dbl.spamhaus.org.
✓
Domain resolves to this box’s IP address. [mail.domain2.com ↦ 172.104.241.XX; 2a01:7e01::f03c:91ff:fe40:134a]
✓
TLS (SSL) certificate is signed & valid. The certificate expires in 87 days on 05/17/18.
?
This domain’s DNSSEC DS record is not set. The DS record is optional. The DS record activates DNSSEC. To set a DS record, you must follow the instructions provided by your domain name registrar and provide to them this information.
############################
But when trying to send by PHP with smtper.net, I’have the error:
Feb 19 12:55:12 miab postfix/submission/smtpd[17770]: connect from ns513574.ip-192-99-9.net[192.99.9.142]
Feb 19 12:55:13 miab postfix/submission/smtpd[17770]: warning: TLS library problem: error:14094412:SSL routines:SSL3_READ_BYTES:sslv3 alert bad certificate:s3_pkt.c:1278:SSL alert number 42:
Feb 19 12:55:13 miab postfix/submission/smtpd[17770]: lost connection after STARTTLS from ns513574.ip-192-99-9.net[192.99.9.142]
Feb 19 12:55:13 miab postfix/submission/smtpd[17770]: disconnect from ns513574.ip-192-99-9.net[192.99.9.142]
################################
Why it works with domain1 used on installation and not for the second added later?