suddenly 'User unknown'?

Charles Bradshaw charles.bradshaw at ntlworld.com
Thu Nov 29 14:20:01 EST 2018


On 29/11/2018 15:32, Dan White wrote:
> Do you otherwise see log entries for an imap connection?
Where would I find these? Other than in /etc/imapd.log
>
> Is there a permissions problem on the lmtpunix mux
> (/var/lib/imap/socket/lmtp)? Your syslog entry seems to indicate it is
> communicating with cyrus, but perhaps I'm misreading it.

# ls -lA /var/lib/imap/socket/lmtp
srwxrwxrwx. 1 root root 0 Nov 29 14:38 /var/lib/imap/socket/lmtp

>
> Look up telemetry logging, and lmtptest for other ways to verify your
> cyrus
> config. You may need to temporarily enable lmtp on a TCP port to test.

I did:

[root at dell2600-1 brad]# ls -l /var/lib/imap/log
total 0
[root at dell2600-1 brad]# mkdir /var/lib/imap/log/brad at bradcan.homelinux.com
[root at dell2600-1 brad]# chown cyrus
/var/lib/imap/log/brad at bradcan.homelinux.com

[root at dell2600-1 brad]# ls -l /var/lib/imap/log/
total 4
drwxr-xr-x. 2 cyrus root 4096 Nov 29 16:51 brad at bradcan.homelinux.com

then re-connect from another client on the network using Thunderbird
Mail. I then see:

[root at dell2600-1 brad]# ls -l /var/lib/imap/log/brad at bradcan.homelinux.com
total 52
-rw-------. 1 cyrus mail 25990 Nov 29 16:59 imaps-4288
-rw-------. 1 cyrus mail 21539 Nov 29 17:07 imaps-4646

I think that's as expected?

I looked at # man lmtptest, but I don't begin to understand! Not
surprising since lmtptest seems to be a  debugging tool for developers,
which I definitely ain't :-(

Perhaps  you would be kind enough to post the specific lmtptest command
I should use and the expected result.

>
> On 11/29/18 15:25 +0000, Charles Bradshaw wrote:
>> I have, and have always had, an empty /var/log/imapd.log so I'm not
>> going to make progress until I fix that.
>>
>> In n /etc/rsyslog.conf
>>
>> # cyrus imapd
>> #local6.*                              /var/log/imapd.log   - tried this
>> first.
>> local6.debug                        /var/log/imapd.log
>> auth.debug                          /var/log/auth.log
>>
>> and in /etc/imapd.conf
>>
>> syslog_prefix: cyrus
>> syslog_facility: LOCAL6
>>
>> If I remove the file /etc/imapd.log then
>>
>> # /etc/init.d/rsyslog restart
>>
>> # logger local6.debug 'test log message'
>>
>> # cat /var/log/imapd.log
>>
>> Nov 29 15:06:42 dell2600-1 brad: test log message
>>
>> Obviously syslog is working local6. But still no messages from cyrus!
>> Therefor I'm now stuck with this secondary problem.
>>
>> I have followed the cyrus instructions as best I can, but no go. I say
>> again this has all worked for years, albeit with an always empty
>> imapd.log
>>
>> There must be some missing cyrus syslog configuration.
>
>> On 29/11/2018 14:39, Dan White wrote:
>>> On 11/29/18 00:46 +0000, Charles Bradshaw wrote:
>>>>>> Nov 27 15:18:36 dell2600-1 sendmail[4801]: wARFIavg004801:
>>>>>> to=<brad at bradcan.homelinux.com>, delay=00:00:00, xdelay=00:00:00,
>>>>>> mailer=cyrusv2, pri=31677, relay=localhost [[UNIX:
>>>>>> /var/lib/imap/socket/lmtp]], dsn=5.1.1, stat=User unknown


More information about the Info-cyrus mailing list