Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: BrotherAndrew on May 20, 2013, 06:36:57 PM

Title: Emails STOPPED Sending
Post by: BrotherAndrew on May 20, 2013, 06:36:57 PM
Emails were sending out Very Well for Several Months in my R C Install.  Today I keep seeing A Failed Message when sending out Emails.  What could be causing that?   :)
Title: Re: Emails STOPPED Sending
Post by: SKaero on May 20, 2013, 07:18:54 PM
Whats in the error log?
Title: Re: Emails STOPPED Sending
Post by: BrotherAndrew on May 20, 2013, 08:38:37 PM
These are 2 from today:

[20-May-2013 12:41:42 CST6CDT] MDB2 Error: constraint violation (-3): _doQuery: [Error message: Could not execute statement]
[Last executed query: EXECUTE mdb2_statement_mysql_4c0f9e1ce0895f928d62c3d2b529d3a2c9c9d37e9 USING @0, @1, @2]
[Native code: 1062]
[Native message: Duplicate entry '9iob6st16nf6f5co1t9g22s5a5' for key 'PRIMARY']

[20-May-2013 12:41:42 -0500]: DB Error: MDB2 Error: constraint violation Query: _doQuery: [Error message: Could not execute statement] [Last executed query: EXECUTE mdb2_statement_mysql_4c0f9e1ce0895f928d62c3d2b529d3a2c9c9d37e9 USING @0, @1, @2] [Native code: 1062] [Native message: Duplicate entry '9iob6st16nf6f5co1t9g22s5a5' for key 'PRIMARY']  in /home/mme/public_html/VALUED-USERS-AREA/program/include/rcube_mdb2.php on line 727 (GET /VALUED-USERS-AREA/?_task=mail&_action=check-recent&_mbox=INBOX&_list=1&_quota=1&_remote=1&_unlock=0&_=1369071700808)
Title: Re: Emails STOPPED Sending
Post by: SKaero on May 21, 2013, 04:28:49 PM
Neither of those errors should be related to the problem, are you using SMTP or PHP is send the mail?
Title: Re: Emails STOPPED Sending
Post by: SKaero on May 21, 2013, 05:28:45 PM
By "installed from cPanel" do you mean you installed it from Softaculous or a similar script installer or are you just using the RoundCube that comes in cPanel?
Title: Re: Emails STOPPED Sending
Post by: BrotherAndrew on May 21, 2013, 05:39:30 PM
This is my Custom (Softaculous) Install that I've been using for Several Months.   :)
Title: Re: Emails STOPPED Sending
Post by: BrotherAndrew on May 21, 2013, 05:57:17 PM
I desire to see this Resolved ASAP!  Some of my valued web mail users are asking me about this.  Is it possible that Upgrading to 0.9.1 would fix this?!   :) 
Title: Re: Emails STOPPED Sending
Post by: SKaero on May 21, 2013, 09:36:32 PM
Maybe it would (good idea anyways) but probably not, most likely something changed with the SMTP or PHP setting on the server that has caused it to break.
Title: Re: Emails STOPPED Sending
Post by: BrotherAndrew on May 21, 2013, 09:39:58 PM
A Squirrel Mail Test WON'T Send Emails Either.   :)
Title: Re: Emails STOPPED Sending
Post by: ABerglund on May 21, 2013, 09:47:43 PM
Then you have a mail server problem, not a webmail problem.
Title: Re: Emails STOPPED Sending
Post by: BrotherAndrew on May 21, 2013, 10:18:42 PM
Below is what I Was told about the server.  It was fine until about 2 days ago.  Does what it say below look like a Valid response to you?   :)

"I've always had smtp/imap set to require authentication.

Perhaps the latest cpanel update made a change to the config, and it has become more strict.

Regardless, email authentication requirements will not be removed from my servers, as spammers use open relays, and create massive problems."
Title: Re: Emails STOPPED Sending
Post by: ABerglund on May 22, 2013, 12:57:42 AM
I know nothing about cpanel, as I run my own mail server. But other than that, yes, that is all pretty standard.
Title: Re: Emails STOPPED Sending
Post by: BrotherAndrew on May 22, 2013, 03:19:09 PM
A post of mine on here that I Deleted, Re Appeared, and Other Posts Disappeared.

If I Edit // SMTP server host (for sending mails) area Properly, should that Solve the Send Emails Issue?!   :)
Title: Re: Emails STOPPED Sending
Post by: ABerglund on May 22, 2013, 03:33:05 PM
In theory, yes. In detail, I don't know because I don't know what parameter changed to make them stop. But if you change the SMTP config to match what your email provider says you should use, that should do it.
Title: Re: Emails STOPPED Sending
Post by: BrotherAndrew on May 22, 2013, 03:52:57 PM
OK, So Correctly Editing the SMPT Sending Emails area in the Config File, is All that's needed to get the Emailing Sending issue Fixed?  :)
Title: Re: Emails STOPPED Sending
Post by: ABerglund on May 22, 2013, 04:11:57 PM
If that is truly what the problem is, yes.
Title: Re: Emails STOPPED Sending
Post by: BrotherAndrew on May 22, 2013, 04:25:25 PM
OK, Very Strange that Suddenly started happening.  :)
Title: Re: Emails STOPPED Sending
Post by: ABerglund on May 22, 2013, 06:16:37 PM
Sorry, can't help since that info has to match what your email provider wants/needs. You'll need to work with them.
Title: Re: Emails STOPPED Sending
Post by: BrotherAndrew on May 22, 2013, 06:29:01 PM
From what I was told from Server Owner, the below should be Correct.  The Sending Error  currently says SMTP Authorization should be Turned On.  How can I Turn It On?  :)

// SMTP server host (for sending mails).
// To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
// If left blank, the PHP mail() function is used
// Supported replacement variables:
// %h - user's IMAP hostname
// %n - http hostname ($_SERVER['website.com'])
// %d - domain (http hostname without the first part)
// %z - IMAP domain (mail.website.com)
// For example %n = mail.domain.tld, %d = domain.tld
$rcmail_config['smtp_server'] = 'mail.website.com';
Title: Re: Emails STOPPED Sending
Post by: BrotherAndrew on May 22, 2013, 09:22:22 PM
The Server Owner says that I need to add a Email address in the Config area.  Below is what he said when I asked him if adding an Email address there would make All Email accounts run properly.  Below is what he wrote me.  Do Most Round Cube Custom Users have to Learn & Do All of this?  Why was the web mail working until this week?   :)

All your emails would route out through that email.

However, i'm not sure how the incoming emails would work.

I would ask RC about any settings required for a shared hosting account installation.
Title: Re: Emails STOPPED Sending
Post by: ABerglund on May 22, 2013, 10:38:01 PM
Do Most Round Cube Custom Users have to Learn & Do All of this?
Yes. Roundcube is a server-based web application. It is intended to be installed, setup and maintained by qualified system admins.

Why was the web mail working until this week?   :)
You'll need to ask your email provider that, something has changed there.

To get it working, you need to look at ALL the SMTP config settings in Roundcube, not just the server name. As a guess you'll need to set the following two for sure:

Code: [Select]
// SMTP username (if required) if you use %u as the username Roundcube
// will use the current username for login
$rcmail_config['smtp_user'] = '%u';

// SMTP password (if required) if you use %p as the password Roundcube
// will use the current user's password for login
$rcmail_config['smtp_pass'] = '%p';

You may also need to set the smtp_auth_type and smtp_port, depending on the mail server's requirements.