CANNOT RETRIEVE EMAILS FROM THE SERVER (CENTOS 7 / SENDMAIL / DOVECOT)

Discussion in 'Installation/Configuration' started by Farid, May 31, 2017.

  1. Farid

    Farid New Member

    I have recently installed CentOS 7 server with Sendmail and Dovecot 2.2.10. When I send an email from outside the server to a particular user in the server, the email is delivered to the server in the directory /var/spool/mail/. When I try to retrieve the email from my personal computer (outside the server and another location) using Evolution, I do not get any error, but the message is not retrieved.

    The configuration of the Dovecot are as follows:

    dovecot.conf
    protocols = imap pop3 lmtp
    listen = *, ::

    10-auth.conf
    disable_plaintext_auth = no
    auth_mechanisms = plain login

    10-mail.conf
    mail_location = maildir:~/Maildir

    After trying to retrieve the email from the server using Evolution from my personnal computer and if I go to /var/log/maillog I can see the log related to my attempt to retrieve the email:
    May 31 14:40:35 IS-56014 dovecot: pop3-login: Login: user=<farid>, method=PLAIN, rip=83.132.146.40, lip=95.154.237.50, mpid=24407, TLS, session=<vwOcENJQXgBThJIo>
    May 31 14:40:35 IS-56014 dovecot: pop3(farid): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0

    I would appreciate very much any help I can get to resolve this problem.

    Thank you.
     
  2. Farid

    Farid New Member

    Hi .
    I have solved the problem as follows:

    In 10-mail.conf changed:
    mail_location = mbox:~/mail:INBOX=/var/mail/%u

    In the file 10-master.conf:
    port = 143
    port = 110

    Finally, according to wiki2.dovecot.org/Errors/ChgrpNoPerm I have changed the permissions as follows:
    chmod 0600 /var/mail/*

    This is the output of dovecot -n

    # 2.2.10: /etc/dovecot/dovecot.conf
    # OS: Linux 3.10.0-514.21.1.el7.x86_64 x86_64 CentOS Linux release 7.3.1611 (Core)
    disable_plaintext_auth = no
    first_valid_uid = 1000
    mail_location = mbox:~/mail:INBOX=/var/mail/%u
    mbox_write_locks = fcntl
    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
    }
    passdb {
    driver = pam
    }
    service imap-login {
    inet_listener imap {
    port = 143
    }
    }
    service pop3-login {
    inet_listener pop3 {
    port = 110
    }
    }
    ssl = required
    ssl_cert = </etc/pki/dovecot/certs/dovecot.pem
    ssl_key = </etc/pki/dovecot/private/dovecot.pem
    userdb {
    driver = passwd
    }
    userdb {
    driver = passwd
    }

    Best regards.
     
    till likes this.

Share This Page