• 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.

After updating to 10.0.1 error with ATMail

SalvadorS

Regular Pleskian
Hello,

We upgraded our ubuntu server to Plesk control Panel 10.0.1 after that webmail (was atmail) doesn´t works this is the error:

Warning: fopen() [function.fopen]: open_basedir restriction in effect. File(/etc/psa-webmail/atmail/.atmail.shadow) is not within the allowed path(s): (/var/www/atmail/:/var/log/atmail/:/etc/psa:/tmp/:/var/tmp/) in /var/www/atmail/libs/Atmail/Config.php on line 4

Warning: fopen(/etc/psa-webmail/atmail/.atmail.shadow) [function.fopen]: failed to open stream: Operation not permitted in /var/www/atmail/libs/Atmail/Config.php on line 4


Also If I go to the mail manager of the domain I can choose between atmail 1.02 and Horde.

2 Questions:

1.- Why I have atmail 1.02 instead 1.04 (With the update I thhink the new version is 1.04)
2.- How can I solve this problem?

Can I reinstall atmail again? How?

Thanks
 
For resolve this issue you need change information in atmail vhost.

You can see name of the file in /etc/apache2/conf.d/zz010_psa_httpd.conf (in the file you have a name of atmail vhost)

AtMail vhost is located in /opt/psa/admin/conf/generated/

For solve this issue quickly you can delete all open_basedir configuration in atmail and restart apache2 (you can make a copy for backup of this file).

Send me a feedback!
Thank's!
 
For solve your problem you can edit AtMail Vost File in /opt/psa/admin/conf/generated/

delete all open_basedir configuration in this vhost and replate it to

php_admin_value open_basedir "/var/www/atmail:/var/log/atmail:/tmp:/var/tmp:/etc/psa-webmail/atmail"

Send me a report...

Thank's
 
Fixed

Dear marco.saiu,

I did it what you told me and ATMail is working fine now. Thank you very much!!!!!!!
 
I owe you several beers! I have been trying to solve this problem for two days! Whenever I opened atmail webmail I received this error:

"Unable to get webmail password"

Your fix solved the problem for me. Thank you very much!
 
New Upgrade!!!

Hello,

for solve this problem using open_basedir option open your atmail default conf:

in /opt/psa/admin/conf/generated/

use this comand for see last atmail default conf: ls -l *atmail*

edit this file and change all open_basedir istruction change:

php_admin_value open_basedir "/var/www/atmail/:/var/log/atmail/:/etc/psa/:/tmp/:/var/tmp/"

to

php_admin_value open_basedir "/var/www/atmail/:/var/log/atmail/:/etc/psa/:/tmp/:/var/tmp/:/etc/psa-webmail/atmail/"

Save your file and restart apache2 with

apache2ctl or /etc/init.d/apache2 restart


Please send me your feedback!

Best Regards,
Marco Saiu
Servizi Internet Srl
 
hello,

when i open atmail, then i see the login page.
But over the login is this error code:

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/atmail/libs/PEAR/DB.php on line 472

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/atmail/libs/PEAR/DB.php on line 549

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/atmail/libs/PEAR/DB.php on line 1204

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/atmail/libs/PEAR/PEAR.php on line 569

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/atmail/libs/PEAR/PEAR.php on line 572

How can i fix it ?

thanx for answers
 
Better Answer?

marco.saiu definitely lead me to the solution, but I think there is a more correct solution. Here's what I know:

Edit the base apache config template used by Plesk for AtMail located at /etc/psa-webmail/atmail/atmail_vhost.conf

You need to add the path "/etc/psa-webmail/atmail" to the open_basedir as previously mentioned. That is all that is missing. So you should see this entry four (4) times, two for http and two for https:

php_admin_value open_basedir "@WEBMAIL_DOCROOT@:/var/log/atmail:/etc/psa:/tmp:/var/tmp"

REPLACE WITH:

php_admin_value open_basedir "@WEBMAIL_DOCROOT@:/var/log/atmail:/etc/psa:/tmp:/var/tmp:/etc/psa-webmail/atmail"

Simply ":/etc/psa-webmail/atmail" added to the value

In another KB article where Plesk had us touch this file they said to rune these two commands afterward:

# /usr/local/psa/admin/sbin/webmailmng --remove --name=atmail
# /usr/local/psa/admin/sbin/webmailmng --install --name=atmail

