Dear all,We are having issues retrieving emails from an office365 account. When we set everything up as multiple discussions here were advising, we get the email configuration screen stuck on "Loading" and it never saves. Tried Pop+SSL, IMAP+SSL. SMTP works well. Office 365 account is a standard account with IMAP enabled, and username matches email address. Password is confirmed and works.Lastly, we have made sure that outgoing connections to port 993 are allowed on the web server.What else shall we check?EnvironmentblankEmail Setupblank

Can't see screenshots

Have you checked logs of osTickets, php, email server, etc..?

Please help us to help you by reading and following the posting guidelines located in this thread: Please read before requesting assistance.  The more information you give us the better we will be able to assist you. Thank you.Your screen shots are broken.environemnt details

Getting "Page not found" when trying to edit the post. Also would be great if one can upload screenshots directly rather than first uploading them on a web server. Here screenshots again:blankblank

You have IMAP POP status set to disabled in your screen shot.

Yes, when I set it to Enabled (Aktivieren) and click Save, then it gets stuck on Loading and never saves.

Are you getting any errors in your Apache or PHP error logs?Also I'm pretty sure that you are using the wrong port under SMTP.  I think it should be 587.

Try Email Login Information :domain\userName

6 days later

@[deleted]: SMTP works, Office365 allows port 25 as well. Will be checking the Apache and PHP logs now.@[deleted]: unfortunately domain\username didn't help

I send/receive email through o365.  Granted im not in .de.We had to use:Username: email@domain.tldSMTPStatus: enablehostname: smtp.office365.com port 587Authentication Require: yesHeader Spoofing: unchecked.to get it to work.

14 days later

This is what I'm getting in apache2\error.it-support.site.de.log when trying to save the settings. any ideas?

