Azure blocks outbound port 25 on VMs. This guide uses port 2525, which MailChannels configures identically to port 25.
Prerequisites
- Root or
sudoaccess to your Azure VM - Your MailChannels SMTP username and password
Configure the relay
Install Postfix
Connect to your VM over SSH and install Postfix along with the SASL authentication modules. When prompted during installation, select Local Only as the configuration type.Debian/Ubuntu:RHEL/CentOS:
Configure main.cf
Open Then append the following configuration to the end of the file:
/etc/postfix/main.cf in a text editor. Find and comment out the following lines if present:/etc/postfix/main.cf
/etc/postfix/main.cf
Create the password file
Create Secure the file and generate the Postfix hash map:
/etc/postfix/password with your MailChannels SMTP credentials. The file is space-delimited — do not use tabs:/etc/postfix/password
Verify the configuration
Send a test email
Install a mail utility and send a test message to an address you control.Debian/Ubuntu:RHEL/CentOS:Then send the test:
Check the mail log
Tail the mail log to confirm the message was accepted and cleared from the queue without errors:
Review the MailChannels Host Console
Log in to your MailChannels Host Console and check Log Search to confirm your test message was processed and delivered.

