======Exchange 2007====== You can link VPOP3 to Exchange Server, so that Exchange Server sends outgoing mail through VPOP3 and VPOP3 sends any incoming mail directly to Exchange Server. You should first of all set up VPOP3 to send and receive Internet email as normal. Note that these instructions are specifically for linking VPOP3 to Exchange, they do not mention the general Exchange configuration that you will need to do. For that, see your Exchange documentation, or talk to your Exchange installer. Note that we do not offer support for Exchange, and we are not Exchange experts, so the instructions below are following through the steps we made to configure it and have it working on a test system here. If you have slightly different requirements, then you may need to refer to the Exchange documentation. =====VPOP3 and Exchange Server on the same PC===== ====Changing the Exchange Server SMTP Port==== As both VPOP3 and Exchange Server are on the same computer, you will need to change the TCP/IP port assignments for the SMTP service in Exchange Server. - On the Exchange Server computer go to **Start -> Programs -> Microsoft Exchange Server 2007 -> Exchange Management Console** - On the left of the Management Console, choose **Server Configuration**, then **Hub Transport**. Now in the **Receive Connectors** section, right-click the **Default-** connector, and choose **Properties**. - Go to the Network tab. In the top half of this page, called **Local IP Addresses** select each address in turn, and press **Edit...** Change the **Port** to a different number larger than 1024, for instance **5025**, and press **OK**. Now follow the instructions for **VPOP3 and Exchange Server on different PCs** below =====VPOP3 and Exchange Server on different PCs===== ====Setting up Exchange to accept mail for the appropriate domain==== - On the Exchange Server computer go to **Start -> Programs -> Microsoft Exchange Server 2007 -> Exchange Management Console** - On the left of the Management Console, choose **Organization Configuration**, then **Hub Transport**. On the right-hand side select the **Accepted Domains** tab, and make sure that your email domain is listed in there in the **Accepted Domain** column - On the **E-Mail Address Policies** tab, right-click the **Default Policy** item, and choose **Edit...** - Press **Next** until you are on the **E-Mail Addresses** section. Make sure there is an entry there under **SMTP** called **@**. Usually the above settings are set during installation of Exchange Server, but it will cause problems if they are not there, so it is worth checking. ====Setting up Exchange to forward outgoing mail back to VPOP3==== - In the Exchange Management Console, choose **Organization Configuration**, then **Hub Transport**. On the right-hand side select the **Send Connectors** tab. - If there is already an **All Outgoing Mail** connector defined, go to the next section - Press **New Send Connector** on the far right. - In the **Name** box enter something like "Mail to VPOP3" - In the **Select the intended use** box, make sure that **Custom** is selected. Press **Next** - On the **Address Space** page, press **Add**. In the **Address** box type * (asterisk) and press **OK**. Press **Next** - On the **Network Settings** page, select **Route mail through the following smart hosts:** - Press **Add**. Enter the name or IP address of the VPOP3 computer. Press **OK**. Press **Next** - On the **Configure smart host authentication settings** page, choose either **None** or **Basic Authentication**, as required by your VPOP3 configuration, and enter the appropriate details. Press **Next** - Press **Next** - Press **New**, **Finish** - Go to the **Setting up VPOP3 to forwarding incoming mail to Exchange** section below If there was already an **All Outgoing Mail** connector defined in the **Send Connectors** section. - Right-click the **All Outgoing Mail** connector, and choose **Properties** - Go to the **Network** tab - Select **Route mail through the following smart hosts:** - Press **Add**. Enter the name or IP address of the VPOP3 computer. Press **OK**. - If your VPOP3 server requires authentication, press the **Change** button to set this - Close the **All Outgoing Mail Properties** window ====Setting up VPOP3 to forward incoming mail to Exchange==== ===VPOP3 3.x or later=== ==If you have a catch-all email account at your ISP== Go to the Settings -> Local Mail -> LAN Forwarding -> Configuration page in the VPOP3 settings. - Click **Add Row** - In the **Address** column put something like //user1@mydomain.com// - In the **Server** column put something like //192.168.1.1:5025// You can tell VPOP3 to forward unspecified addresses to //user1@mydomain.com// by using: * Address: ~@mydomain.com * Server: 192.168.1.1:5025 * Rewrite Address: user1@mydomain.com If you want to forward ALL email addresses, use something like: * Address: *@mydomain.com * Server: 192.168.1.1:5025 where mydomain.com is your registered domain, or the subdomain given to you by your ISP, and 192.168.1.1 is the IP address of the Exchange Server computer. Note that using the wildcard will forward all addresses, so should only be used if you have a VPOP3 licence which supports unlimited LAN forwarding (eg a VPOP3 Basic licence for 25 users or more, or a VPOP3 Enterprise licence). Also, in the **Mail Connectors -> Mail Collectors -> (name)** page in the VPOP3 settings, make sure that the **POP3 Routing** option radio button is set to **Route by Parsing Message Headers**. ==If you have individual email accounts at your ISP== In the **Mail Connectors -> Mail Collectors -> (name)** page in the VPOP3 settings for each Mail Collector, set the **POP3 Routing** option radio button to **Forward all messages to another LAN mail server using SMTP**. Then, in the configuration boxes, put the email address on the Exchange Server, and the IP address:port of the Exchange Server SMTP service. ===VPOP3 2.x=== ==If you have a catch-all email account at your ISP== Go to the **Local Mail -> LAN Forwarding -> Configuration** page in the VPOP3 settings. In this LAN Forwarding configuration box put lines like: user1@mydomain.com 192.168.1.1:5025 user2@mydomain.com 192.168.1.1:5025 You can tell VPOP3 to forward unspecified addresses to //user1@mydomain.com// by using: ~@mydomain.com 192.168.1.1:5025 user1@mydomain.com If you want to forward ALL email addresses, use something like: *@mydomain.com 192.168.1.1:5025 where mydomain.com is your registered domain, or the subdomain given to you by your ISP, and 192.168.1.1 is the IP address of the Exchange Server computer. Note that using the wildcard will forward all addresses, so should only be used if you have a VPOP3 licence which supports unlimited LAN forwarding (eg a VPOP3 Basic licence for 25 users or more, or a VPOP3 Enterprise licence). Also, in the **External Mail -> In Mail** page in the VPOP3 settings, make sure that the **Extended Email Routing Options** main radio button is set to **Route According to Detected Recipient**. ==If you have individual email accounts at your ISP== In the **External Mail -> In Mail** page in the VPOP3 settings for each In Mail setting, set the **Extended Email Routing Options** main radio button to **Forward all messages to another LAN mail server using SMTP**. Then, in the configuration boxes, put the email address on the Exchange Server, and the IP address:port of the Exchange Server SMTP service. ===VPOP3 1.5.x and earlier=== ==If you have a catch-all email account at your ISP== Go to the VPOP3 Local Mail tab and press the Edit LAN Forwarding button.In this window put a line like *@mydomain.com 192.168.1.1:5025 where mydomain.com is your registered domain, or the subdomain given to you by your ISP, and 192.168.1.1 is the IP address of the Exchange Server computer. Also, in the In Mail tab, press Routing, and set the routing method to According to Recipienr ==If you have individual email accounts at your ISP== In the In Mail tab in the VPOP3 settings for each In Mail setting, press Routing, and set the routing method to set the Routing method to Forward to another LAN Mail Server, and in the box put something like //fred@domain.com@192.168.1.1:5025// See also: * [[using_vpop3_spam_filtering_with_lan_forwarding|Using VPOP3's Spam Filter with LAN Forwarding]] * [[How to 'share' domains between Exchange and VPOP3]] ====Avoiding other port conflicts==== Because both VPOP3 and Exchange Server are mail servers, they may both try to use the same TCP/IP ports which will lead to conflicts if they are both running on the same computer. This happens with 389 (LDAP). To stop these conflicts, either disable these protocols in the Exchange Server settings, or change the ports assigned to these services in the VPOP3 Services page.