1 (edited by Cahaya 2013-09-28 18:41:55)

Topic: Thunderbird failed to find the settings for email account

==== Required information ====
- iRedMail version: 0.8.5
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version:  Ubuntu 12.04.2 LTS
- Related log if you're reporting an issue:
====

Hi,

I tried to send email using thunderbird email client from a host to guest but failed.  The guest is a virtual machine.  It is created using VirtualBox.  It also has the same Ubuntu 12.04.2 LTS OS as the host machine.

The name of the Domain: mmail.com
The hostname of the guest is: virtual.mmail.com

I have tested the iRedMail installation and it was definately good and I could create two dummy user accounts and they can sent to each other.  I have also use Thunderbird email client on the guest and it was fine.

However, when I tried to create a new user account using Thunderbird from the host, I received "Thunderbird failed to find the seetings for your email account" error message.

Other things I did which didn't help include:
1) checked the virtualBox settings -> Network -> Host-only Networks and I get these infor
adapter: IPv4 address 192.168.56.1
DHCP.  Server address: 192.168.56.100

I tried to replace the POP3 and SMTP settings using anyone of those two IP addresses but that didn't work.

I tried to ping to those two IP addresses and I received:
From 203.215.5.243 icmp_seq=80 Packet filtered

I have three questions:
1) How do I get this to work.
2) I tried to find more infor online but failed.  Are you able to suggest any, or keywords I should use for my searching please?
3) When this get working, will it continue to work even without the Internet?

Lastly, I have not change the content or touch any of the iRedMail files.

Thanks.

2

Re: Thunderbird failed to find the settings for email account

Thunderbird will try to find mail server from your DNS record, for example, if you use address 'user@domain.com', Thunderbird will lookup MX record of domain.com, then detect available protocols and ports for POP3/IMAP/SMTP services.

If you don't have proper DNS records, please configure Thunderbird manually to set proper IP address of your server.

3 (edited by Cahaya 2013-09-28 18:51:00)

Re: Thunderbird failed to find the settings for email account

ZhangHuangbin wrote:

If you don't have proper DNS records, please configure Thunderbird manually to set proper IP address of your server.

How do I do that?

EDIT: Wait, let me try, I'll get back to you later.

4

Re: Thunderbird failed to find the settings for email account

Same problem.

I've configured the SMTP and IMAP with IP Address of the mail server.
When i tried login using Thunderbird, the dovecot (/var/log/dovecot.log) show error, see below :
==/var/log/dovecot.log==
Sep 30 13:26:08 imap-login: Info: Disconnected (no auth attempts): rip=10.32.16.108, lip=10.32.10.12, TLS

==/var/log/maillog==
Sep 30 13:26:41 mailserver postfix/smtpd[3289]: connect from unknown[10.32.16.108]
Sep 30 13:26:41 mailserver postfix/smtpd[3289]: warning: TLS library problem: 3289:error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca:s3_pkt.c:1193:SSL alert number 48:
Sep 30 13:26:41 mailserver postfix/smtpd[3289]: lost connection after CONNECT from unknown[10.32.16.108]
Sep 30 13:26:41 mailserver postfix/smtpd[3289]: disconnect from unknown[10.32.16.108]


Any idea?


Thanks.

5

Re: Thunderbird failed to find the settings for email account

aditya.hilman wrote:

Sep 30 13:26:08 imap-login: Info: Disconnected (no auth attempts): rip=10.32.16.108, lip=10.32.10.12, TLS

Please configure Thunderbird to perform POP3/IMAP/SMTP auth before retrieving/sending email.
Check our tutorial here:
http://iredmail.org/wiki/index.php?titl … r.iRedMail

6

Re: Thunderbird failed to find the settings for email account

ZhangHuangbin wrote:
aditya.hilman wrote:

Sep 30 13:26:08 imap-login: Info: Disconnected (no auth attempts): rip=10.32.16.108, lip=10.32.10.12, TLS

Please configure Thunderbird to perform POP3/IMAP/SMTP auth before retrieving/sending email.
Check our tutorial here:
http://iredmail.org/wiki/index.php?titl … r.iRedMail

Can i use port 993/995 for IMAP/POP3 and 610 for SMTPS ?

