Author Topic: RESOLVED: Round-cube problems fresh install  (Read 6296 times)

Loren Tedford

  • Jr. Member
  • **
  • Posts: 58
  • I love Amateur Radio, VPS and Minecraft!
    • View Profile
    • Welcome to Lorentedford.com
RESOLVED: Round-cube problems fresh install
« on: March 10, 2016, 01:21:25 am »
Greetings first off i want to thank you guys out their with all the hard work coding up this ehcpforce package I use it on my personal server and I am very greatful at how easy it is to use.. With all this said my biggest problem at the moment is when a server kicks back my emails.. We all know that with certain email providers you have to set support tickets with them individually when they kick back to let them know that your server is not a spam server.. This can happen often if you happen to purchase an ip that was at one time used in spamming etc.. So to the moral of this story..

After it kicks back I get a attachment however the server shows internal error 500.. This is a fresh install and I have not done anything except restore my sites into their proper folders any ideas as to what I can do to solve this issue?






Here is where i started reading but really dont want to touch anything until we are sure that the .htaccess is the problem.

http://trac.roundcube.net/ticket/1349473
« Last Edit: March 12, 2016, 06:44:52 pm by earnolmartin »

earnolmartin

  • Administrator
  • Sr. Member
  • *****
  • Posts: 310
    • View Profile
Re: Round-cube problems fresh install
« Reply #1 on: March 10, 2016, 10:33:10 pm »
Do we know for sure an .htaccess file is involved?  Maybe the permissions are just wrong on the attachment directory for RoundCube.  I'll look when I get some time this weekend.  If you can figure out what the problem is, please post here.  I'll try reproducing that soon.

Thanks

Loren Tedford

  • Jr. Member
  • **
  • Posts: 58
  • I love Amateur Radio, VPS and Minecraft!
    • View Profile
    • Welcome to Lorentedford.com
Re: Round-cube problems fresh install
« Reply #2 on: March 11, 2016, 01:01:49 am »
Thanks for the reply I haven't touched or edited in anyway the folder where ehcp installed its self..

This is a fresh install with the exception that i returned backed up data under the httpdocs folders..

