-----Original Message----- From: CentOS [mailto:centos-bounces@centos.org] On Behalf Of Pete Biggs Sent: Friday, August 24, 2018 12:08 PM To: centos@centos.org Subject: Re: [CentOS] Mail has quit working
OK. There are a couple of things:
Aug 23 21:47:18 ts130 postfix/smtpd[3750]: warning: hostname
localhost
does not resolve to address 127.0.0.1 Aug 23 21:47:18 ts130 postfix/smtpd[3750]: connect from unknown[127.0.0.1]
That needs to be fixed. What does the entry for 127.0.0.1 look like in /etc/hosts? Have you also defined ::1 to be localhost in /etc/hosts?
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 192.168.1.110 ts130.palmettodomains.com ts130 192.168.1.110 mail.palmettodomains.com mail
# ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.1.102 edukes1.palmettodomains.com edukes1 192.168.1.105 hp8200.palmettodomains.com hp8200
In the file /etc/nsswitch.conf there is a line that starts hosts: what does that say?
# # /etc/nsswitch.conf # # An example Name Service Switch config file. This file should be # sorted with the most-used services at the beginning. # # The entry '[NOTFOUND=return]' means that the search for an # entry should stop if the search in the previous entry turned # up nothing. Note that if the search failed due to some other reason # (like no NIS server responding) then the search continues with the # next entry. # # Valid entries include: # # nisplus Use NIS+ (NIS version 3) # nis Use NIS (NIS version 2), also called YP # dns Use DNS (Domain Name Service) # files Use the local files # db Use the local database (.db) files # compat Use NIS on compat mode # hesiod Use Hesiod for user lookups # [NOTFOUND=return] Stop searching if not found so far #
# To use db, put the "db" in front of "files" for entries you want to be # looked up first in the databases # # Example: #passwd: db files nisplus nis #shadow: db files nisplus nis #group: db files nisplus nis
passwd: files sss shadow: files sss group: files sss #initgroups: files
#hosts: db files nisplus nis dns hosts: dns files myhostname
# Example - obey only what nisplus tells us... #services: nisplus [NOTFOUND=return] files #networks: nisplus [NOTFOUND=return] files #protocols: nisplus [NOTFOUND=return] files #rpc: nisplus [NOTFOUND=return] files #ethers: nisplus [NOTFOUND=return] files #netmasks: nisplus [NOTFOUND=return] files
bootparams: nisplus [NOTFOUND=return] files
ethers: files netmasks: files networks: files protocols: files rpc: files services: files sss
netgroup: files sss
publickey: nisplus
automount: files aliases: files nisplus
Aug 23 21:47:21 ts130 dovecot: imap-login: Login: user=<tdukes>, method=PLAIN, rip=::1, lip=::1, mpid=3754, secured, session=<9W1yjiR08AAAAAAAAAAAAAAAAAAAAAAB>
So you are connecting over TCPv6 from roundcube to dovecot? Is that what you want?
I have IPV6 disabled (I think).
Well it's certainly trying to connect via v6 - that's what the ::1 on that line is.
What is the IMAP hostname in the roundcube configuration?
$config['default_host'] = 'localhost';
I think part of the problem is that 'localhost' is being interpreted as the IPv6 loopback device ::1 and not the v4 127.0.0.1 - it may be that roundcube has got a wrong mailhost stored. Try running the following SQL command on your roundcube database:
mysql --user=rc -p roundcubemail -e "select username,mail_host from users;"
It will prompt for the password. (Obviously use a different user if it's not 'rc' and a different databasename if it's not 'roundcubemail'
- they are the defaults and are defined in the roundcube config file.)
It will come back with a list of the users defined and the mailhost it will attempt to connect to for that user.
P.
I seem to have forgotten the password I used. Have tried everything. I may have to re-install roundcube.
TIA