Monitoring, Management & Location Tracking

Configuring Airwave to support multiple ISP accounts

This article provides the steps to configure Airwave Postfix to support multiple ISP accounts to relay emails.

 

Environment: Only Postfix version v2.3+ supports multiple ISP accounts via sender-dependent override for the global relayhost parameter settings.

 

 

Network Topology :

 

[a] user1@isp1.com must be relay via smtp.isp1.com.
[b] user1@isp2.com must be relay via smtp.isp2.com.
[c] me@mycorp.com must relay all my default email via smtp.mycorp.com.

 

 

Open your main.cf file:

 

 

 

# vi /etc/postfix/main.cf

 

 

 

Add or modify the settings as follows:

 

 

 

smtp_sender_dependent_authentication = yes

 

sender_dependent_relayhost_maps = hash:/etc/postfix/relayhost_map

 

smtp_sasl_auth_enable = yes

 

smtp_sasl_password_maps = hash:/etc/postfix/passwd

 

relayhost = [smtp.mycorp.com]:submission 

 

 

 

Create /etc/postfix/relayhost_map file:

 

 

 

# vi /etc/postfix/relayhost_map

 

 

 

Append configuration as follows (please note that default smtp.mycorp.com is not included) :

 

 

 

# Per-sender provider

 

user1@isp1.com  [smtp.isp1.com]

 

user1@isp2.com  [smtp.isp2.com]

 

 

 

Create update /etc/postfix/passwd file as follows:

 

 

 

# Per-sender authentication

 

user1@isp1.com  user1@isp1.com:password4isp1

 

user1@isp2.com  user2@isp2.com:password4isp2

 

# Login for the default relayhost

 

[smtp.mycorp.com] defaultUsername:defaultPassword

 

 

 

Save and close the file. Restart Postfix:

 

 

 

# postmap hash:/etc/postfix/passwd

 

# postmap hash:/etc/postfix/relayhost_map

 

# /etc/init.d/postfix reload

 

  

 

Where,

 

 

 

smtp_sender_dependent_authentication = yes : Enable sender-dependent authentication in the Postfix SMTP client; this is available only with SASL authentication.

 

 

 

sender_dependent_relayhost_maps = hash:/etc/postfix/sender_relay : A sender-dependent override for the global relayhost parameter setting. The tables are searched by the envelope sender address and @domain. A lookup result of DUNNO terminates the search without overriding the global relayhost parameter setting.

 

 

 

smtp_sasl_auth_enable = yes : Enable SASL authentication in the Postfix SMTP client. By default, the Postfix SMTP client uses no authentication.

 

 

 

smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd : SMTP client lookup tables with one username:password entry per remote hostname or domain, or sender address when sender-dependent authentication is enabled.

 

 

 

relayhost = [mail.myisp.net]:submission : Setup default relay host.

 

 

 

 

 

Version history
Revision #:
1 of 1
Last update:
‎07-14-2014 06:38 AM
Updated by:
 
Labels (1)
Contributors
Search Airheads
Showing results for 
Search instead for 
Did you mean: 
Is this a frequent problem?

Request an official Aruba knowledge base article to be written by our experts.