Below is dovecot.conf and main.cf
=== Main.cf ===
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
allow_min_user = no
allow_percent_hack = no
biff = no
bounce_queue_lifetime = 4h
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
delay_warning_time = 0h
disable_vrfy_command = yes
enable_original_recipient = no
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
inet_protocols = ipv4
mail_owner = postfix
mailbox_command = /usr/libexec/dovecot/deliver
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
maximal_backoff_time = 4000s
maximal_queue_lifetime = 4h
message_size_limit = 40000000
minimal_backoff_time = 300s
mydestination = $myhostname, localhost, localhost.localdomain, localhost.$myhostname, brastelsms.com
mydomain = 1rstwap.com
myhostname = singasari.1rstwap.com
mynetworks = 127.0.0.0/8,85.118.162.106/32,10.32.10.0/24,85.118.162.105/32,10.32.0.0/16,88.82.99.155/32,88.82.99.158/32
mynetworks_style = subnet
myorigin = singasari.1rstwap.com
newaliases_path = /usr/bin/newaliases.postfix
proxy_read_maps = $canonical_maps $lmtp_generic_maps $local_recipient_maps $mydestination $mynetworks $recipient_bcc_maps $recipient_canonical_maps $relay_domains $relay_recipient_maps $relocated_maps $sender_bcc_maps $sender_canonical_maps $smtp_generic_maps $smtpd_sender_login_maps $transport_maps $virtual_alias_domains $virtual_alias_maps $virtual_mailbox_domains $virtual_mailbox_maps $smtpd_sender_restrictions
queue_directory = /var/spool/postfix
queue_run_delay = 300s
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
recipient_bcc_maps = proxy:ldap:/etc/postfix/ldap/recipient_bcc_maps_user.cf, proxy:ldap:/etc/postfix/ldap/recipient_bcc_maps_domain.cf
recipient_delimiter = +
relay_domains = $mydestination, proxy:ldap:/etc/postfix/ldap/relay_domains.cf
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sender_bcc_maps = proxy:ldap:/etc/postfix/ldap/sender_bcc_maps_user.cf, proxy:ldap:/etc/postfix/ldap/sender_bcc_maps_domain.cf
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_data_init_timeout = 240s
smtp_data_xfer_timeout = 600s
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks, permit_sasl_authenticated, check_helo_access pcre:/etc/postfix/helo_access.pcre
smtpd_recipient_restrictions = reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unlisted_recipient, check_policy_service inet:127.0.0.1:7777, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, check_policy_service inet:127.0.0.1:10031
smtpd_reject_unlisted_recipient = no
smtpd_reject_unlisted_sender = no
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = no
smtpd_sasl_local_domain =
smtpd_sasl_path = ./dovecot-auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_login_maps = proxy:ldap:/etc/postfix/ldap/sender_login_maps.cf
smtpd_sender_restrictions = permit_mynetworks, reject_sender_login_mismatch, permit_sasl_authenticated
smtpd_tls_CAfile = /etc/pki/tls/certs/iRedMail_CA.pem
smtpd_tls_cert_file = /etc/pki/tls/certs/iRedMail_CA.pem
smtpd_tls_key_file = /etc/pki/tls/private/iRedMail.key
smtpd_tls_loglevel = 0
smtpd_tls_security_level = may
swap_bangpath = no
tls_random_source = dev:/dev/urandom
transport_maps = proxy:ldap:/etc/postfix/ldap/transport_maps_user.cf, proxy:ldap:/etc/postfix/ldap/transport_maps_domain.cf, pcre:/etc/postfix/lkw-transport
unknown_local_recipient_reject_code = 550
virtual_alias_domains =
virtual_alias_maps = proxy:ldap:/etc/postfix/ldap/virtual_alias_maps.cf, proxy:ldap:/etc/postfix/ldap/virtual_group_maps.cf, proxy:ldap:/etc/postfix/ldap/virtual_group_members_maps.cf, proxy:ldap:/etc/postfix/ldap/catchall_maps.cf
virtual_gid_maps = static:2000
virtual_mailbox_base = /var/vmail
virtual_mailbox_domains = proxy:ldap:/etc/postfix/ldap/virtual_mailbox_domains.cf
virtual_mailbox_maps = proxy:ldap:/etc/postfix/ldap/virtual_mailbox_maps.cf
virtual_minimum_uid = 2000
virtual_transport = dovecot
virtual_uid_maps = static:2000

============================

