Hello guys,
I am setting up a web mail service with RoundCube and i thought that you maybe can help me out with an issue that i am having.
I have one local server with RoundCube, who is pushing and sending mails through my mail server who is in my ISP. Till now i am only able to send mails to domains inside of my ISP. If i try to send to outside domains such as gmail.com, i simply dont receive anything there, but it says "Message send successfully". I already tried with a temporary email, and i didnt receive anything. I am able to receive mail from inside and outside domains of my ISP (through port 25). In this network there are people using outlook, and they can send mails without problem, with the same credencials and mail links (IMAP and SMTP) as i. I already made a test with an account of one and same result. So i think that something is missing in my local server. =/
I already test the SMTP connection with 587 and 465, but with 587 i was not able to send any mail and with 465 i was able to send like i was before with 25, but with a higher delay. In my ISP mail server a TLS port is available through 465.
Local server specs:
- OSX 10.9.5
- RoundCube
- Server app
ISP mail server:
- DKIM activated
- SPF activated
RoundCube files
config.inc.php:
default.inc.php:
I am setting up a web mail service with RoundCube and i thought that you maybe can help me out with an issue that i am having.
I have one local server with RoundCube, who is pushing and sending mails through my mail server who is in my ISP. Till now i am only able to send mails to domains inside of my ISP. If i try to send to outside domains such as gmail.com, i simply dont receive anything there, but it says "Message send successfully". I already tried with a temporary email, and i didnt receive anything. I am able to receive mail from inside and outside domains of my ISP (through port 25). In this network there are people using outlook, and they can send mails without problem, with the same credencials and mail links (IMAP and SMTP) as i. I already made a test with an account of one and same result. So i think that something is missing in my local server. =/
I already test the SMTP connection with 587 and 465, but with 587 i was not able to send any mail and with 465 i was able to send like i was before with 25, but with a higher delay. In my ISP mail server a TLS port is available through 465.
Local server specs:
- OSX 10.9.5
- RoundCube
- Server app
ISP mail server:
- DKIM activated
- SPF activated
RoundCube files
config.inc.php:
// ----------------------------------
// IMAP
// ----------------------------------
// 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/TLS connection, enter hostname with prefix ssl:// or tls://
// Supported replacement variables:
// %n - hostname ($_SERVER['SERVER_NAME'])
// %t - hostname without the first part
// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
// %s - domain name after the '@' from e-mail address provided at login screen
// For example %n = mail.domain.tld, %t = domain.tld
// WARNING: After hostname change update of mail_host column in users table is
// required to match old user data records with the new host.
$config['default_host'] = 'mail.X.pt';
(...)
// ----------------------------------
// SMTP
// ----------------------------------
// 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 - hostname ($_SERVER['SERVER_NAME'])
// %t - hostname without the first part
// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
// %z - IMAP domain (IMAP hostname without the first part)
// For example %n = mail.domain.tld, %t = domain.tld
$config['smtp_server'] = ‘%h’;
default.inc.php:
// ----------------------------------
// IMAP
// ----------------------------------
// 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/TLS connection, enter hostname with prefix ssl:// or tls://
// Supported replacement variables:
// %n - hostname ($_SERVER['SERVER_NAME'])
// %t - hostname without the first part
// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
// %s - domain name after the '@' from e-mail address provided at login screen
// For example %n = mail.domain.tld, %t = domain.tld
// WARNING: After hostname change update of mail_host column in users table is
// required to match old user data records with the new host.
$config['default_host'] = 'mail.X.pt';
(...)
// ----------------------------------
// SMTP
// ----------------------------------
// 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 - hostname ($_SERVER['SERVER_NAME'])
// %t - hostname without the first part
// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
// %z - IMAP domain (IMAP hostname without the first part)
// For example %n = mail.domain.tld, %t = domain.tld
$config['smtp_server'] = ‘%h’;
// SMTP port (default is 25; use 587 for STARTTLS or 465 for the
// deprecated SSL over SMTP (aka SMTPS))
$config['smtp_port'] = 25;
// SMTP username (if required) if you use %u as the username Roundcube
// will use the current username for login
$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
$config['smtp_pass'] = ‘%p’;
// SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
// best server supported one)
$config['smtp_auth_type'] = ‘LOGIN’;
// Optional SMTP authentication identifier to be used as authorization proxy
$config['smtp_auth_cid'] = null;
// Optional SMTP authentication password to be used for smtp_auth_cid
$config['smtp_auth_pw'] = null;
// 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.
$config['smtp_helo_host'] = '';
// SMTP connection timeout, in seconds. Default: 0 (use default_socket_timeout)
// Note: There's a known issue where using ssl connection with
// timeout > 0 causes connection errors (https://bugs.php.net/bug.php?id=54511)
$config['smtp_timeout'] = 0;