Code: [Select]
loren@lorentedford:/var/www/new/ehcp$ ls -l
total 1772
drwxr-xr-x 13 root root       4096 Mar  5 16:42 adodb5
-rwxr-xr-x  1 root root        371 Mar  5 16:42 apache_default.conf
-rwxr-xr-x  1 root root          1 Mar  5 16:42 apachehcp_auth.conf
-rwxr-xr-x  1 root root      28560 Mar  6 00:30 apachehcp.conf
-rwxr-xr-x  1 root root          1 Mar  6 00:30 apachehcp_passivedomains.conf
-rwxr-xr-x  1 root root      10045 Mar  6 00:30 apachehcp_subdomains.conf
-rwxr-xr-x  1 root root        892 Mar  5 16:46 apache_subdomain_template
-rwxr-xr-x  1 root root       3594 Mar  5 16:46 apachetemplate
-rwxr-xr-x  1 root root       2911 Mar  5 16:46 apachetemplate_ipbased
-rwxr-xr-x  1 root root        874 Mar  5 16:46 apachetemplate_passivedomains
-rwxr-xr-x  1 root root        301 Mar  5 16:46 apachetemplate_redirect
drwxr-xr-x  2 root root       4096 Mar  5 16:42 api
-rwxr-xr-x  1 root root        613 Mar  5 16:42 Changelog.txt
-rwxr-xr-x  1 root root        288 Mar  5 16:42 checkapacheconfig.sh
-rwxr-xr-x  1 root root        463 Mar  5 16:42 checkapache.sh
-rwxr-xr-x  1 root root     548631 Mar  5 16:42 classapp.php
-rwxr-xr-x  1 root root        584 Mar  5 16:42 class_serverplan.php
-rwxr-xr-x  1 root root        248 Mar  5 16:42 clipboard.php
drwxr-xr-x  2 root root       4096 Mar  5 16:42 config
-rwxr-xr-x  1 root root       1159 Mar  5 16:45 config.php
-rwxr-xr-x  1 root root       4958 Mar  5 16:42 console.php
-rwxr-xr-x  1 root root         24 Mar  5 16:42 daemon.sh
-rwxr-xr-x  1 root root        215 Mar  5 16:42 dnsnamedconftemplate
-rwxr-xr-x  1 root root        248 Mar  5 16:42 dnsnamedconftemplate_slave
-rwxr-xr-x  1 root root       1111 Mar  5 16:42 dnszonetemplate
-rwxr-xr-x  1 root root       1212 Mar  5 16:42 dnszonetemplate_multiple_servers
-rwxr-xr-x  1 root root       1212 Mar  5 16:42 ehcp
-rwxr-xr-x  1 root root       4351 Mar  5 16:48 ehcp-apt-get-install.log
-rwxr-xr-x  1 root root        498 Mar  5 16:42 ehcpbackup.php
-rwxr-xr-x  1 root root        532 Mar  5 16:42 ehcpdaemon2.sh
-rwxr-xr-x  1 root root        103 Mar  5 16:42 ehcpdaemon.sh
-rwxr-xr-x  1 root root        729 Mar  5 16:42 ehcp_fix_apache.php
-rwxr-xr-x  1 root root      66334 Mar  5 16:42 ehcpforceupdate.sh
-rwxr-xr-x  1 root root      66265 Mar  5 16:42 ehcpforceupdate_svn_version_dev.sh
-rwxr-xr-x  1 root root      65951 Mar  5 16:42 ehcpforceupgrade.sh
-rwxr-xr-x  1 root root       1661 Mar  5 16:42 ehcpinfo.html
-rwxr-xr-x  1 root root      10177 Mar  5 16:42 ehcp_postfix2.sh
-rwxr-xr-x  1 root root       8901 Mar  5 16:42 ehcp_postfix.sh
-rwxr-xr-x  1 root root      44540 Mar  5 16:42 ehcp.sql
-rwxr-xr-x  1 root root        504 Mar  5 16:42 ehcp_upgrade.sh
-rwxr-xr-x  1 root root      20698 Mar  5 16:42 ehcpupgrade.sql
-rwxr-xr-x  1 root root       2729 Mar  5 16:42 ehcp_vsftpd.sh.txt
-rwxr-xr-x  1 root root        283 Mar  5 16:42 error_page.html
drwxr-xr-x 12 root root       4096 Mar  5 16:42 etc
drwxr-xr-x 10 ftp  www-data   4096 Mar  5 16:42 extplorer
drwxr-xr-x  2 root root       4096 Mar  5 16:42 fail2ban
-rwxr-xr-x  1 root root       1150 Mar  5 16:42 favicon.ico
-rwxr-xr-x  1 root root        306 Mar  5 16:42 faydali_komutlar.sh
drwxr-xr-x  7 root root       4096 Mar  5 16:42 fixes
-rwxr-xr-x  1 root root      15302 Mar  5 16:42 fixftp.sh
-rwxr-xr-x  1 root root         28 Mar  5 16:42 fqdn_amavis.cfg
-rwxr-xr-x  1 root root       1640 Mar  5 16:42 handleCronjobs.sh
drwxr-xr-x  2 root root       4096 Mar  5 16:42 images
drwxr-xr-x  2 root root       4096 Mar  5 16:42 images_default_index
-rwxr-xr-x  1 root root       1589 Mar  5 16:42 index.php
-rwxr-xr-x  1 root root         66 Mar  5 16:42 indextemplate.php
-rwxr-xr-x  1 root root       1904 Mar  5 16:42 info.html
-rwxr-xr-x  1 root root          0 Mar  5 16:42 install2.1.php
-rwxr-xr-x  1 root root      71621 Mar  5 16:42 install_lib.php
-rwxr-xr-x  1 root root       1507 Mar  5 16:42 install_log.txt
-rwxr-xr-x  1 root root      68459 Mar  5 16:42 install_main.sh
-rwxr-xr-x  1 root root       4023 Mar  5 16:42 install.sh
-rwxr-xr-x  1 root root         13 Mar  5 16:42 kur.sh
drwxr-xr-x  2 root root       4096 Mar  5 16:42 language
-rwxrwxrwx  1 root root        300 Mar  5 16:42 LocalServer.cnf
-rwxr-xr-x  1 root root      34497 Mar  5 16:42 localutils.php
drwxr-xr-x  2 root root       4096 Mar  5 16:42 log
-rwxr-xr-x  1 root root        455 Mar  5 16:42 login.php
-rwxr-xr-x  1 root root       2960 Mar  5 16:42 main.cf.sample
drwxr-xr-x  2 root root       4096 Mar  5 16:42 misc
drwxr-xr-x  2 root root       4096 Mar  5 16:42 mod_secure
drwxr-xr-x  2 root root       4096 Mar  5 16:42 multicms
-rwxr-xr-x  1 root root       3030 Mar  5 16:42 mystyles.css
drwxr-xr-x  2 root root       4096 Mar  5 16:42 named
-rwxr-xr-x  1 root root          1 Mar  5 16:42 named_ehcp.conf
drwxr-xr-x  8 ftp  www-data   4096 Mar  5 16:42 net2ftp
-rwxr-xr-x  1 root root     137098 Mar  5 16:42 phpadmin.php
-rwxr-xr-x  1 root root        982 Mar  5 16:42 phpmyadmin.conf
drwxr-xr-x  5 root root       4096 Mar  5 16:49 policyd
-rwxr-xr-x  1 root root      21969 Mar  5 16:42 pop-before-smtp.conf
-rwxr-xr-x  1 root root       3074 Mar  5 16:42 readme.txt
-rwxr-xr-x  1 root root       2660 Mar  5 16:42 release.txt
-rwxr-xr-x  1 root root        784 Mar  5 16:42 resetmysqlrootpass.sh
drwxr-xr-x  5 root root       4096 Mar  5 16:42 scripts
-rwxr-xr-x  1 root root      20390 Mar  5 16:42 scriptsupdate.sql
-rwxr-xr-x  1 root root      20861 Mar  5 16:42 scriptsupdate.sql.html
-rwxr-xr-x  1 root root       1090 Mar  5 16:42 server.crt
-rwxr-xr-x  1 root root        769 Mar  5 16:42 server.csr
-rwxr-xr-x  1 root root        887 Mar  5 16:42 server.key
-rwxr-xr-x  1 root root         13 Mar  5 16:42 setup.sh
-rwxr-xr-x  1 root root       1444 Mar  5 16:42 smtpd.cert
-rwxr-xr-x  1 root root       1679 Mar  5 16:42 smtpd.key
-rwxr-xr-x  1 root root       2951 Mar  5 16:42 sohbetstyles.css
-rwxr-xr-x  1 root root       2680 Mar  5 16:42 ssh2.sh
-rwxr-xr-x  1 root root        248 Mar  5 16:42 stats.php
drwxr-xr-x  9 root root       4096 Mar  5 16:42 sysinfo
drwxr-xr-x  8 root root       4096 Mar  5 16:42 templates
drwxr-xr-x  2 ftp  www-data   4096 Mar  5 16:42 test
-rwxr-xr-x  1 root root         38 Mar  5 16:42 test.php
-rwxr-xr-x  1 root root         37 Mar  5 16:42 test_scripts.sh
-rwxr-xr-x  1 root root        341 Mar  5 16:42 test.sh
-rwxr-xr-x  1 root root       7609 Mar  5 16:42 troubleshoot.php
-rwxr-xr-x  1 root root       1189 Mar  5 16:42 updateHostsFile.sh
-rwxr-xr-x  1 root root        245 Mar  5 16:42 upgradefrom0.25-26-27.txt
-rwxr-xr-x  1 root root       1995 Mar  5 16:42 upgrade_to_yeni.sh
drwxrwxrwx  2 root root       4096 Mar  5 16:42 upload
-rwxr-xr-x  1 root root     122072 Mar  5 16:47 vsftpd_3.0.2-1ubuntu2.deb
drwxr-xr-- 16 root www-data   4096 Mar  5 16:42 webmail
lrwxrwxrwx  1 root root         20 Mar  5 16:45 webmail2 -> /usr/share/roundcube
-rwxr-xr-x  1 root root       2632 Mar  5 16:42 wwwindex.en.html
-rwxr-xr-x  1 root root       2632 Mar  5 16:42 wwwindex.html
-rwxr-xr-x  1 root root       2632 Mar  5 16:42 wwwindex.it.html
-rwxr-xr-x  1 root root       1999 Mar  5 16:42 wwwindex-old.html
drwxr-xr-x  3 root root       4096 Mar  5 16:42 z7
loren@lorentedford:/var/www/new/ehcp$


