LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 09-14-2023, 10:51 PM   #1
Andrew Hoff
LQ Newbie
 
Registered: Sep 2023
Distribution: Fedora 35-38
Posts: 4

Rep: Reputation: 0
cannot receive mail using dovecot v2.3.20 - pop3 port 110 - evolution v3.42.4 client


Sent email is correctly stored by postfix. Cannot receive mail from dovecot pop3 server. Using port 110.

Client: evolution 3.42.4 O/S: fedora 35;
When receiving: security “no encryption”, authentication “password”

Dovecot server: 2.3.20 O/S: fedora 38

Suspect problem is pam configuration error. Using default settings, i.e. as installed.

systemctl status dovecot – error messages
Sep 15 13:33:22 zeta.hoff.com.au auth[3531]: pam_unix(dovecot:auth): check pass; user unknown
Sep 15 13:33:22 zeta.hoff.com.au auth[3531]: pam_unix(dovecot:auth): authentication failure; logname= uid=0 euid=0 tty=dovecot ruser=hoff@hoff.com.au rhost=f


getent passwd hoff - account exists
hoff:x:10000:10000:Andrew Hoff:/home/hoff:/bin/bash


doveconf -n
# 2.3.20 (80a5ac675d): /etc/dovecot/dovecot.conf
# OS: Linux 6.3.8-200.fc38.x86_64 x86_64 Fedora release 38 (Thirty Eight)
# Hostname: zeta
auth_mechanisms = plain login
disable_plaintext_auth = no
listen = 127.0.0.1, ::1, 172.18.0.20, fec0::ac12:14
mail_location = mbox:~/mail:INBOX=/var/spool/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 Trash {
special_use = \Trash
}
prefix =
}
passdb {
args = dovecot
driver = pam
}
pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
protocols = imap pop3
service auth {
unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0666
user = postfix
}
}
service pop3-login {
inet_listener pop3 {
port = 110
}
}
ssl_cert = </etc/pki/dovecot/certs/postfix.pem
ssl_cipher_list = PROFILE=SYSTEM
ssl_key = # hidden, use -P to show it
ssl_min_protocol = TLSv1
userdb {
driver = passwd
}


ls -lZd /var/spool/mail – display mode of mail directory
drwxrwxrwt. 5 root mail system_ubject_r:mail_spool_t:s0 4096 Sep 13 22:14 mail
Note: tried setenforce 0 & got same result; this is NOT an selinux issue


cat /etc/pam.d/dovecot, as installed; have tried alternative (see below) same error
#%PAM-1.0
auth required pam_nologin.so
auth include password-auth
account include password-auth
session include password-auth
#
# alternative
# auth required pam_unix.so nullok
# account required pam_unix.so
 
Old 09-18-2023, 05:15 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
passdb {
args = dovecot
driver = pam
Replace the above with the following and see if it helps:
Code:
passdb {
  driver = shadow
}
 
Old 09-20-2023, 07:55 AM   #3
Andrew Hoff
LQ Newbie
 
Registered: Sep 2023
Distribution: Fedora 35-38
Posts: 4

Original Poster
Rep: Reputation: 0
Have applied changes, still unable to connect.
Error in system message file - using journalctl
dovecot[3769]: pop3-login: Disconnected: Connection closed (auth failed, 3 attempts in 22 secs): user=<hoff@hoff.com.au>

FYI extract doveconf -n
passdb {
driver = shadow
}
 
Old 09-20-2023, 11:08 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by Andrew Hoff View Post
Have applied changes, still unable to connect.
Error in system message file - using journalctl
dovecot[3769]: pop3-login: Disconnected: Connection closed (auth failed, 3 attempts in 22 secs): user=<hoff@hoff.com.au>

FYI extract doveconf -n
passdb {
driver = shadow
}
Since you're using username@domain.com to login, you should use the following (in /etc/dovecot/conf.d/10-auth.conf or similar config file):
Code:
auth_username_format = %n
Also make sure you're using the correct username/password combination?
 
Old 09-24-2023, 07:51 AM   #5
Andrew Hoff
LQ Newbie
 
Registered: Sep 2023
Distribution: Fedora 35-38
Posts: 4

Original Poster
Rep: Reputation: 0
Have found problem.

implemented following in 10-auth.conf:
auth_username_format = %n

returned back to orginal setting:
passdb {
args = dovecot
driver = pam
}

used evolution from CLIENT running fedora 33 - success - retrieved mail
Issue: fedora 35 client uses YESCRYPT to create shadow passwords (password prefix $y$); fedora 33 uses SHA512 (password prefix $6$)

I have contacted Dovecot to verify Dovecot 2.3.20 is incompatibility with YESCRYPT. The pop3 server may be running YESCRIPT but the clients cannot.
Must now determine how to change password encryption from YESCRYPT to SHA512
 
Old 09-25-2023, 08:11 AM   #6
Andrew Hoff
LQ Newbie
 
Registered: Sep 2023
Distribution: Fedora 35-38
Posts: 4

Original Poster
Rep: Reputation: 0
Took a step back and checked the routing. I have two nics with two default routes in the motebook running Fedora 35. Everything is OK.

I sent a message and was able to retrive it using Evolution v3.42.4 I repeated the test a few times. Everything is OK.

This problem had nothing to do with YESCRYPT.

Please close this incident.
 
Old 09-25-2023, 10:00 AM   #7
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by Andrew Hoff View Post
Took a step back and checked the routing. I have two nics with two default routes in the motebook running Fedora 35. Everything is OK.

I sent a message and was able to retrive it using Evolution v3.42.4 I repeated the test a few times. Everything is OK.

This problem had nothing to do with YESCRYPT.

Please close this incident.
You should use the "Thread Tools" on top of the page to make the thread as "Solved"

Cheers
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can send mail but Not able to receive mail. Postfixadmin, dovecot, postfix setup RajeshThakur Linux - Newbie 9 04-20-2012 08:31 AM
Cannot receive mail using Evolution. rhds1 Linux - Newbie 5 04-09-2011 05:40 PM
Mail Server with : Postfix,dovecot. (Can send email, but can't receive email from internet mail) cparapat Linux - Server 1 08-16-2010 12:57 AM
Postfix-dovecot cannot receive mail coad Linux - Server 3 06-03-2009 11:59 PM
with the linux proxi, backend pop3 mail client can not receive mail and send mail rubin823 Linux - Networking 0 12-21-2006 10:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 03:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration