Lists the IP addresses currently assigned to the machine itself.
The call is GET /getlocalips. The manual shows no format parameter for this endpoint — in the example it is opened in a browser.
Sending addresses are bound to IPs; this output shows which of them actually exist on the node. An address in smtp-source-host that the machine does not have is a common reason a sending address does not work.
Access is decided by http-access based on the address the request came from — the monitor level is enough for reading. The key from http-api-key in the X-API-Key header grants full access from any address.
What to ask this endpoint:
| Question | This one or not |
|---|---|
| which addresses are assigned to the machine | yes |
| whether the machine has the address from smtp-source-host | yes — by comparing with the response |
| which addresses the world sees | no — that is a question for the hosting provider’s network |
# the machine's addresses curl -s 'http://127.0.0.1:8080/getlocalips'
1 relation
curl -s 'http://127.0.0.1:8080/getlocalips'
ip -o addr show scope global | awk '{print $4}'
3 articles
◇A name, an address and a greeting name — what a sending address consists ofThe definition is small, and two of its properties are easy to miss — omitting the address line silently inherits the node’s settings, and several addresses in one block rotate round-robin.◇The activation key is a prerequisite for installation, not a step after itWithout an activation key from SparkPost support the engine neither installs nor runs, and the license tier sets the outbound connection ceiling: on Standard everything above 200 is ignored.◇Cloud restrictionsClouds restrict outbound mail on port 25 until you ask them to lift the limit, and mailbox providers treat their address ranges with suspicion.