Ok here is what webmail looks like

Code: [Select]
root@lorentedford:/var/www/new/ehcp/webmail# ls -l
total 64
drwxr-xr--  5 root www-data 4096 Mar  5 16:42 class
drwxr-xr--  2 root www-data 4096 Mar  5 16:42 config
-rwxr-xr--  1 root www-data  102 Mar  5 16:42 configure
drwxr-xr--  3 root www-data 4096 Mar  5 16:42 contrib
drwxrwxr--  2 root www-data 4096 Mar 11 02:57 data
drwxr-xr--  3 root www-data 4096 Mar  5 16:42 doc
drwxr-xr--  4 root www-data 4096 Mar  5 16:42 functions
drwxr-xr--  3 root www-data 4096 Mar  5 16:42 help
drwxr-xr--  2 root www-data 4096 Mar  5 16:42 images
drwxr-xr--  3 root www-data 4096 Mar  5 16:42 include
-rwxr-xr--  1 root www-data  671 Mar  5 16:42 index.php
drwxr-xr--  2 root www-data 4096 Mar  5 16:42 locale
drwxr-xr-- 22 root www-data 4096 Mar  5 16:42 plugins
drwxr-xr--  2 root www-data 4096 Mar  5 16:42 po
drwxr-xr--  2 root www-data 4096 Mar  5 16:42 src
drwxr-xr--  3 root www-data 4096 Mar  5 16:42 themes
root@lorentedford:/var/www/new/ehcp/webmail#


