• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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