Running Sendmail Service
Running Sendmail Inside a Container
Sendmail is included in platform application-server builds by default. Whether it can run on a container with only an internal address depends on the hosting provider’s settings. On some platforms, a Public IP must be attached before the service can start.
Check Sendmail Availability
To confirm whether the hosting provider permits Sendmail on containers that have only an internal IP address, use either of the following methods:
- Send a request through Help > Contact Support in the dashboard.
- Check the running processes manually through SSH.
1Connect through SSH Gate
Connect to the platform account and open the required application-server container.
2Review the process tree
Run the following command inside the application-server shell:
pstree
Look for the sendmail process. When it appears in the process tree, the service is already running and can be used immediately.
When the process is not listed, enable the service using the procedure below.
Enable Sendmail
The simplest way to start Sendmail is to attach a Public IP to the application-server layer.
- Open the environment topology wizard during environment creation or through Change environment topology.
- Enable the Public IPv4 switch for the application-server layer.
- Click Apply to confirm the change.
After the external IP is attached, Sendmail starts automatically.
Send a Test Message
1Connect to the application server
Open an SSH session to the container where the Sendmail service is running.
2Run the Sendmail command
Use the following command to send a simple test message:
echo "{text}" | sendmail -f {from_address} -v {to_address}
{text}— message body, for exampleUnlimited PaaS.{from_address}— sender address in themail@example.comformat.{to_address}— recipient address in the same email format.-v— displays verbose delivery output in the terminal.
Verify Email Delivery
Open the recipient mailbox and check for the new message. Delivery may take a few minutes.