This is what webmail2 looks like

Code: [Select]
root@lorentedford:/var/www/new/ehcp/webmail2# ls -l
total 68
-rw-r--r-- 1 root root 11999 Oct 21  2013 index.php
-rw-r--r-- 1 root root 38774 Jan 21  2014 main.inc.php.dist
drwxr-xr-x 4 root root  4096 Mar  5 16:42 plugins
drwxr-xr-x 8 root root  4096 Mar  5 16:42 program
-rw-r--r-- 1 root root    26 Oct 21  2013 robots.txt
drwxr-xr-x 4 root root  4096 Mar  5 16:42 skins
root@lorentedford:/var/www/new/ehcp/webmail2#



This could be a permission issue but with ehcpforce being a root root

Loren Tedford

  • Jr. Member
  • **
  • Posts: 58
  • I love Amateur Radio, VPS and Minecraft!
    • View Profile
    • Welcome to Lorentedford.com
Re: Round-cube problems fresh install
« Reply #3 on: March 11, 2016, 01:04:41 am »
ok even after chown root:www-data ./webmail2 I had no luck in being able to open up the returned failed path email.

earnolmartin

  • Administrator
  • Sr. Member
  • *****
  • Posts: 310
    • View Profile
Re: Round-cube problems fresh install
« Reply #4 on: March 12, 2016, 06:34:23 pm »
Here's the fix:

Code: [Select]
sudo apt-get install php-mail-mimedecode

Thanks for reporting this issue.  This package will be added as a download in the next version.

Added to code base:

https://sourceforge.net/p/ehcpforce/code/552/
« Last Edit: March 12, 2016, 06:44:22 pm by earnolmartin »

Loren Tedford

  • Jr. Member
  • **
  • Posts: 58
  • I love Amateur Radio, VPS and Minecraft!
    • View Profile
    • Welcome to Lorentedford.com
Re: RESOLVED: Round-cube problems fresh install
« Reply #5 on: March 14, 2016, 07:51:53 am »
Thank you so much for fixing this email issue.. Will this be fixed on ehcp in the future??

earnolmartin

  • Administrator
  • Sr. Member
  • *****
  • Posts: 310
    • View Profile
Re: RESOLVED: Round-cube problems fresh install
« Reply #6 on: March 22, 2016, 08:52:14 pm »
Thank you so much for fixing this email issue.. Will this be fixed on ehcp in the future??

You're welcome.  It is fixed in EHCP Force in the latest version.