Then I went into the domain, flipped web mail to Horde, then back to AtMail and it worked. My guess is this toggle triggers a restart as marco.saiu was instructing. Same end result but I think it should solve the issuing on any new domains as well.

Cheers,

OH BTW: I encountered this issue on 9.2.3 and the 10.0.1 fix mentioned here seems to be the same thing I needed, but I just want to be clear that my answer was based on 9.2.3. Will be at 10 soon so the problem should still be solved!
 
Why only on some servers

The info that there is a template for the atmail vhost file is very valuable, and I thank you for it.

One question I have is this: I have 50 servers running various Plesk panels in both the 9 and 10 series. Only one of them has had open_basedir errors.

Why do some servers need a change to the open_basedir value and others do not?

Ed
 
@EdwardG, well that is somewhat of a tough question knowing nothing about the history of your 50 servers. I'm taking a wild guess and thinking it could be an upgrade related issue. My box started on 8.x and has upgraded all the way to 10. So it could of been something missed along the upgrade path as opposed to the fresh install route. *shrug*
 
Hi,

I know this is an old thread, but I have the same problem 'Unable to get email password' when accessing webmail.mydomain.com ... This regardless of whether I have set Horde or Atmail in Plesk as preferred webmail-client.

Problem however:
- that my /etc/psa-webmail/atmail/atmail_vhost.conf does not exist
- there is a atmail.conf, but that does not have a open_basedir line where I can add this to....
- the webmailmng 'install' or 'remove' command simply tell me: command not found...... when I try

Am I missing some bigger picture here?? It's a new dedicated server with my provider, websites all work OK, just have no access to webmail....

Any hints in the right direction are appreciated, I'm no UNIX specialist but I can find my way around and 'VI' if I know where and what to do.......

By the way: it's a PLESK 10.2 system....

Johan
 
Last edited by a moderator:
using horde and atmail both for webmail.

Hi,

I have requirement where i need to use both atmail and horde.

when i use any one of them assginng through control panel it work fine for webmail.domain.com (either atmail or horde)

but i want horde to work using webmail.domain.com and atmail using mail.domain.com for the same domain.

i have added vhost file under /etc/psa-webmail/atmail/conf.d/domain.com .for this domain am able to login with horde ,when i use http:/mail.domain.com ,i get atmail page with user name password and domain name field.strange thing is in domain name its show mail.domain.com instead domain.com ,so user has to remove mail.domain.com and put domain.com before login.

if any one worked on this or understood my concern let me know how can i get rid of diplaying mail.domain insted domain.com at the atmail login page.
 
I've actually found a permanent solution to the problem today after having issues with APC as well.

You'll want to edit the following file (I prefer to use nano to edit, but the rest work too):

Code:
/usr/local/psa/admin/conf/templates/default/atmail.php

Inside the file you'll see two lines repeated (4) four times:

Code:
            php_admin_value open_basedir "<?php echo
                "$atmailDocroot/:/var/log/atmail/:/etc/psa:/tmp/:/var/tmp/" ?>"

You'll notice that the updated directory isn't included in the list, so you'll need to add ":/etc/psa-webmail/atmail/" to the end of the second line:

Code:
            php_admin_value open_basedir "<?php echo
                "$atmailDocroot/:/var/log/atmail/:/etc/psa:/tmp/:/var/tmp/:/etc/psa-webmail/atmail/" ?>"

After you've made the (4) four changes, you'll need to rebuild the host settings for httpd:

Code:
/usr/local/psa/admin/sbin/httpdmng --reconfigure-all



Also, as a side note, if you're using APC, you will get a login loop using AtMail. In order to get around the issue, you will have to add the following line:

Code:
php_admin_flag apc.enabled off

There are (4) four places you need to add the code, each of them after:

Code:
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_flag magic_quotes_gpc off
php_admin_flag register_globals off

So you should have the following in its place:

Code:
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_flag magic_quotes_gpc off
php_admin_flag register_globals off
php_admin_flag apc.enabled off

*If you modify the admin flags you'll have to rebuild again as well.*

Hope this helps!
 
Hi Thank you for the reply ,

i cant see this file in plesk 9.5.4 ,will you tell where exactly this file will be located on ver 9.5.4 ,so that i can do necessary changes and see if it works.

Regards
Sunil
 
Back
Top