Configure Plesk and Hosted Messaging and Collaboration (HMC) Exchange for Spilt Domains

This article will go over configuring Plesk to allow a split domain where some mail is being hosted with Plesk and other mail is being hosted with Exchange. The reason for performing the steps in this article is due to Plesks inability to allow the % sign within the email field when configuring forwarders.

Configure the user in Plesk

Configure the user as a normal redirect in Plesk, replacing the `%` with another character such as `-`. For example, configure exchangeuser@example.com to redirect to exchangeuser-example.com@gateway.myexchangeemail.com.

Enter a mysql shell

[root@host bin]# mysql -uadmin -p`cat /etc/psa/.psa.shadow` mysql> use psa; Database changed

Find the user

mysql> select * from mail where mail_name = 'exchangeuser'\G *************************** 1. row *************************** id: 1 mail_name: exchangeuser perm_id: 2 postbox: true account_id: 4 redirect: false redir_addr: exchangeuser-example.com@gateway.myexchangeemail.com mail_group: false autoresponder: false spamfilter: false virusfilter: none mbox_quota: -1 dom_id: 1

Update the user to the correct forwarding address

mysql> update mail set redir_addr = 'exchangeuser%example.com@gateway.myexchangeemail.com' where id=1;

Check that the address is correct

mysql> select * from mail where mail_name = 'exchangeuser'\G *************************** 1. row *************************** id: 1 mail_name: exchangeuser perm_id: 2 postbox: trueaccount_id: 4 redirect: false redir_addr: exchangeuser%example.com@gateway.myexchangeemail.com mail_group: false autoresponder: false spamfilter: false virusfilter: none mbox_quota: -1 dom_id: 1mysql> exit

Rebuild the mail users

Rebuild the mail virtual users based on the database changes with the following command:

/usr/local/psa/admin/sbin/mchk --with-spam