Error: mail domain mydomain.tld doesn't exist

Hello,

I am trying to add let’s encrypt via API for mydomain.tld so I have the following settings:

hash=myapikeyhiddeninordertopostontheforum&returncode=100&cmd=v-add-letsencrypt-domain&arg1=mypseudo&arg2=mydomain.tld&arg3=www.mydomain.tld&arg4=yes

And I always get the following error: Error: mail domain mydomain.tld doesn’t exist

Is there a way to bypass this? I don’t want to create a mail domain. And if I do it manually with the web interface, it works without having a mail domain.

Is there a workaround? Thanks in advance

If you are not adding a certificate for a mail domain, don’t use the arg4 or change it to no.

1 Like

Thank you so much it was just that!

BTW is there a way to activate the redirection to www via API?

Like - Enable domain redirection - Redirect visitors to www.mydomain.tld

It’s the last thing I’m trying to do with api I tried that:

v-change-web-domain-tpl&arg1=hestiacppseudo&arg2=mydomain.tld&arg3=default&arg4=default-ssl but no success

v-add-web-domain-redirect mypseudo mydomain.tld "https://www.mydomain.tld"

If you only want to force https:

v-add-web-domain-ssl-force mypseudo mydomain.tld
1 Like

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