System mails not working

Hi!

I am trying to configure hestiacp. The correspondence works, but the control panel notifications (email account creation, user account creation) are not sent by the system. What else and where do I need to set it up for it to work? I opened these ports: 8083, 80, 443, 143, 993, 110, 995, 25, 465, 587

Thanks!

check exim mainlog, should provide some informations what fails.

Hi!

mainlog

root@hcp:/var/log/exim4# tail -f mainlog
2023-08-10 16:44:55 no host name found for IP address 81.161.229.46
2023-08-10 16:44:57 dovecot_login authenticator failed for (User) [81.161.229.46]: 535 Incorrect authentication data ([email protected])
2023-08-10 16:52:31 no host name found for IP address 193.56.29.145
2023-08-10 16:52:33 dovecot_login authenticator failed for (User) [193.56.29.145]: 535 Incorrect authentication data (set_id=oracle)
2023-08-10 16:53:02 Start queue run: pid=166215
2023-08-10 16:53:02 1qU8bk-000gap-QR Message is frozen
2023-08-10 16:53:02 1qTmYK-0007Zl-Ml Message is frozen
2023-08-10 16:55:12 1qTnKH-000G62-4s H=gmail-smtp-in.l.google.com [74.125.143.27] Connection timed out
2023-08-10 16:57:23 1qTnKH-000G62-4s H=alt4.gmail-smtp-in.l.google.com [173.194.202.27] Connection timed out
2023-08-10 16:57:23 1qTnKH-000G62-4s == [email protected] R=dnslookup T=remote_smtp defer (110): Connection timed out



2023-08-10 16:59:07 1qU907-000hq3-1i <= [email protected] U=admin P=local S=1323 id=GMkco2BdFbuGOs4JOohmjvOzzGc5DS9Wvutw3Gu5k@localhost.localdomain
2023-08-10 16:59:34 1qTlET-000ltr-OK H=gmail-smtp-in.l.google.com [74.125.143.26] Connection timed out
2023-08-10 16:59:34 1qTlET-000ltr-OK == [email protected] R=dnslookup T=remote_smtp defer (110): Connection timed out
2023-08-10 16:59:34 1qU8dr-000gma-Sk Message is frozen
2023-08-10 16:59:34 1qTlHh-0000n0-Pf Message is frozen
2023-08-10 16:59:34 1qTmXZ-0007Wy-MN == [email protected] R=dnslookup T=remote_smtp defer (-54): retry time not reached for any host for 'gmail.com'
2023-08-10 16:59:34 1qTnpj-00018G-Aa Message is frozen
2023-08-10 16:59:34 1qTlp0-0002Sx-8u == [email protected] R=dnslookup T=remote_smtp defer (-54): retry time not reached for any host for 'gmail.com'
2023-08-10 16:59:34 End queue run: pid=166215

Oracle cloud blocks outgroing mail traffic…

1 Like

Ohhh… I didn’t know that…
It is strange, because I also enabled the ports required for sending mail in the Oracle control panel, and by typing the netstat -plntu command, it can be seen on the console that it is listening on that port.

its not about listening, its about sending.

I mean listening → opened and can send/receive packets.

OK, I moved from Oracle cloud to Linode.
Installed, but SPF and DKIM records missing from control panel hostname, wich is a subdomain (hcp.mydomain.xy)

exim4 mainlog

2023-08-11 10:40:41 1qUPZR-0006KJ-UC <= [email protected] U=admin P=local S=1337 id=t7IjIq4ocoRvnta0xGdEeFj4adKOfsYjAG1lQazk@localhost.localdomain
2023-08-11 10:40:42 1qUPZR-0006KJ-UC H=gmail-smtp-in.l.google.com [142.250.27.27] TLS error on connection (recv): The TLS connection was non-properly terminated.
2023-08-11 10:40:42 1qUPZR-0006KJ-UC H=gmail-smtp-in.l.google.com [142.250.27.27] TLS error on connection (recv): The specified session has been invalidated for some reason.
2023-08-11 10:40:42 1qUPZR-0006KJ-UC ** [email protected] R=dnslookup T=remote_smtp H=gmail-smtp-in.l.google.com [142.250.27.27] X=TLS1.3:ECDHE_X25519__ECDSA_SECP256R1_SHA256__AES_256_GCM:256 CV=yes: SMTP error from remote mail server after pipelined end of data: 550-5.7.26 This mail is unauthenticated, which poses a security risk to the\n550-5.7.26 sender and Gmail users, and has been blocked. The sender must\n550-5.7.26 authenticate with at least one of SPF or DKIM. For this message,\n550-5.7.26 DKIM checks did not pass and SPF check for [hcp.mydomain.xy] did not\n550-5.7.26 pass with ip: [170.187.190.142]. The sender should visit\n550-5.7.26  https://support.google.com/mail/answer/81126#authentication for\n550 5.7.26 instructions on setting up authentication. i13-20020aa7dd0d000000b0052334349854si3206915edv.44 - gsmtp
2023-08-11 10:40:42 1qUPZS-0006LE-C5 <= <> R=1qUPZR-0006KJ-UC U=Debian-exim P=local S=3951
2023-08-11 10:40:42 1qUPZR-0006KJ-UC Completed
2023-08-11 10:40:42 1qUPZS-0006LE-C5 remote host address is the local host: hcp.mydomain.xy
2023-08-11 10:40:42 1qUPZS-0006LE-C5 == [email protected] R=dnslookup defer (-1): remote host address is the local host
2023-08-11 10:40:42 1qUPZS-0006LE-C5 Frozen
2023-08-11 10:43:28 no host name found for IP address 45.91.171.169
2023-08-11 10:43:28 SMTP call from [45.91.171.169] dropped: too many syntax or protocol errors (last command was "?\b?\006?\027?\030?\031?\v?\002\001??\r?", NULL)

Where can I see the spf and DKIM settings for the domain of the control panel on the control panel?
Control panel: hcp.mydomain.xy

have you got any idea?