Help with email

I added my domain to email, then I have configured all necessary DNS records in my godaddy account. But am I still not able to receive nor send emails?

Any help, please?

You should check log /var/log/exim4/mainlog

What’s your domain?

zoominphotography.com

1.- I see you are on Oracle Cloud, Oracle blocks by default outbound port 25 so you won’t be able to send emails directly. I’ve no idea if they can remove the block but in that case you must use a smtp relay like smt2go, brevo, etc.

2.- Your mail server identifies itself as zoomin-20220802-1052.subnet07090916.vcn07090916.oraclevcn.com

❯ telnet mail.zoominphotography.com 25
Trying 129.151.136.50...
Connected to mail.zoominphotography.com.
Escape character is '^]'.
220 zoomin-20220802-1052.subnet07090916.vcn07090916.oraclevcn.com
quit
221 zoomin-20220802-1052.subnet07090916.vcn07090916.oraclevcn.com closing connection
Connection closed by foreign host.

But that domain doesn’t resolve:

❯ dig zoomin-20220802-1052.subnet07090916.vcn07090916.oraclevcn.com +short

3.- Also, your ip should have a PTR record pointing to that hostname but it doesn’t:

❯ dig -x 129.151.136.50 +short


1 Like

Hello!
I’m in the exact same situation as the OP :disappointed:

I have an instance in Oracle cloud and I’d like to set my own SMTP server so that it can be used by all sites I host in HestiaCP. As I’m a paying user I got the port 25 unblocked by Oracle (after just 5 days of waiting :sweat_smile: ).
If I test my .subnet.vcn.oraclevcn.com domain I see that it doesn’t return an A record (as it’s only available internally, where it does have a local IP). Does anyone know how to proceed? Can I just change the hostname used for SMTP manually in smtp_active_hostname? Is that it?

Please let me know if I should open a different thread :pray:

Yes, you can but not only in smtp_active_hostname also in helo_data directives, I explain it in this post

Remember to modify the PTR record of your public ip to point to this new hostname.

2 Likes

Thank you @sahsanu that did it!

Remember to modify the PTR record of your public ip to point to this new hostname.

I have absolutely no idea how to do that from Oracles panel but I will look into it :+1: thank you!

My score moved from 0/10 to 4/10, now I only need to fix the DKIM, will look into the docs now

1 Like

:thinking: okay I don’t get it.

My setup:

[email protected] is sending an email to a tester which returns:

I got the DKIM record from v-list-mail-domain-dkim-dns mydomain.com mydomain.com:

RECORD            TTL         TYPE      VALUE
------            ---         ----      -----
_domainkey        3600   IN   TXT      "t=y; o=~;"
mail._domainkey   3600   IN   TXT      "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDBA31Ri0I1vDjAlaIof0466XIk8q74+nFrFBU8LJnZloHianwZrucCWqqEytsoF9zCr/IvktOQ8TwDIELiGdqrRzQrfq3xTdnY3Do53+/adiJUZFAZSYAdXqH+P9kRkDTMXgJDdouWhxUXhmhRtkFZmWnKiCJ/0OJ60DS2raGZawIDAQAB"

Of course, mydomain.com it’s the real domain, ignore what you see in the screenshot
What am I doing wrong?

smtp_active_hostname and helo is set to smtp.mydomain.com if that’s of any help

And you created the TXT record mail._domainkey for your domain in your current DNS server (I don’t know if you are using Hestia as dns server or using an external DNS server)? Without the actual domain, I can’t check it.

Correct!