Yes it is a firewall problem. I deleted port inbound port 25. This is the reason why I cannot received email. I also remodify port 465,587 and port 110, 143, 993 and 995 and I think this is the reason why I cannot send email address using roundcube.
This is the code for roundcube 1.6.7 config.inc.php that needs to update.
$config['smtp_host'] = 'localhost: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';
This is the code for roundcube 1.6.7 default.inc.php that needs to update.
$config['imap_host'] = 'localhost:143';
// IMAP authentication method (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or null).
// Use 'IMAP' to authenticate with IMAP LOGIN command.
// By default the most secure method (from supported) will be selected.
$config['imap_auth_type'] = null;
$config['smtp_host'] = 'localhost:587';
// SMTP username (if required)
// Note: %u variable will be replaced with current user's username
$config['smtp_user'] = '%u';
// SMTP password (if required)
// Note: When set to '%p' current user's password will be used
$config['smtp_pass'] = '%p';
localhost value means 127.0.0.1 ip address. localhost value is not domain name or smtp domain name value.
Roundcube uses localhost 127.0.0.1 ip address.
Thank you for helping me fixing this problem.