1

Topic: cannot check how dovecot + AD works

cannot check how dovecot + AD works as describe in manual

Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot (Ubuntu) ready.
. login <login@domain> <P@$$w0rd>  #####  there I used my correct login and domain
. NO [AUTHENTICATIONFAILED] Authentication failed.



/var/log/mail.log :

Nov  6 17:13:00 mx4 postfix/qmgr[2110]: 4SP1YF4HBWz111l: from=<root@mx4.mydomain>, size=2979, nrcpt=1 (queue active)
Nov  6 17:13:00 mx4 postfix/amavis/smtp[3587]: connect to 127.0.0.1[127.0.0.1]:10026: Connection refused
Nov  6 17:13:00 mx4 postfix/amavis/smtp[3587]: 4SP1YF4HBWz111l: to=<root@mydomain>, orig_to=<root>, relay=none, delay=17276, delays=17276/0.08/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10026: Connection refused)


dovecot -n :

# 2.3.16 (7e2e900c1a): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.5.16 (09c29328)
# OS: Linux 5.15.0-88-generic x86_64 Ubuntu 22.04.3 LTS
# Hostname: mx4.mydomain
auth_master_user_separator = *
auth_mechanisms = PLAIN LOGIN
deliver_log_format = from=%{from}, envelope_sender=%{from_envelope}, subject=%{subject}, msgid=%m, size=%{size}, delivery_time=%{delivery_time}ms, %$
dict {
  acl = mysql:/etc/dovecot/dovecot-share-folder.conf
  lastlogin = mysql:/etc/dovecot/dovecot-last-login.conf
  quotadict = mysql:/etc/dovecot/dovecot-used-quota.conf
}
first_valid_uid = 2000
last_valid_uid = 2000
listen = *
login_log_format_elements = user=<%u> method=%m rip=%r lip=%l mpid=%e %c %k session=<%{session}>
mail_gid = 2000
mail_location = maildir:%Lh/Maildir/:INDEX=%Lh/Maildir/
mail_plugins = quota mailbox_alias acl mail_log notify
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 index ihave duplicate mime foreverypart extracttext
namespace {
  inbox = yes
  location =
  mailbox Archive {
    auto = no
    special_use = \Archive
  }
  mailbox Archives {
    auto = no
    special_use = \Archive
  }
  mailbox "Deleted Messages" {
    auto = no
    special_use = \Trash
  }
  mailbox Drafts {
    auto = subscribe
    special_use = \Drafts
  }
  mailbox Junk {
    auto = subscribe
    special_use = \Junk
  }
  mailbox "Junk E-mail" {
    auto = no
    special_use = \Junk
  }
  mailbox Sent {
    auto = subscribe
    special_use = \Sent
  }
  mailbox "Sent Items" {
    auto = no
    special_use = \Sent
  }
  mailbox "Sent Messages" {
    auto = no
    special_use = \Sent
  }
  mailbox Spam {
    auto = no
    special_use = \Junk
  }
  mailbox Trash {
    auto = subscribe
    special_use = \Trash
  }
  prefix =
  separator = /
  type = private
}
namespace {
  list = children
  location = maildir:%%Lh/Maildir/:INDEX=%%Lh/Maildir/Shared/%%Ld/%%Ln
  prefix = Shared/%%u/
  separator = /
  subscriptions = yes
  type = shared
}
passdb {
  args = /etc/dovecot/dovecot-mysql.conf
  driver = sql
}
passdb {
  args = /etc/dovecot/dovecot-master-users
  driver = passwd-file
  master = yes
}
plugin {
  acl = vfile
  acl_shared_dict = proxy::acl
  last_login_dict = proxy::lastlogin
  last_login_key = # hidden, use -P to show it
  mail_log_events = delete undelete expunge copy mailbox_create mailbox_delete mailbox_rename
  mail_log_fields = uid box msgid size from subject flags
  mailbox_alias_new = Sent Messages
  mailbox_alias_new2 = Sent Items
  mailbox_alias_old = Sent
  mailbox_alias_old2 = Sent
  quota = dict:user::proxy::quotadict
  quota_grace = 10%%
  quota_rule = *:storage=1G
  quota_status_nouser = DUNNO
  quota_status_overquota = 552 5.2.2 Mailbox is full
  quota_status_success = DUNNO
  quota_warning = storage=100%% quota-warning 100 %u
  quota_warning2 = storage=95%% quota-warning 95 %u
  quota_warning3 = storage=90%% quota-warning 90 %u
  quota_warning4 = storage=85%% quota-warning 85 %u
  sieve = ~/sieve/dovecot.sieve
  sieve_before = /var/vmail/sieve/dovecot.sieve
  sieve_dir = ~/sieve
  sieve_global_dir = /var/vmail/sieve
  sieve_max_redirects = 30
  sieve_vacation_send_from_recipient = yes
}
protocols = pop3 imap sieve lmtp
service auth {
  unix_listener /var/spool/postfix/private/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 lmtp {
  executable = lmtp -L
  inet_listener lmtp {
    address = 127.0.0.1
    port = 24
  }
  process_min_avail = 5
  unix_listener /var/spool/postfix/private/dovecot-lmtp {
    group = postfix
    mode = 0600
    user = postfix
  }
  user = vmail
}
service managesieve-login {
  inet_listener sieve {
    address = 127.0.0.1
    port = 4190
  }
}
service pop3-login {
  service_count = 1
}
service quota-status {
  client_limit = 1
  executable = quota-status -p postfix
  inet_listener {
    address = 127.0.0.1
    port = 12340
  }
}
service quota-warning {
  executable = script /usr/local/bin/dovecot-quota-warning.sh
  unix_listener quota-warning {
    group = vmail
    mode = 0660
    user = vmail
  }
}
service stats {
  fifo_listener stats-mail {
    mode = 0644
    user = vmail
  }
  inet_listener {
    address = 127.0.0.1
    port = 24242
  }
  unix_listener stats-writer {
    group = vmail
    mode = 0660
    user = vmail
  }
}
ssl = required
ssl_cert = </etc/ssl/certs/iRedMail.crt
ssl_cipher_list = EECDH+CHACHA20:EECDH+AESGCM:EDH+AESGCM:AES256+EECDH
ssl_dh = # hidden, use -P to show it
ssl_key = # hidden, use -P to show it
ssl_prefer_server_ciphers = yes
syslog_facility = local5
userdb {
  args = /etc/dovecot/dovecot-mysql.conf
  driver = sql
}
protocol lda {
  lda_mailbox_autocreate = yes
  lda_mailbox_autosubscribe = yes
  mail_plugins = quota mailbox_alias acl mail_log notify sieve
}
protocol lmtp {
  lmtp_save_to_detail_mailbox = yes
  mail_plugins = quota mailbox_alias acl mail_log notify sieve
  recipient_delimiter = +
}
protocol imap {
  imap_client_workarounds = tb-extra-mailbox-sep
  mail_max_userip_connections = 30
  mail_plugins = quota mailbox_alias acl mail_log notify imap_quota imap_acl last_login
}
protocol pop3 {
  mail_max_userip_connections = 30
  mail_plugins = quota mailbox_alias acl mail_log notify last_login
  pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
  pop3_uidl_format = %08Xu%08Xv





- iRedMail-1.6.4.
- downloadable installer
- ubuntu 22.04.3 LTS
- LDAP/Mysql

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: cannot check how dovecot + AD works

It seems like a post: https://forum.iredmail.org/topic18760-a … de-13.html

I think it's a Amavis issue!

Nov 07 15:56:41 mx4 systemd[1]: amavis.service: Failed with result 'exit-code'.
Nov 07 15:56:41 mx4 systemd[1]: amavis.service: Consumed 1.140s CPU time.
Nov 07 15:56:41 mx4 systemd[1]: amavis.service: Scheduled restart job, restart counter is at 5.
Nov 07 15:56:41 mx4 systemd[1]: Stopped Interface between MTA and virus scanner/content filters.
Nov 07 15:56:41 mx4 systemd[1]: amavis.service: Consumed 1.140s CPU time.
Nov 07 15:56:41 mx4 systemd[1]: amavis.service: Start request repeated too quickly.
Nov 07 15:56:41 mx4 systemd[1]: amavis.service: Failed with result 'exit-code'.
Nov 07 15:56:41 mx4 systemd[1]: Failed to start Interface between MTA and virus scanner/content filters.


/var/log/mail.log :


Nov  7 15:56:39 mx4 amavis[51772]: (!!)TROUBLE in pre_loop_hook: config: no rules were found!  Do you need to run 'sa-update'?
Nov  7 15:56:39 mx4 amavis[51772]: (!)_DIE: Suicide () TROUBLE in pre_loop_hook: config: no rules were found!  Do you need to run 'sa-update'?
Nov  7 15:56:40 mx4 amavis[51798]: starting. /usr/sbin/amavisd-new at mx4.kdb.kz amavisd-new-2.12.2 (20211013), Unicode aware, LANG="C.UTF-8"
Nov  7 15:56:40 mx4 amavis[51798]: perl=5.034000, user=115, EUID: 115 (115);  group=, EGID: 122 122 (122 122)
Nov  7 15:56:41 mx4 amavis[51798]: Net::Server: Group Not Defined.  Defaulting to EGID '122 122'
Nov  7 15:56:41 mx4 amavis[51798]: Net::Server: User Not Defined.  Defaulting to EUID '115'
Nov  7 15:56:41 mx4 amavis[51798]: No ext program for   .F, tried: unfreeze, freeze -d, melt, fcat
Nov  7 15:56:41 mx4 amavis[51798]: No ext program for   .zoo, tried: zoo, unzoo
Nov  7 15:56:41 mx4 amavis[51798]: No decoder for       .F
Nov  7 15:56:41 mx4 amavis[51798]: No decoder for       .zoo
Nov  7 15:56:41 mx4 amavis[51798]: Using primary internal av scanner code for clamav-socket
Nov  7 15:56:41 mx4 amavis[51798]: (!!)TROUBLE in pre_loop_hook: config: no rules were found!  Do you need to run 'sa-update'?
Nov  7 15:56:41 mx4 amavis[51798]: (!)_DIE: Suicide () TROUBLE in pre_loop_hook: config: no rules were found!  Do you need to run 'sa-update'?

3

Re: cannot check how dovecot + AD works

Run "sa-update" to fetch / update SpamAssassin rules first, then restart "amavis" (or "amavisd") service.