Author Topic: mails not sending  (Read 4382 times)

Offline Chadi

  • Jr. Member
  • **
  • Posts: 22
mails not sending
« on: October 03, 2006, 12:33:06 AM »
I have RC installed with cpanel

I do not know why but after installing, mails are not getting sent.

Click the send icon, it shows the ajax frame on top with progress icon as if
ready to send...then it goes away and nothing happens. Message remains there.


My install procedure:


cd /usr/local/cpanel/base
rm -rf roundcube*
mysql -p -e 'drop database roundcube';

cd /usr/local/cpanel/base
wget -O roundcube.tar.gz http://virtuosonetsolutions.com/misc/roundcubemail_tinymce_v0.1beta2.tar.gz
tar -zxvf roundcube*.tar.gz
rm -rf roundcube*.tar.gz
mv -f roundcubemail roundcube
cd roundcube
chmod -R 777 temp
chmod -R 777 logs

mysql -e "CREATE DATABASE roundcube;" -ppassword
mysql -e "use roundcube; source SQL/mysql.initial.sql;" -ppassword

cd config
mv db.inc.php.dist db.inc.php
mv main.inc.php.dist main.inc.php

nano db.inc.php

Find
$rcmail_config['db_dsnw'] = 'mysql://roundcube:pass@localhost/roundcubemail';

Replace with
$rcmail_config['db_dsnw'] = 'mysql://root:DATABASEPASSWORD@localhost/roundcube';

Now Open main.inc.php
nano main.inc.php

Find
$rcmail_config['default_host'] = '';

Replace with
$rcmail_config['default_host'] = 'localhost';

cd /usr/local/cpanel/base/roundcube/skins/default/images/
cp roundcube_logo.png /usr/local/cpanel/base/frontend/x/images/roundcube_logo.png
cp roundcube_logo.png /usr/local/cpanel/base/webmail/x/images/roundcube_logo.png
wget http://www.hostgeekz.com/files/hostgeekz/HGpatch-roundcube-1.0BETA2
patch -p0 < HGpatch-roundcube-1.0BETA2


If you do not use the X theme please do the following

wget http://www.hostgeekz.com/files/hostgeekz/HGpatch-roundcube-NON-X-1.0BETA2
patch -p0 < HGpatch-roundcube-NON-X-1.0BETA2

Then open your webmaillogin.html, please replace YOURTHEME with the name of your theme.

nano /usr/local/cpanel/base/frontend/YOURTHEME/webmaillogin.html
and find





Add Below



RoundCube


chattr +i /usr/local/cpanel/base/webmaillogin.cgi
Talk Jesus [ Awesome Facts ]

Offline Chadi

  • Jr. Member
  • **
  • Posts: 22
Re: mails not sending
« Reply #1 on: October 06, 2006, 05:07:54 PM »
I would appreciate assistance on this if anyone has a tip. Thank you.

Logs show only this (3x)

[29-Sep-2006 08:21:37 -0300] DB Error: DB Error: constraint violation Query: INSERT INTO messages (user_id, del, cache_key, created, idx, uid, subject, `from`, `to`, cc, date, size, headers) VALUES (1, 0, 'INBOX.msg', now(), '21', '2713', '', '', 'root@domain.com.br', '', FROM_UNIXTIME(-1), 698, 'O:14:\"iilbasicheader\":25:{s:2:\"id\";s:2:\"21\";s:3:\"uid\";s:4:\"2713\";s:7:\"subject\";s:0:\"\";s:4:\"from\";N;s:2:\"to\";s:15:\"root@domain.com.br\";s:2:\"cc\";s:0:\"\";s:7:\"replyto\";s:0:\"\";s:11:\"in_reply_to\";s:0:\"\";s:4:\"date\";N;s:9:\"messageID\";N;s:4:\"size\";s:3:\"698\";s:8:\"en in /usr/local/cpanel/base/roundcube/program/include/rcube_db.inc on line 479

I've confirmed it was not modsecurity rules (I even temp disabled it). I also added localhost to smtp line in config file, this did not work either.

Talk Jesus [ Awesome Facts ]

Offline Chadi

  • Jr. Member
  • **
  • Posts: 22
Re: mails not sending
« Reply #2 on: October 06, 2006, 06:41:41 PM »
This is what I've noticed:

You can send in root mode (being logged in root in webmail) but it is not
sending if you login to webmail as actual email user (me@mydomain.com).

root = when logged into the cpanel through whm root and clicking "read webmail".

Hopefully an explanation is available for this. Thanks.
Talk Jesus [ Awesome Facts ]

Offline jbgama

  • Newbie
  • *
  • Posts: 1
Re: mails not sending
« Reply #3 on: October 07, 2006, 01:55:08 PM »
In main.inc.php change:

$rcmail_config['smtp_server'] = 'localhost';
$rcmail_config['smtp_user'] = '%u';
$rcmail_config['smtp_pass'] = '%p';


In /usr/local/cpanel/base/roundcube/skins/default/templates/compose.html at about line 31 (you can also search for post) and change the action to be

index.php

instead of

./

Old Line


New Line


Offline ptwmedia

  • Newbie
  • *
  • Posts: 6
Re: mails not sending
« Reply #4 on: December 18, 2006, 05:31:27 PM »
Thanks. I had the same problem, but his fixed it! :D