Author Topic: Problem with SMTP server  (Read 5712 times)

Offline kuemerle5

  • Jr. Member
  • **
  • Posts: 14
Problem with SMTP server
« on: September 15, 2009, 09:40:03 PM »
I'm having major issues trying to send mail using my school's SMTP server. I'm not really sure why it doesn't work. I've tried using secure and regular connection and also using auth and no auth. Nothing seems to work. I can telnet and send a HELO and EHLO commands only on port 25, not on 465. Here's what happens in a EHLO command:
   220 mail.smumn.edu ESMTP ready
EHLO
250-Ok, hello
250-8BITMIME
250-AUTH=LOGIN
250-AUTH LOGIN PLAIN CRAM-MD5
250-STARTTLS
250-PIPELINING
250 SIZE 52428800

Also, here's the info in the error file concerning the SMTP connection.

   [15-Sep-2009 20:23:11] Connection timed out (110):
[15-Sep-2009 20:23:11] Failed to connect socket: Connection timed out ():
[15-Sep-2009 18:23:11 -0700]: SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out in /home/happyhappy/happy/alsohappy/program/steps/mail/func.inc on line 1349 (POST /?_task=mail&_action=send)

The software my school uses is made by LAN-ACES and is called Office-Logic InterChange. The problem I'm having is also unique to RoundCube; I don't experience this issue in Thunderbird.

If somebody could figure out how to fix this, I would greatly appreciate it. Thanks!
« Last Edit: September 15, 2009, 09:51:19 PM by kuemerle5 »

Offline dano

  • Full Member
  • ***
  • Posts: 124
Problem with SMTP server
« Reply #1 on: September 16, 2009, 12:19:09 PM »
You would have to post your configuration in order for anyone to be able to answer this.  Could then tell you what to change for it to work but whether or not said config would work with that software is another thing entirely.

Offline kuemerle5

  • Jr. Member
  • **
  • Posts: 14
RoundCube Config
« Reply #2 on: September 16, 2009, 12:33:44 PM »
Alright, here's the a snippet of the SMTP related config:

// use this host for sending mails.
// to use SSL connection, set ssl://smtp.host.com
// if left blank, the PHP mail() function is used
// Use %h variable as replacement for user's IMAP hostname
$rcmail_config['smtp_server'] = 'mail.smumn.edu';
// 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'] = 'mail.smumn.edu';
// Log sent messages
$rcmail_config['smtp_log'] = FALSE;
// Log SQL queries to <log_dir>/sql or to syslog
$rcmail_config['sql_debug'] = false;
// Log IMAP conversation to <log_dir>/imap or to syslog
$rcmail_config['imap_debug'] = false;
// Log SMTP conversation to <log_dir>/smtp or to syslog
$rcmail_config['smtp_debug'] = TRUE;
// How many seconds must pass between emails sent by a user
$rcmail_config['sendmail_delay'] = 0;


Also, I know for a fact that only the part before the @ character in the email address is needed to login and authenticate for SMTP. It does not require it and will not work with the full address.
« Last Edit: September 16, 2009, 04:27:45 PM by kuemerle5 »

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Problem with SMTP server
« Reply #3 on: September 17, 2009, 07:18:34 AM »
To clarify: Your IMAP-server needs full email address to login and your SMTP-server needs only the local part of the address?
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline kuemerle5

  • Jr. Member
  • **
  • Posts: 14
Problem with SMTP server
« Reply #4 on: September 17, 2009, 10:52:55 AM »
Both the IMAP login and the SMTP auth will only accept the part of the email address that is in front of the @ symbol.

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Problem with SMTP server
« Reply #5 on: September 17, 2009, 11:24:12 AM »
Do you set something in username_domain and/or mail_domain?
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline kuemerle5

  • Jr. Member
  • **
  • Posts: 14
Problem with SMTP server
« Reply #6 on: September 18, 2009, 12:56:49 AM »
I did not set the username_domain becuase that would not allow users to login with the full email. I have set the mail_domain to smumn.edu.

Offline kuemerle5

  • Jr. Member
  • **
  • Posts: 14
Problem with SMTP server
« Reply #7 on: September 19, 2009, 05:01:38 PM »
If someone could reply to this, I would greatly appreciate it. Thanks!

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,845
Problem with SMTP server
« Reply #8 on: September 20, 2009, 05:31:05 AM »
I thought RC uses the same username for the SMTP as it does for the IMAP. I think the best solution is to write a small plugin which uses the SMTP_Connect hook (Plugin_Hooks ? Roundcube Webmail) to alter the username before connect.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and moreā€¦

Offline kuemerle5

  • Jr. Member
  • **
  • Posts: 14
Problem with SMTP server
« Reply #9 on: September 20, 2009, 03:04:14 PM »
Would it be possible to set $rcmail_config['smtp_user'] = '%u'; to: $rcmail_config['smtp_user'] = '%u@smumn.edu'; ?