Webmail not sending mail

edvanleeuwen

Verified User
Joined
Nov 18, 2013
Messages
155
I am trying to send mail from squirrelmail and roundcube. Logging in is okay and mail is receiving properly.

However, when I hit Send after having composed a message, the system seems to hang and after a while it returns without having sent the mail.

Squirrelmail reports that /webmail/src/compose.php cannot be found. Roundcube times out.

In /var/log/httpd/domains I see the following messages:

Code:
 AH01071: Got error 'PHP message: PHP Warning:  Unknown: open_basedir restriction in effect. File(/.htaccess) is not within the allowed path(s): (/tmp:/var/tmp:/var/www/html) in Unknown on line 0\nPHP message: PHP Warning:  Unknown: open_basedir restriction in effect. File(/var/.htaccess) is not within the allowed path(s): (/tmp:/var/tmp:/var/www/html) in Unknown on line 0\nPHP message: PHP Warning:  Unknown: open_basedir restriction in effect. File(/var/www/.htaccess) is not within the allowed path(s): (/tmp:/var/tmp:/var/www/html) in Unknown on line 0\n', referer: http://covs.nl/webmail/src/webmail.php
[Mon Nov 18 17:29:27.332255 2013] [proxy_fcgi:error] [pid 24099:tid 139858739676928] (70007)The timeout specified has expired: [client 84.31.142.33:52405] AH01075: Error dispatching request to :, referer: http://covs.nl/webmail/src/compose.php?mailbox=INBOX&startMessage=1

Does anyone have a clue to solving this?
 
Did you install webmail yourself on your own domain? I see this in the error log you posted:

Webmail should not be in a /src directory in your domain. It should be created by directadmin itself in /var/www/html and then you can call it by http://www.yourdomain.com/squirrelmail or http://www.yourdomain.com/roundcube.
So I don't quite understand why your's is in your public_html in a subdirectory called /webmail/src or am I missing something?
 
I removed roundcube (from /var/www/html, not from src) and deleted the database. Then I did an install from within CB 2.0. Then I tried sending and again it fails.

In /var/log/httpd/domains/covs.nl.error.log:
Code:
[Fri Dec 05 15:40:26.845974 2014] [proxy_fcgi:error] [pid 29573:tid 139990801528576] [client 84.31.142.33:64774] AH01071: Got error 'PHP message: PHP Warning:  Unknown: open_basedir restriction in effect. File(/var/.htaccess) is not within the allowed path(s): (/tmp:/var/tmp:/var/www/html) in Unknown on line 0\nPHP message: PHP Warning:  Unknown: open_basedir restriction in effect. File(/var/www/.htaccess) is not within the allowed path(s): (/tmp:/var/tmp:/var/www/html) in Unknown on line 0\nanguage/update">Vertalingupdates</a></li></ul></li><li class="expandable"><a href="/admin/config/regional/translate">Interface vertalen</a>\n<ul class="dropdown"><li><a href="/admin/config/regional/translate/translate">Vertalen</a></li><li><a href="/admin/config/regional/translate/update">Bijwerken</a></li><li><a href="/admin/config/regional/translate/impor', referer: http://covs.nl/roundcube/?_task=mail&_id=2147461105481bfe3f1354&_action=compose
[Fri Dec 05 15:40:28.047701 2014] [proxy_fcgi:error] [pid 29573:tid 139990700816128] [client 84.31.142.33:64774] AH01071: Got error 'PHP message: PHP Warning:  Unknown: open_basedir restriction in effect. File(/var/.htaccess) is not within the allowed path(s): (/tmp:/var/tmp:/var/www/html) in Unknown on line 0\nPHP message: PHP Warning:  Unknown: open_basedir restriction in effect. File(/var/www/.htaccess) is not within the allowed path(s): (/tmp:/var/tmp:/var/www/html) in Unknown on line 0\n0/feed</link>\n    <description></description>\n    <language>nl</language>\n          </channel>\n</rss>\nningen.nl/?p=7662</link>\n    <description><p>De informele nieuwjaarsinstuif (voor het hele gezin) wordt zaterdag 3 januari 2015 in het GRC-clubhuis op sportpark Corpus den Hoorn in Groningen gehouden. Van 15.30 &#8211; 17.30 uur is er in het club', referer: http://covs.nl/roundcube/?_task=mail&_id=2147461105481bfe3f1354&_action=compose
[Fri Dec 05 15:40:30.883921 2014] [proxy_fcgi:error] [pid 29571:tid 139990532962048] [client 84.31.142.33:64775] AH01071: Got error 'PHP message: PHP Warning:  Unknown: open_basedir restriction in effect. File(/var/.htaccess) is not within the allowed path(s): (/tmp:/var/tmp:/var/www/html) in Unknown on line 0\nPHP message: PHP Warning:  Unknown: open_basedir restriction in effect. File(/var/www/.htaccess) is not within the allowed path(s): (/tmp:/var/tmp:/var/www/html) in Unknown on line 0\n7/feed</link>\n    <description></description>\n    <language>nl</language>\n          </channel>\n</rss>\nntent"><a href="/district-noord">District Noord</a></div>  </div></li>\n      </ul></div>    </div>\n  \n  \n  \n  \n  \n  \n</div></div>\n  </div></section><section id="block-aggregator-category-3" class="block block-aggregator odd block-count-13 block-region-side', referer: http://covs.nl/roundcube/?_task=mail&_refresh=1&_mbox=INBOX
[Fri Dec 05 15:41:59.467448 2014] [proxy_fcgi:error] [pid 29573:tid 139990877062912] (70007)The timeout specified has expired: [client 84.31.142.33:64781] AH01075: Error dispatching request to : (polling), referer: http://covs.nl/roundcube/?_task=mail&_id=6842943855481c3e168302&_action=compose
[Fri Dec 05 15:41:59.816700 2014] [proxy_fcgi:error] [pid 29573:tid 139990407071488] [client 84.31.142.33:64790] AH01070: Error parsing script headers, referer: http://covs.nl/roundcube/?_task=mail&_unlock=loading1417790474981&_lang=undefined&_framed=1

In /var/www/html/roundcube/logs/errors:
Code:
[05-Dec-2014 15:41:59 CET] Verbinding is verlopen (110):
[05-Dec-2014 15:41:59 CET] Failed to connect socket: Verbinding is verlopen ():
[05-Dec-2014 15:41:59 +0100]: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Verbinding is verlopen in /var/www/html/roundcubemail-1.0.3/program/lib/Roundcube/rcube.php on line 1505 (POST /roundcube/?_task=mail&_unlock=loading1417790474981&_lang=undefined&_framed=1?_task=mail&_action=send)
 
Nice you found it, but did that also fix this problem? Because this does not looks like something the firewall causes.
Code:
File(/var/.htaccess) is not within the allowed path(s)
 
I am able to reproduce the behaviour when I toggle the setting. Furthermore, the description states that the setting is used for letting webmail use port 25. Perhaps the error is a strange side-effect?
 
Back
Top