[CentOS] C6.7 evolution to cyrus imap(s) fails

Alexander Dalloz ad+lists at uni-x.org
Wed Aug 12 18:39:51 UTC 2015


Am 12.08.2015 um 20:29 schrieb Dr J Austin:
>
>
> On Wed, 12 Aug 2015, Alexander Dalloz wrote:
>
>
>>> I have been working at trying to get cyrus to listen on 148.197.29.5
>>> interface instead of the localhost - I have failed
>>>
>
>> No square brackets around the ip address.
>
>    imap        cmd="imapd" listen="imap" prefork=5
> #  imaps        cmd="imapd -s" listen="imaps" prefork=1
>    imaps        cmd="imapd -s" listen="148.197.29.5:imaps" prefork=1

That limits the listener to bind to only the specific IP address and not 
to all interfaces including localhost.

>    pop3        cmd="pop3d" listen="pop3" prefork=3
>
> [root at maui:/var/log]$ gedit /etc/cyrus.conf
> [root at maui:/var/log]$ service cyrus-imapd stop
> Shutting down cyrus-imapd:                                 [  OK  ]
> Exporting cyrus-imapd databases:                           [  OK  ]
> [root at maui:/var/log]$ service cyrus-imapd start
> Importing cyrus-imapd databases:                           [  OK  ]
> Starting cyrus-imapd:                                      [  OK  ]

What gets being logged at exactly that point? cyrus-imapd logs 
information at service start.

Please provide the content of /etc/imapd.conf.

> [root at maui:/var/log]$ ps -ef|grep cyrus
> cyrus    31699     1  0 19:13 ?        00:00:00
> /usr/lib/cyrus-imapd/cyrus-master -d
> cyrus    31703     1  0 19:13 ?        00:00:00 idled
> cyrus    31705 31699  0 19:13 ?        00:00:00 imapd
> cyrus    31706 31699  0 19:13 ?        00:00:00 pop3d
> cyrus    31707 31699  0 19:13 ?        00:00:00 pop3d -s
> cyrus    31708 31699  0 19:13 ?        00:00:00 lmtpd -a
> cyrus    31709 31699  0 19:13 ?        00:00:00 imapd
> cyrus    31710 31699  0 19:13 ?        00:00:00 pop3d
> cyrus    31712 31699  0 19:13 ?        00:00:00 imapd
> cyrus    31713 31699  0 19:13 ?        00:00:00 imapd
> cyrus    31714 31699  0 19:13 ?        00:00:00 imapd
> cyrus    31715 31699  0 19:13 ?        00:00:00 pop3d
> root     31717  3627  0 19:13 pts/1    00:00:00 grep cyrus
> [root at maui:/var/log]$ ip a l
> 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
>      link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
>      inet 127.0.0.1/8 scope host lo
>      inet6 ::1/128 scope host
>         valid_lft forever preferred_lft forever
> 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
> state UP qlen 1000
>      link/ether 00:30:1b:a0:4d:cc brd ff:ff:ff:ff:ff:ff
>      inet 148.197.29.5/24 brd 148.197.29.255 scope global eth0
>      inet6 fe80::230:1bff:fea0:4dcc/64 scope link
>         valid_lft forever preferred_lft forever

Ok, IP 148.197.29.5 is set for interface eth0.

>>> Then no "imapd -s" appears
>>>
>>> I have tried all sorts of combinations in cyrus.conf but all fail
>>> to LISTEN on 148.197.29.5
>>
>> Make sure the IP address 148.197.29.5 is definitely up on any of the
>> system's devices. Verify running "ip address list".
>
> See above
>
>>> Why will cyrus not listen on 148.197.29.5 ?
>>
>> I am sure it is because that IP address isn't bound to any device.
>
> I must be missing something very obvious !
>
> John
>
> A few extra tests
>
> [root at maui:/var/log]$ nmap -A -T4 -p 993 127.0.0.1

You configured the imaps service not to bind to localhost.

> Starting Nmap 5.51 ( http://nmap.org ) at 2015-08-12 19:23 BST
> Nmap scan report for localhost.localdomain (127.0.0.1)
> Host is up (0.000049s latency).
> PORT    STATE  SERVICE VERSION
> 993/tcp closed imaps
> Too many fingerprints match this host to give specific OS details
> Network Distance: 0 hops
>
> OS and Service detection performed. Please report any incorrect results
> at http://nmap.org/submit/ .
> Nmap done: 1 IP address (1 host up) scanned in 2.12 seconds
> ------------------------------------------------------------------------
> [root at maui:/var/log]$ nmap -A -T4 -p 993 148.197.29.5
>
> Starting Nmap 5.51 ( http://nmap.org ) at 2015-08-12 19:23 BST
> Nmap scan report for maui.jaa.org.uk (148.197.29.5)
> Host is up (0.000051s latency).
> PORT    STATE  SERVICE VERSION
> 993/tcp closed imaps
> Too many fingerprints match this host to give specific OS details
> Network Distance: 0 hops
>
> OS and Service detection performed. Please report any incorrect results
> at http://nmap.org/submit/ .
> Nmap done: 1 IP address (1 host up) scanned in 2.16 seconds
> ------------------------------------------------------------------------
> [root at maui:/var/log]$ nmap -A -T4 -p 993 maui
>
> Starting Nmap 5.51 ( http://nmap.org ) at 2015-08-12 19:20 BST
> Nmap scan report for maui (127.0.0.1)
> Host is up (0.000052s latency).
> Other addresses for maui (not scanned): 127.0.0.1 148.197.29.5
> rDNS record for 127.0.0.1: localhost.localdomain

What did you configure in your DNS and set in /etc/hosts? Please provide 
last one.

> PORT    STATE  SERVICE VERSION
> 993/tcp closed imaps
> Too many fingerprints match this host to give specific OS details
> Network Distance: 0 hops
>
> OS and Service detection performed. Please report any incorrect results
> at http://nmap.org/submit/ .
> Nmap done: 1 IP address (1 host up) scanned in 2.14 seconds
> ------------------------------------------------------------------------
>
>  From another machine
> [root at paxos:~]$ nmap -A -T4 -p 993 maui
>
> Starting Nmap 6.47 ( http://nmap.org ) at 2015-08-12 19:27 BST
> Nmap scan report for maui (148.197.29.5)
> Host is up (0.00016s latency).
> PORT    STATE  SERVICE VERSION
> 993/tcp closed imaps
> MAC Address: 00:30:1B:A0:4D:CC (Shuttle)
> Too many fingerprints match this host to give specific OS details
> Network Distance: 1 hop
>
> TRACEROUTE
> HOP RTT     ADDRESS
> 1   0.16 ms 148.197.29.5
>
> OS and Service detection performed. Please report any incorrect results
> at http://nmap.org/submit/ .
> Nmap done: 1 IP address (1 host up) scanned in 1.84 seconds


Alexander






More information about the CentOS mailing list