• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

external mail server

R

robgenovesi

Guest
Hi All,

I'm running Plesk 9.5 and use an external e-mail server. I would like all of the mail buttons in Plesk to goto our external e-mail server control panel and not Plesk's built-in mail funcitons. Is there anyway that this can be done?

Thanks,

Rob
 
Bummer. It sounds like Version 10 has the ability to hide the internal mail controls though - is this correct?

Thanks!
 
external mail server - SOLVED

Ok, I was able to get Plesk 9.x working with an external mail server - here's how:

Plesk 9 admin interface uses lighttpd. I just edited the configuration file to add a rewrite for mail pages and redirected them to a custom page that I created. Although it took a long time to figure out the solution it is not very hard to implement:

- edit /etc/sw-cp-server/applications.d/plesk.conf
- find the "url.rewrite-once" sections and make the following modifications:

url.rewrite-once = (
"^/plesk/client\@(\d+)/domain\@(\d+)/mail.*" => "/custom_mail.php?C=$1&D=$2"
, "^/plesk/([^\\?]*)(\?(.*))?" => "/plesk.php?$3"
, "^/sitepreview/(.*)?" => "/sitepreview.php/$1"
, "^/sso/ui" => "/sso/ui.php"
, "^/sso/users" => "/sso/users.php"
, "^/sso/signout" => "/sso/signout.php"
)

note: it's import that the new redirect be added BEFORE the "^/plesk" line.

- create the custom page (custom_mail.php) in the /usr/local/psa/admin/htdocs/ directory. in my case I am passing the client id and domain id to my php page so that I can look them up in the "psa" database and do an automated login to my external mail system.


This worked well for me, maybe others will find the information useful as well.


-Rob
 
Back
Top