+ Reply to Thread
Results 1 to 2 of 2

Thread: [0.2-beta] Failed to sen message

  1. #1
    Krapno is offline Registered User
    Join Date
    May 2008
    Posts
    3
    Downloads
    0
    Uploads
    0

    Default [0.2-beta] Failed to send message

    Greetings,

    I cannot send messages, i get this message in error log file:

    Code:
    [19-Nov-2008 12:24:55] Invalid response code received from server (501): 
    
    [19-Nov-2008 12:24:55 +0100] SMTP Error: SMTP error: Failed to set sender 'mylogin@mail.mydomain.com' in D:\ROOT_WWW\WWW\webmail\roundcube\program\steps\mail\func.inc on line 1184 (POST /index.php?_task=mail&_action=send)
    Here the config file i have:
    Code:
    <?php
    
    $rcmail_config = array();
    
    // system error reporting: 1 = log; 2 = report (not implemented yet), 4 = show, 8 = trace
    $rcmail_config['debug_level'] = 1;
    
    // log driver:  'syslog' or 'file'.
    $rcmail_config['log_driver'] = 'file';
    
    // Syslog ident string to use, if using the 'syslog' log driver.
    $rcmail_config['syslog_id'] = 'roundcube';
    
    // Syslog facility to use, if using the 'syslog' log driver.
    // For possible values see installer or http://php.net/manual/en/function.openlog.php
    $rcmail_config['syslog_facility'] = LOG_USER;
    
    // use this folder to store log files (must be writeable for apache user)
    // This is used by the 'file' log driver.
    $rcmail_config['log_dir'] = 'logs/';
    
    // use this folder to store temp files (must be writeable for apache user)
    $rcmail_config['temp_dir'] = 'temp/';
    
    // enable caching of messages and mailbox data in the local database.
    // this is recommended if the IMAP server does not run on the same machine
    $rcmail_config['enable_caching'] = TRUE;
    
    // lifetime of message cache
    // possible units: s, m, h, d, w
    $rcmail_config['message_cache_lifetime'] = '10d';
    
    // automatically create a new RoundCube user when log-in the first time.
    // a new user will be created once the IMAP login succeeds.
    // set to false if only registered users can use this service
    $rcmail_config['auto_create_user'] = TRUE;
    
    // the mail host chosen to perform the log-in
    // leave blank to show a textbox at login, give a list of hosts
    // to display a pulldown menu or set one host as string.
    // To use SSL connection, enter ssl://hostname:993
    $rcmail_config['default_host'] = 'mail.mydomain.com';
    
    // TCP port used for IMAP connections
    $rcmail_config['default_port'] = 143;
    
    // IMAP auth type. Can be "auth" (CRAM-MD5), "plain" (PLAIN) or "check" to auto detect.
    // Optional, defaults to "check"
    $rcmail_config['imap_auth_type'] = 'check';
    
    // Automatically add this domain to user names for login
    // Only for IMAP servers that require full e-mail addresses for login
    // Specify an array with 'host' => 'domain' values to support multiple hosts
    $rcmail_config['username_domain'] = '';
    
    // This domain will be used to form e-mail addresses of new users
    // Specify an array with 'host' => 'domain' values to support multiple hosts
    $rcmail_config['mail_domain'] = '';
    
    // Path to a virtuser table file to resolve user names and e-mail addresses
    $rcmail_config['virtuser_file'] = '';
    
    // Query to resolve user names and e-mail addresses from the database
    // %u will be replaced with the current username for login.
    // The query should select the user's e-mail address as first col
    $rcmail_config['virtuser_query'] = '';
    
    // 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'] = 'mail.mydomain.com';
    
    // 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'] = 'system';
    
    // 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'] = 'sesame';
    
    // 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'] = 'localhost';
    
    // Log sent messages
    $rcmail_config['smtp_log'] = TRUE;
    
    // how many seconds must pass between emails sent by a user
    $rcmail_config['sendmail_delay'] = 0;
    
    // these cols are shown in the message list
    // available cols are: subject, from, to, cc, replyto, date, size, encoding, flag
    $rcmail_config['list_cols'] = array('subject', 'from', 'date', 'size', 'flag');
    
    // includes should be interpreted as PHP files
    $rcmail_config['skin_include_php'] = FALSE;
    
    // session lifetime in minutes
    $rcmail_config['session_lifetime'] = 10;
    
    // check client IP in session athorization
    $rcmail_config['ip_check'] = false;
    
    // Use an additional frequently changing cookie to athenticate user sessions.
    // There have been problems reported with this feature.
    $rcmail_config['double_auth'] = false;
    
    // this key is used to encrypt the users imap password which is stored
    // in the session record (and the client cookie if remember password is enabled).
    // please provide a string of exactly 24 chars.
    $rcmail_config['des_key'] = '?uL&8oqTtjkG*LR5z4xbyFJU';
    
    // the default locale setting (leave empty for auto-detection)
    // RFC1766 formatted language name like en_US, de_DE, de_CH, fr_FR, pt_BR
    $rcmail_config['language'] = 'fr_FR';
    
    // use this format for short date display
    $rcmail_config['date_short'] = 'D H:i';
    
    // use this format for detailed date/time formatting
    $rcmail_config['date_long'] = 'd.m.Y H:i';
    
    // use this format for today's date display
    $rcmail_config['date_today'] = 'H:i';
    
    // add this user-agent to message headers when sending
    $rcmail_config['useragent'] = 'RoundCube Webmail/0.2-beta';
    
    // use this name to compose page titles
    $rcmail_config['product_name'] = 'RoundCube Webmail';
    
    // only list folders within this path
    $rcmail_config['imap_root'] = '';
    
    // store draft message is this mailbox
    // leave blank if draft messages should not be stored
    $rcmail_config['drafts_mbox'] = 'Drafts';
    
    // store spam messages in this mailbox
    $rcmail_config['junk_mbox'] = 'Junk';
    
    // store sent message is this mailbox
    // leave blank if sent messages should not be stored
    $rcmail_config['sent_mbox'] = 'Sent';
    
    // move messages to this folder when deleting them
    // leave blank if they should be deleted directly
    $rcmail_config['trash_mbox'] = 'Trash';
    
    // display these folders separately in the mailbox list.
    // these folders will also be displayed with localized names
    $rcmail_config['default_imap_folders'] = array('INBOX', 'Drafts', 'Sent', 'Junk', 'Trash');
    (...)
    
    ?>
    Tx for help

    Regards,
    Last edited by Krapno; 11-19-2008 at 12:54 PM. Reason: error in subject

  2. #2
    Krapno is offline Registered User
    Join Date
    May 2008
    Posts
    3
    Downloads
    0
    Uploads
    0

    Default

    hello,

    i found the solution in $rcmail_config['mail_domain']

    in fact, by default, each identity is set as mylogin@mail.mydomain.com

    i typed the correct email using identities form manager.
    typing the good email mylogin@mydomain.com solved the sending problem.

    Regards,

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts