Hi everyone, I just set up ISPConfig 3.2.9p1 using the perfect server single serve manual which uses a script. All went well until I tried to set up an IMAP/PoP3 email account or login to Roundcube after adding the email account to the ISPConfig control panel. I get the errors below from the mail.log. Current Dovecot config Code: $ dovecot -n # 2.3.16 (7e2e900c1a): /etc/dovecot/dovecot.conf # Pigeonhole version 0.5.16 (09c29328) # OS: Linux 5.15.0-72-generic x86_64 Ubuntu 22.04.2 LTS # Hostname: mailserver.domain. auth_debug = yes auth_debug_passwords = yes auth_mechanisms = plain login disable_plaintext_auth = no listen = *,[::] lmtp_rcpt_check_quota = yes log_timestamp = "%Y-%m-%d %H:%M:%S " mail_debug = yes mail_max_userip_connections = 100 mail_plugins = quota mail_privileged_group = vmail 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 passdb { args = /etc/dovecot/dovecot-sql.conf driver = sql } plugin { quota = dict:user::file:/var/vmail/%d/%n/.quotausage quota_status_nouser = DUNNO quota_status_overquota = 552 5.2.2 Mailbox is full quota_status_success = DUNNO sieve = /var/vmail/%d/%n/.sieve sieve_after = /var/vmail/%d/%n/.ispconfig.sieve sieve_before = /var/vmail/%d/%n/.ispconfig-before.sieve sieve_max_actions = 100 sieve_max_redirects = 25 sieve_max_script_size = 2M } postmaster_address = [email protected]. protocols = imap pop3 lmtp sieve service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } unix_listener auth-userdb { group = vmail mode = 0600 user = vmail } user = root } service imap-login { client_limit = 1000 process_limit = 512 } service lmtp { unix_listener /var/spool/postfix/private/dovecot-lmtp { group = postfix mode = 0600 user = postfix } } service quota-status { client_limit = 1 executable = quota-status -p postfix unix_listener /var/spool/postfix/private/quota-status { group = postfix mode = 0660 user = postfix } } service stats { unix_listener stats-reader { group = vmail mode = 0660 user = vmail } unix_listener stats-writer { group = vmail mode = 0660 user = vmail } } ssl_cert = </etc/postfix/smtpd.cert ssl_cipher_list = ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384 ssl_dh = # hidden, use -P to show it ssl_key = # hidden, use -P to show it userdb { driver = prefetch } userdb { args = /etc/dovecot/dovecot-sql.conf driver = sql } verbose_ssl = yes protocol imap { auth_verbose = yes mail_plugins = quota quota imap_quota } protocol pop3 { auth_verbose = yes mail_plugins = quota quota pop3_uidl_format = %08Xu%08Xv } protocol lda { mail_plugins = quota sieve quota postmaster_address = [email protected]. } protocol lmtp { mail_plugins = quota quota sieve postmaster_address = [email protected]. }
The error means that you are trying to use a non-existing email user. It seems as if you did not create a mailbox [email protected] on the new system yet. Double-check for typos in the domain name and address. And as long as you did not manually edit any config files and started from a clean system, the setup of dovecot and postfix is correct and working if set it up using the official auto-installer.
I created an email account on the control panel first before testing. I checked the phpmyadmin table and saw the email account there as well. I also double-checked for typos and there were none. I used the auto-installer, no files were manually edited. First time running it on freshly installed Ubuntu 22.04
As I mentioned, likely reasons for the problem are typos in the domain or mailbox you created, or you set the email domain or mailbox to inactive or something similar. The result of the auto-installer is consistent and works fine unless started from an unclean system. The debug log you posted shows the sql queries. Try running them using phpmyadmin to see if they return the user.
I found the problem. During set up of the email domain I selected the wrong server. I have got multiserver setup for 2 name servers and single server set up for mail, web and database so it automatically selected the primary name server. Thanks for your help.
This means you probably enabled mail services for the name server under System > server services and you probably have not set a default mail server under System > interface > main config, as name servers without mail service can not be selected as email server