Author Topic: How to setup SMTP/IMAP Setting?  (Read 78326 times)

Offline danish

  • Jr. Member
  • **
  • Posts: 12
How to setup SMTP/IMAP Setting?
« on: September 16, 2016, 12:28:12 PM »
I have installed the roundcubemail, I need to know how do i configure my SMTP & IMAP Setting so that i could connect Email Client with xyz email address.
My IMAP Settings are working fine and receiving mails but unable to send mail from email client.

I set the value $config['smtp_server'] = 'ssl://%h' value in /opt/www/roundcubemail/config/default.inc.php.

Where and what else do i have to change?

Regards,
Danish


Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: How to setup SMTP/IMAP Setting?
« Reply #1 on: September 16, 2016, 09:42:38 PM »
First never edit the default.inc.php, it is overwritten when Roundcube updates, copy the option to the config.inc.php file and change it there.

What is the smtp information for your mail server? %h is copying the imap server info so if your imap server ssl://mail.example.com the way you'd have it configured it would be ssl://ssl://mail.exmaple.com

Offline danish

  • Jr. Member
  • **
  • Posts: 12
Re: How to setup SMTP/IMAP Setting?
« Reply #2 on: September 17, 2016, 12:31:42 PM »
Server Name is mail.xyz.com,
I am trying with these settings for Imap is at 993 port of mail.xyz.com, where as SMTP is at port 587.
I am not sure if roundcube automatically configured it's own SMTP as well as IMAP setting for given host name. I need to know if i need to change somewhere some value to make SMTP setting work?

I checked my server log got these errors:

Sep 17 16:07:15 mail postfix/submission/smtpd[26464]: warning: hostname broadband.actcorp.in does not resolve to address 49.205.94.118: Name or service not known
Sep 17 16:07:15 mail postfix/submission/smtpd[26464]: connect from unknown[49.205.94.118]
Sep 17 16:08:57 mail postfix/submission/smtpd[26464]: lost connection after UNKNOWN from unknown[49.205.94.118]
Sep 17 16:08:57 mail postfix/submission/smtpd[26464]: disconnect from unknown[49.205.94.118]

« Last Edit: October 24, 2016, 03:01:59 AM by danish »

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: How to setup SMTP/IMAP Setting?
« Reply #3 on: September 17, 2016, 06:22:30 PM »
If SMTP is not setup in the Roundcube config Roundcube < 1.3 will use PHP mail. That option is removed in Roundcube 1.3 so Roundcube will require SMTP. As for the SMTP port you can set it in the smtp_server line (i.e. ssl://smtp.example.com:587) or use the separate $config['smtp_port'] option.

Offline danish

  • Jr. Member
  • **
  • Posts: 12
Re: How to setup SMTP/IMAP Setting?
« Reply #4 on: September 18, 2016, 08:01:02 AM »
I tried with adding another account to email client, there it added and SMTP settings are working fine, It seems it was the problem with particular email address. I can confirm now It is working... Thank you very much SKaero for your help.!