Email server possible?

For Hestia’s alerts to email me, is it by the email server setup from HestiaCP?

If so, may I know any documents can guide to setup email server on HestiaCP? I am the only user on HestiaCP and all my DNS record is managing at VPS provider.

You should start here:

Thanks, but how about the TXT, MX..etc records need to put manually ?

Thanks

This should guide you: https://www.server-world.info/en/note?os=Debian_12&p=dns&f=3

Change OS if required and navigate where needed.

Yes, you must add ALL the records manually.

Regarding the DNS records you need to add in DigitalOcean for the mail domain: once you’ve added the mail domain in Hestia, click on the DNS Records icon.

And you will see all the records and values you need:

o cool Thanks so much

I just reference these details back to my DNS records?

But this applies to per user account. How about the main instance?(hcp.mydomain.com), need to switch it to use my SMTP setup from my main account (domain.com) ?

Thanks

@sahsanu

Seems something went wrong. I’ve setup “configure-server-smtp.sh“ and tried to create new user, the welcome email get through.

However, seems like the internal email from Cronjob still frozen and sending from some non-exist user to root user but not using the SMTP I’ve setup

root@hcp:~# exim -bp

18h   610 1vDImJ-00000001DDa-2ntg [email protected] *** frozen ***[email protected]

13h   610 1vDN2j-00000001Pj3-0fkW [email protected] *** frozen ***[email protected]

and personal Cronjob is sending from [email protected]

root@hcp:~# exim -bp
 1m   726 1vDacr-000000003rR-3H3b <[email protected]>
          myadminemail

I am reading this

But seems like the workaround there didn’t work as changing cronjobs will remove the config

check the exim mainlog in /var/log/exim4

Hi @Raphael

The problem now is Crontab is trying to send the email from {logged in username}@hcp.domain.ltd But this won’t work as I am using external SMTP

You need to use an external smtp, which allows you to overwrite the sender. You can’t use an external provider like gmail or outlook for this. Have a look at mailgun or similar services. Also keep in mind, that we build hestia for sysadmins with existing knowledge, we do not have the ressources to show or provide guidelines for every basic step.

1 Like

I’ve already setup external SMTP and is working for sending welcome emails and also email relay. Just the Cronjob part, it insist to use {username}@hcp.domain.ltd instead of the SMTP sender address.

For Panel cronjob, I can edit the file from console adding MAILFROM=

But for users (including admin user), the only way to edit is using “crontab -e -u {username}“ but the setting will be gone as long as you updated cronjob list or disable/enable notification.