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
1
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:
2
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
3
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
4
Restart Postfix
Debian/Ubuntu:RHEL/CentOS:
Verify the configuration
1
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:
2
Check the mail log
Tail the mail log to confirm the message was accepted and cleared from the queue without errors:
3
Review the MailChannels Host Console
Log in to your MailChannels Host Console and check Outbound > Activity > Log Search to confirm your test message was processed and delivered.