== Dovecot.conf ==
# 2.0.21: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-358.el6.x86_64 x86_64 CentOS release 6.4 (Final)
auth_debug = yes
auth_master_user_separator = *
auth_mechanisms = PLAIN LOGIN
auth_verbose = yes
dict {
  acl = mysql:/etc/dovecot/dovecot-share-folder.conf
  quotadict = mysql:/etc/dovecot/dovecot-used-quota.conf
}
first_valid_uid = 2000
last_valid_uid = 2000
listen = *
log_path = /var/log/dovecot.log
mail_gid = 2000
mail_location = maildir:/%Lh/Maildir/:INDEX=/%Lh/Maildir/
mail_plugins = quota
mail_uid = 2000
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave
namespace {
  inbox = yes
  location =
  prefix =
  separator = /
  type = private
}
namespace {
  list = children
  location = maildir:/%%Lh/Maildir/:INDEX=/%%Lh/Maildir/Shared/%%u
  prefix = Shared/%%u/
  separator = /
  subscriptions = yes
  type = shared
}
passdb {
  args = /etc/dovecot/dovecot-ldap.conf
  driver = ldap
}
passdb {
  args = /etc/dovecot/dovecot-master-users-password
  driver = passwd-file
  master = yes
}
plugin {
  acl = vfile
  acl_shared_dict = proxy::acl
  auth_socket_path = /var/run/dovecot/auth-master
  autocreate = INBOX
  autocreate2 = Sent
  autocreate3 = Trash
  autocreate4 = Drafts
  autocreate5 = Junk
  autosubscribe = INBOX
  autosubscribe2 = Sent
  autosubscribe3 = Trash
  autosubscribe4 = Drafts
  autosubscribe5 = Junk
  quota = dict:user::proxy::quotadict
  quota_rule = *:storage=1G
  quota_warning = storage=85%% quota-warning 85 %u
  quota_warning2 = storage=90%% quota-warning 90 %u
  quota_warning3 = storage=95%% quota-warning 95 %u
  sieve = /%Lh/sieve/dovecot.sieve
  sieve_dir = /%Lh/sieve
  sieve_global_dir = /var/vmail/sieve
  sieve_global_path = /var/vmail/sieve/dovecot.sieve
}
protocols = pop3 imap sieve
service auth {
  unix_listener /var/spool/postfix/dovecot-auth {
    group = postfix
    mode = 0666
    user = postfix
  }
  unix_listener auth-master {
    group = vmail
    mode = 0666
    user = vmail
  }
  unix_listener auth-userdb {
    group = vmail
    mode = 0660
    user = vmail
  }
}
service dict {
  unix_listener dict {
    group = vmail
    mode = 0660
    user = vmail
  }
}
service imap-login {
  process_limit = 500
  service_count = 1
}
service pop3-login {
  service_count = 1
}
service quota-warning {
  executable = script /usr/local/bin/dovecot-quota-warning.sh
  unix_listener quota-warning {
    group = vmail
    mode = 0660
    user = vmail
  }
}
ssl = required
ssl_cert = </etc/pki/tls/certs/iRedMail_CA.pem
ssl_cipher_list = ALL:!LOW:!EXP:!aNULL
ssl_key = </etc/pki/tls/private/iRedMail.key
userdb {
  args = /etc/dovecot/dovecot-ldap.conf
  driver = ldap
}
verbose_ssl = yes
protocol lda {
  auth_socket_path = /var/run/dovecot/auth-master
  lda_mailbox_autocreate = yes
  log_path = /var/log/sieve.log
  mail_plugins = quota sieve autocreate
  postmaster_address = root
}
protocol imap {
  imap_client_workarounds = tb-extra-mailbox-sep
  mail_plugins = quota imap_quota autocreate
}
protocol pop3 {
  mail_plugins = quota
  pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
  pop3_uidl_format = %08Xu%08Xv
}

7

Re: Thunderbird failed to find the settings for email account

aditya.hilman wrote:

Can i use port 993/995 for IMAP/POP3 and 610 for SMTPS ?

You can use 993/995 for IMAP/POP3. But iRedMail doesn't enable either SMTPS service or port 610 by default, again, SMTPS is deprecated, please use submission/STARTTLS (port 587) instead.

I'm now confused, what's your issue? Did you follow our wiki tutorial to configure Thunderbird?
http://iredmail.org/wiki/index.php?titl … r.iRedMail

8

Re: Thunderbird failed to find the settings for email account

ZhangHuangbin wrote:
aditya.hilman wrote:

Can i use port 993/995 for IMAP/POP3 and 610 for SMTPS ?

You can use 993/995 for IMAP/POP3. But iRedMail doesn't enable either SMTPS service or port 610 by default, again, SMTPS is deprecated, please use submission/STARTTLS (port 587) instead.

I'm now confused, what's your issue? Did you follow our wiki tutorial to configure Thunderbird?
http://iredmail.org/wiki/index.php?titl … r.iRedMail

My problem is i want use port 610 as SMTPS like my existing mailserver (iRedMail-0.7.3).
So, if SMTPS is deprecated, i need to reconfig all mailclient to use 587.

9

Re: Thunderbird failed to find the settings for email account

aditya.hilman wrote:

My problem is i want use port 610 as SMTPS like my existing mailserver (iRedMail-0.7.3).

Then you can simply copy your SMTPS setting in /etc/postfix/master.cf on old server (iRedMail-0.7.3) to new server.