[Mon Oct 15 10:56:06.770093 2018] [:error] [pid 29694] [client 91.64.234.123:56725] PHP Warning: file_exists(): open_basedir restriction in effect. File(/var/www/site.de) is not within the allowed path(s): (/var/www/site.de/it-support/htdocs:/usr/share/php:/tmp) in /var/www/site.de/it-support/htdocs/include/class.plugin.php on line 288, referer: https://it-support.site.de/scp/emailsettings.php
[Mon Oct 15 10:56:08.336192 2018] [:error] [pid 29694] [client 91.64.234.123:56725] PHP Warning: file_exists(): open_basedir restriction in effect. File(/var/www/site.de) is not within the allowed path(s): (/var/www/site.de/it-support/htdocs:/usr/share/php:/tmp) in /var/www/site.de/it-support/htdocs/include/class.plugin.php on line 288, referer: https://it-support.site.de/scp/emails.php
[Mon Oct 15 10:56:11.440239 2018] [:error] [pid 29694] [client 91.64.234.123:56725] PHP Warning: file_exists(): open_basedir restriction in effect. File(/var/www/site.de) is not within the allowed path(s): (/var/www/site.de/it-support/htdocs:/usr/share/php:/tmp) in /var/www/site.de/it-support/htdocs/include/class.plugin.php on line 288, referer: https://it-support.site.de/scp/emails.php?id=5
[Mon Oct 15 10:56:11.460498 2018] [:error] [pid 29694] [client 91.64.234.123:56725] PHP Warning: file_exists(): open_basedir restriction in effect. File(/var/www/site.de) is not within the allowed path(s): (/var/www/site.de/it-support/htdocs:/usr/share/php:/tmp) in /var/www/site.de/it-support/htdocs/include/class.i18n.php on line 597, referer: https://it-support.site.de/scp/emails.php?id=5
[Mon Oct 15 10:56:11.463215 2018] [:error] [pid 29694] [client 91.64.234.123:56725] PHP Warning: file_get_contents(): open_basedir restriction in effect. File(/var/www/site.de) is not within the allowed path(s): (/var/www/site.de/it-support/htdocs:/usr/share/php:/tmp) in /var/www/site.de/it-support/htdocs/include/Spyc.php on line 480, referer: https://it-support.site.de/scp/emails.php?id=5
[Mon Oct 15 10:56:57.950564 2018] [:error] [pid 28323] [client 91.64.234.123:56789] PHP Warning: file_exists(): open_basedir restriction in effect. File(/var/www/site.de) is not within the allowed path(s): (/var/www/site.de/it-support/htdocs:/usr/share/php:/tmp) in /var/www/site.de/it-support/htdocs/include/class.plugin.php on line 288, referer: https://it-support.site.de/scp/emails.php?id=5
[Mon Oct 15 11:03:57.486682 2018] [:error] [pid 15315] [client 91.64.234.123:57376] PHP Warning: file_exists(): open_basedir restriction in effect. File(/var/www/site.de) is not within the allowed path(s): (/var/www/site.de/it-support/htdocs:/usr/share/php:/tmp) in /var/www/site.de/it-support/htdocs/include/class.plugin.php on line 288, referer: https://it-support.site.de/scp/emails.php?id=5
[Mon Oct 15 11:04:02.579939 2018] [:error] [pid 31070] [client 91.64.234.123:57386] PHP Warning: file_exists(): open_basedir restriction in effect. File(/var/www/site.de) is not within the allowed path(s): (/var/www/site.de/it-support/htdocs:/usr/share/php:/tmp) in /var/www/site.de/it-support/htdocs/include/class.plugin.php on line 288, referer: https://it-support.site.de/scp/emails.php?id=5
[Mon Oct 15 11:04:02.596287 2018] [:error] [pid 31070] [client 91.64.234.123:57386] PHP Warning: file_exists(): open_basedir restriction in effect. File(/var/www/site.de) is not within the allowed path(s): (/var/www/site.de/it-support/htdocs:/usr/share/php:/tmp) in /var/www/site.de/it-support/htdocs/include/class.i18n.php on line 597, referer: https://it-support.site.de/scp/emails.php?id=5
[Mon Oct 15 11:04:02.599131 2018] [:error] [pid 31070] [client 91.64.234.123:57386] PHP Warning: file_get_contents(): open_basedir restriction in effect. File(/var/www/site.de) is not within the allowed path(s): (/var/www/site.de/it-support/htdocs:/usr/share/php:/tmp) in /var/www/site.de/it-support/htdocs/include/Spyc.php on line 480, referer: https://it-support.site.de/scp/emails.php?id=5
[Mon Oct 15 11:04:17.994059 2018] [:error] [pid 27268] [client 91.64.234.123:57413] PHP Warning: file_exists(): open_basedir restriction in effect. File(/var/www/site.de) is not within the allowed path(s): (/var/www/site.de/it-support/htdocs:/usr/share/php:/tmp) in /var/www/site.de/it-support/htdocs/include/class.plugin.php on line 288, referer: https://it-support.site.de/scp/emails.php?id=5

You might have some kind of redirect or permission to your plugin

Permissions should be set for folders 755 and for files 0644

Your error message "[Mon Oct 15 11:04:17.994059 2018] [:error] [pid 27268] [client 91.64.234.123:57413] PHP Warning: file_exists(): open_basedir restriction in effect. File(/var/www/site.de) is not within the allowed path(s): (/var/www/site.de/it-support/htdocs:/usr/share/php:/tmp) in /var/www/site.de/it-support/htdocs/include/class.plugin.php on line 288, referer: https://it-support.site.de/scp/emails.php?id=5

"open_basedir restriction in effect."

Your php.ini has the open_basedir directive enabled. Something some where is trying to open a file outside of the scope of your base_dir.

What are you using as your IMAP & SMTP servers?

Try changing your Apache log level to 'debug' or 'trace8' for even more detailed error log.

But as everyone else said, this is definitely a permission issue involving your osTicket root directory in /var/www/ not being allowed access to PHP files..

Try this:

Before you do anything lets backup your www directory.
cd /var/www/
mkdir backup
cp -a /var/www/* /var/backup/

Now run this:

chmod 666 /var/www/site.de/osticket/upload/include/ost-config.php } change path to point to ost-config.php

chmod -R g+s /var/www/site.de

find /var/www/site.de -type d -exec chmod 0755 {} \;

find /var/www/site.de -type f -exec chmod 0644 {} \;

Write a Reply...