[SOLVED] api config/transport/ issue - Transport map entry '' does not exist

lonea

Active Member
Feb 25, 2020
30
3
28
49
Trying to add a domain into the transport using the API. Using the pve2-api-php-client class.

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?
 
Thanks for coming back to describe your solution!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!