Can't receive emails on Virtualmin Email server

SYSTEM INFORMATION
OS type and version Ubuntu Linux 18.04.6
Webmin version 1.999
Virtualmin version 7.1-1
Related packages SUGGESTED

So I got my virtualmin server up and running and I can send emails through SMTP. but I can;t receive any. Either I’m sending them from the server to the server or from gmail to the server

Here is the response to host -t mx goodjobs.ro :

goodjobs.ro mail is handled by 5 mail.goodjobs.ro.


Since I am a complete beginner with this I am suspecting this is because of dovecot and here is the response to the command dovecot -n

# 2.2.33.2 (d6601f4ec): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.4.21 (92477967)
doveconf: Warning: NOTE: You can get a new clean config file with: doveconf -n > dovecot-new.conf
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:24: 'imaps' protocol is no longer necessary, remove it
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:24: 'pop3s' protocol is no longer necessary, remove it
# OS: Linux 4.15.0 x86_64 Ubuntu 18.04.6 LTS
auth_mechanisms = plain login
mail_location = maildir:~/Maildir
mail_privileged_group = mail
namespace inbox {
  inbox = yes
  location =
  mailbox Drafts {
    special_use = \Drafts
  }
  mailbox Junk {
    special_use = \Junk
  }
  mailbox Sent {
    special_use = \Sent
  }
  mailbox "Sent Messages" {
    special_use = \Sent
  }
  mailbox Trash {
    special_use = \Trash
  }
  prefix =
}
passdb {
  driver = pam
}
protocols = imap pop3 imapd
ssl_cert = </home/goodjobs/ssl.cert
ssl_cipher_list = some key
ssl_client_ca_dir = /etc/ssl/certs
ssl_key =  # hidden, use -P to show it
userdb {
  driver = passwd
}
doveconf: Error: protocols: Unknown protocol: imapd
local_name goodjobs.ro {
  ssl_cert = </home/goodjobs/ssl.combined
  ssl_key =  # hidden, use -P to show it
}
local_name *.goodjobs.ro {
  ssl_cert = </home/goodjobs/ssl.combined
  ssl_key =  # hidden, use -P to show it
}

Here is the SSL configuration for the dovecot server

You OS is old, you should be using a A grade OS.
https://www.virtualmin.com/os-support/

Use that command to generate a clean configuration file and compare it to the current one. And\Or swap them round, restart Dovecot and see if that resolves the issue\s.

I’ve checked my conf file (also on Ubuntu 18.04) and I don’t have most of the lines yours has. The lines relating to mailbox locations etc - did you put them in? Or did the installer?

Is this your actual domain?
If so, do note that it doesn’t actually resolve… which is the obvious reason for you not being able to receive emails. :slight_smile:

Thanks everyone for the suggestions but updating to ubuntu 20.04 worked wonders

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.