Patrick, Javier, at last progress. Brilliant. :-) See below. On 30/11/2018 14:16, Patrick Boutilier
wrote:
On 11/30/18 10:00 AM, Charles Bradshaw via Info-cyrus wrote: The only lmtp entries are the one shown above. I do # cat /var/log/maillog | grep lmtp Nov 30 12:59:48 dell2600-1 sendmail[9882]: wAUCxmBR009882: to=<brad@xxxxxxxxxxxxxxxxxxxxx>, 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
If I do: [root@dell2600-1 brad]# ps -A | grep lmtp Process 10146 attached accept(4, 0, NULL) = 11 fcntl64(10, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0 alarm(0) = 0 write(3, "\2\0\0\0\242'\0\0", 8) = 8 dup2(11, 0) = 0 dup2(11, 1) = 1 dup2(11, 2) = 2 close(11) = 0 write(3, "\3\0\0\0\242'\0\0", 8) = 8 time(NULL) = 1543588732 getpeername(0, {sa_family=AF_LOCAL, NULL}, [2]) = 0 open("/var/lib/imap/log/postman/lmtpunix-10146", O_WRONLY|O_CREAT|O_APPEND, 0644) = -1 ENOENT (No such file or directory) select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout) write(1, "220 dell2600-1.bradcan.homelinux"..., 94) = 94 time(NULL) = 1543588732 select(1, [0], NULL, NULL, {360, 0}) = 1 (in [0], left {359, 999704}) time(NULL) = 1543588732 time(NULL) = 1543588732 read(0, "LHLO bradcan.homelinux.com\r\n", 4096) = 28 time(NULL) = 1543588732 select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout) write(1, "250-dell2600-1.bradcan.homelinux"..., 139) = 139 time(NULL) = 1543588732 select(1, [0], NULL, NULL, {360, 0}) = 1 (in [0], left {359, 997839}) time(NULL) = 1543588732 time(NULL) = 1543588732 read(0, "MAIL From:<brad@bradcan.homelinu"..., 4096) = 49 open("/var/lib/imap/msg/shutdown", O_RDONLY) = -1 ENOENT (No such file or directory) select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout) write(1, "250 2.1.0 ok\r\n", 14) = 14 time(NULL) = 1543588732 select(1, [0], NULL, NULL, {360, 0}) = 1 (in [0], left {359, 998503}) time(NULL) = 1543588732 time(NULL) = 1543588732 read(0, "RCPT To:<brad>\r\nDATA\r\n", 4096) = 22 open("/var/lib/imap/msg/shutdown", O_RDONLY) = -1 ENOENT (No such file or directory) fcntl64(6, F_SETLKW, {type=F_RDLCK, whence=SEEK_SET, start=0, len=0}) = 0 fstat64(6, {st_mode=S_IFREG|0600, st_size=22204, ...}) = 0 stat64("/var/lib/imap/mailboxes.db", {st_mode=S_IFREG|0600, st_size=22204, ...}) = 0 fcntl64(6, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0 open("/var/lib/imap/msg/shutdown", O_RDONLY) = -1 ENOENT (No such file or directory) select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout) write(1, "550-Mailbox unknown. Either the"..., 174) = 174 time(NULL) = 1543588732 select(1, [0], NULL, NULL, {360, 0}) = 1 (in [0], left {359, 999990}) time(NULL) = 1543588732 time(NULL) = 1543588732 read(0, "RSET\r\n", 4096) = 6 open("/var/lib/imap/msg/shutdown", O_RDONLY) = -1 ENOENT (No such file or directory) time(NULL) = 1543588732 select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout) write(1, "250 2.0.0 ok SESSIONID=<cyrus-10"..., 51) = 51 time(NULL) = 1543588732 select(1, [0], NULL, NULL, {360, 0}) = 1 (in [0], left {359, 932516}) time(NULL) = 1543588732 time(NULL) = 1543588732 read(0, "RSET\r\n", 4096) = 6 open("/var/lib/imap/msg/shutdown", O_RDONLY) = -1 ENOENT (No such file or directory) time(NULL) = 1543588732 select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout) write(1, "250 2.0.0 ok SESSIONID=<cyrus-10"..., 51) = 51 time(NULL) = 1543588732 select(1, [0], NULL, NULL, {360, 0}) = 1 (in [0], left {359, 999995}) time(NULL) = 1543588732 time(NULL) = 1543588732 read(0, "MAIL From:<> SIZE=1677\r\n", 4096) = 24 open("/var/lib/imap/msg/shutdown", O_RDONLY) = -1 ENOENT (No such file or directory) select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout) write(1, "250 2.1.0 ok\r\n", 14) = 14 time(NULL) = 1543588732 select(1, [0], NULL, NULL, {360, 0}) = 1 (in [0], left {359, 999524}) time(NULL) = 1543588732 time(NULL) = 1543588732 read(0, "RCPT To:<brad>\r\nDATA\r\n", 4096) = 22 open("/var/lib/imap/msg/shutdown", O_RDONLY) = -1 ENOENT (No such file or directory) fcntl64(6, F_SETLKW, {type=F_RDLCK, whence=SEEK_SET, start=0, len=0}) = 0 fstat64(6, {st_mode=S_IFREG|0600, st_size=22204, ...}) = 0 stat64("/var/lib/imap/mailboxes.db", {st_mode=S_IFREG|0600, st_size=22204, ...}) = 0 fcntl64(6, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0 open("/var/lib/imap/msg/shutdown", O_RDONLY) = -1 ENOENT (No such file or directory) select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout) write(1, "550-Mailbox unknown. Either the"..., 174) = 174 time(NULL) = 1543588732 select(1, [0], NULL, NULL, {360, 0}) = 1 (in [0], left {359, 999612}) time(NULL) = 1543588732 time(NULL) = 1543588732 read(0, "RSET\r\n", 4096) = 6 open("/var/lib/imap/msg/shutdown", O_RDONLY) = -1 ENOENT (No such file or directory) time(NULL) = 1543588732 select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout) write(1, "250 2.0.0 ok SESSIONID=<cyrus-10"..., 51) = 51 time(NULL) = 1543588732 select(1, [0], NULL, NULL, {360, 0}) = 1 (in [0], left {359, 946078}) time(NULL) = 1543588732 time(NULL) = 1543588732 read(0, "RSET\r\n", 4096) = 6 open("/var/lib/imap/msg/shutdown", O_RDONLY) = -1 ENOENT (No such file or directory) time(NULL) = 1543588732 select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout) write(1, "250 2.0.0 ok SESSIONID=<cyrus-10"..., 51) = 51 time(NULL) = 1543588732 select(1, [0], NULL, NULL, {360, 0}) = 1 (in [0], left {359, 999994}) time(NULL) = 1543588732 time(NULL) = 1543588732 read(0, "MAIL From:<> SIZE=2701\r\n", 4096) = 24 open("/var/lib/imap/msg/shutdown", O_RDONLY) = -1 ENOENT (No such file or directory) select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout) write(1, "250 2.1.0 ok\r\n", 14) = 14 time(NULL) = 1543588732 select(1, [0], NULL, NULL, {360, 0}) = 1 (in [0], left {359, 999927}) time(NULL) = 1543588732 time(NULL) = 1543588732 read(0, "RCPT To:<brad>\r\nDATA\r\n", 4096) = 22 open("/var/lib/imap/msg/shutdown", O_RDONLY) = -1 ENOENT (No such file or directory) fcntl64(6, F_SETLKW, {type=F_RDLCK, whence=SEEK_SET, start=0, len=0}) = 0 fstat64(6, {st_mode=S_IFREG|0600, st_size=22204, ...}) = 0 stat64("/var/lib/imap/mailboxes.db", {st_mode=S_IFREG|0600, st_size=22204, ...}) = 0 fcntl64(6, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0 open("/var/lib/imap/msg/shutdown", O_RDONLY) = -1 ENOENT (No such file or directory) select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout) write(1, "550-Mailbox unknown. Either the"..., 174) = 174 time(NULL) = 1543588732 select(1, [0], NULL, NULL, {360, 0}) = 1 (in [0], left {359, 999987}) time(NULL) = 1543588732 time(NULL) = 1543588732 read(0, "RSET\r\n", 4096) = 6 open("/var/lib/imap/msg/shutdown", O_RDONLY) = -1 ENOENT (No such file or directory) time(NULL) = 1543588732 select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout) write(1, "250 2.0.0 ok SESSIONID=<cyrus-10"..., 51) = 51 time(NULL) = 1543588732 select(1, [0], NULL, NULL, {360, 0}) = 1 (in [0], left {359, 871969}) time(NULL) = 1543588732 time(NULL) = 1543588732 read(0, "QUIT\r\n", 4096) = 6 write(1, "221 2.0.0 bye\r\n", 15) = 15 open("/dev/null", O_RDWR) = 11 shutdown(0, SHUT_RD) = 0 dup2(11, 0) = 0 shutdown(1, SHUT_RD) = 0 dup2(11, 1) = 1 shutdown(2, SHUT_RD) = 0 dup2(11, 2) = 2 close(11) = 0 write(3, "\1\0\0\0\242'\0\0", 8) = 8 rt_sigaction(SIGALRM, {0x80113f00, [], SA_RESETHAND}, NULL, 8) = 0 rt_sigaction(SIGQUIT, {0x80113f00, [], SA_RESETHAND}, NULL, 8) = 0 rt_sigaction(SIGHUP, {0x80113f00, [], SA_RESTART|SA_RESETHAND}, NULL, 8) = 0 rt_sigaction(SIGINT, {0x80113f00, [], SA_RESTART|SA_RESETHAND}, NULL, 8) = 0 alarm(74) = 0 fcntl64(10, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = ? ERESTARTSYS (To be restarted if SA_RESTART is set) --- SIGALRM {si_signo=SIGALRM, si_code=SI_KERNEL, si_value={int=1698768, ptr=0x19ebd0}} --- sigreturn() (mask []) = -1 EINTR (Interrupted system call) munmap(0xb7700000, 16384) = 0 close(5) = 0 munmap(0xb76f8000, 32768) = 0 close(6) = 0 munmap(0xb76f4000, 16384) = 0 close(7) = 0 munmap(0xb76f0000, 16384) = 0 close(8) = 0 exit_group(0) = ? +++ exited with 0 +++ I don't understand the above! Except there are a number of lines like: open("/var/lib/imap/log/postman/lmtpunix-10146",
O_WRONLY|O_CREAT|O_APPEND, 0644) = -1 ENOENT (No such file or
directory) Does any of the above explain 'User unknown', apart from fact that lmtp quit with SIGALRM I created /var/lib/imap/log/postman then when the test email is sent /var/lib/imap/log/postman contains this message: ---------- postman Fri Nov 30 15:04:47 2018>1543590287>220 dell2600-1.bradcan.homelinux.com Cyrus LMTP v2.4.17-Invoca-RPM-2.4.17-7.el6 server ready <1543590287<LHLO bradcan.homelinux.com >1543590287>250-dell2600-1.bradcan.homelinux.com 250-8BITMIME 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-SIZE 250-AUTH EXTERNAL 250 IGNOREQUOTA <1543590287<MAIL From:<brad@xxxxxxxxxxxxxxxxxxxxx> SIZE=653 >1543590287>250 2.1.0 ok <1543590287<RCPT To:<brad> DATA >1543590287>550-Mailbox unknown. Either there is no mailbox associated with this 550-name or you do not have authorization to see it. 550 5.1.1 User unknown ... Now I'm guessing, since user brad@xxxxxxxxxxxxxxxxxxxxx does exist and is working then it must be authorization. So why is authorization failing after years of working? How do I test authorization?
|
---- Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus