Author Topic: A question and an error  (Read 3367 times)

Offline MikeKay

  • Jr. Member
  • **
  • Posts: 11
A question and an error
« on: June 19, 2009, 01:36:17 PM »
Greetings. Again, I have searched for this information and was unable to find any references to either.

Once the setup is done - how do you reconfigure RCM?  I tried the installer and it says it's disabled.

Second - I can received emails in roundcube fine - but I cannot send. Here is the error message from the logs:
L]: SMTP server response: 550 The address is not valid. in c:\roundcubemail-0.2.2\programs\steps\mail\func.inc on line 1322

It does not matter what address I use - this is all I get.

Any help MOST appreciated.

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,855
A question and an error
« Reply #1 on: June 20, 2009, 12:38:19 PM »
Hi,

I you want to change the config then you can edit the files manually (you'll find them in the config dir) or change enabled_installer in config/main.inc.php and then you will be able to run the installer again.

SMTP error, I'm not sure about that but may be you need to check your SMTP auth settings or look in your MTA logs for more info.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and moreā€¦

Offline MikeKay

  • Jr. Member
  • **
  • Posts: 11
SMTP Auth
« Reply #2 on: June 22, 2009, 08:23:37 AM »
Greetings.

I really like RoundCube so far and don't want to abandon it, thus I need some help.

Using POP - the email server is working fine.  I can send and receive emails no problems.

I can receive email in RCM but not send. I get the same error message posted earlier. Obviously there is a problem with my SMTP Auth - but what? The error again is:
PHP Warning: mail() [,a href='function.mail'>function.mail]: SMTP server response: 550 The address is not valid. in c:\roundcubemail-0.2.2\program\steps\mail\func.inc on line 1322

Line 1322 of the func.inc file is:
$sent = mail($headers_enc['To], $headers_enc['Subject"], $msg_body, $header_str, "-f$from");

For some reason, it appears that the -f$from is not working.

Really need help to get this solved.

Thanks.

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
A question and an error
« Reply #3 on: June 22, 2009, 08:29:55 AM »
You have configured it to use php mail() function.

Goto ./config/main.inc.php and configure the following section to use your SMTP service to send messages:

// use this host for sending mails.
// to use SSL connection, set ssl://smtp.host.com
// if left blank, the PHP mail() function is used
$rcmail_config['smtp_server'] = 'localhost';

// SMTP port (default is 25; 465 for SSL)
$rcmail_config['smtp_port'] = 25;

// 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';

// SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
// best server supported one)
$rcmail_config['smtp_auth_type'] = '';

// SMTP HELO host 
// Hostname to give to the remote server for SMTP 'HELO' or 'EHLO' messages 
// Leave this blank and you will get the server variable 'server_name' or 
// localhost if that isn't defined. 
$rcmail_config['smtp_helo_host'] = '';



It looks like $rcmail_config['smtp_server'] is blank. Otherwise it would not run into php mail() to deliver the message.
Regards,
Rosali
__________________
MyRoundcube Project (commercial)