Trying to add a domain into the transport using the API. Using the pve2-api-php-client class.
The dump of the header comes back with
What am I missing here?
PHP:
$pve2->PUT("config/transport/domain.com", array("host"=>"mx.domain.com","port"=>25,"use_mx"=>1,"protocol"=>"smtp")
The dump of the header comes back with
Code:
resource(6) of type (curl)
string(336) "HTTP/1.1 500 update transport map entry failed: Transport map entry '' does not exist
Cache-Control: max-age=0
Connection: close
Date: Tue, 13 Jul 2021 22:59:21 GMT
Pragma: no-cache
Server: pve-api-daemon/3.0
Content-Length: 13
Content-Type: application/json;charset=UTF-8
Expires: Tue, 13 Jul 2021 22:59:21 GMT
What am I missing here?