Quick and dirty way of bouncing mail off Exchange 2003

ken.mcgraw@alls...
Posts: 25
Member Since:
2009-09-06

- Important Information -
This is not the most secure way and is done by relaxing the security on your exchange server. I have run internal relays for many years and never once had an issue. Not to say you won’t. That being said:

Do this at your own risk. If your environment is not set up properly you are at risk of data loss and creating an open relay. The point is, ensure you have a current, tested backup of all system and data files and understand how to restore the system in case something goes very wrong. You can still yell at me, but I assume no responsibility for your actions and use of the information and disclaim any legal responsibility for any consequences of such actions.

Here we go... In order to bounce mail off of a Exchange 2003, you need to create a relay
Note: 2000 is very similar but the MMC's and containers may be named differently
This configuration may not be the most secure but with other proper security in place, should suffice
This information is based on a standard Exchange 2003 installation/configuration
Exchange must be in place and functioning at the time of modification

Creating the relay
From your Exchange server and launch "Exchange System Manager"
Expand "Administrative Groups"
Expand "First Administrative Group"
Expand "Servers"
Expand "your server name" (whatever this may be)
Expand "Protocols"
Expand "SMTP"
Right click "Default SMTP Virtual Server"
Select "Properties"
Select "Access"
Select "Relay"
Select "Add"
Enter the internal IP address of your trixbox
Close, close, close, apply, apply, apply...

Now to modify the security in the trixbox in order for exchange to accept the mail:
Again, do this at your own risk and backup, backup, backup

You need to modify /etc/postfix/main.cf
I know there is a way to do this through the CLI, but because I am a newbie I opted for what appeared to be an easier course of action.
First start by installing webmin (google it - if you can't find it, ping me)
login to webmin (google it - if you can't find it, ping me)
Select servers
Select "Postfix configuration"
Select "Edit Map files"
At the very bottom of the file, set the configuration as follows:
relayhost = exch01:25
smtp_sasl_auth_enable = no
smtp_sasl_password_maps = hash:/etc/postfix/sasl_password
smtp_sasl_security_options =
smtp_use_tls = yes

Note to above: Modify your relayhost to match that of your internal mail server name and or IP
This allows you to bounce mail off your internal Exchnage server named "server_name" over port 25
The key security issue is resolved by changing smtp_sasl_auth_enable = from "yes" to "no"

From this point on I was able to relay mail from my trixbox off my exchange 2003 server

Hope this helps.

I am posting this because I feel it would have saved me countless hours had it been available to me during the installation and setup. If the webmaster feels this is in the wrong place and or not relevant feel free to delete it, I won't be offended.