Edda, On 30/11/2018 15:48, Edda wrote: > Not a cyrus issue. Apparently sendmail strips the domain as you see in > lines like "RCPT To:<brad>" > > Your cyrusv2 Mailer in sendmail.mc seems correct to me. > > What do you get from (you can skip all the line for user root) > > sendmail -d21.1 -bv brad@xxxxxxxxxxxxxxxxxxxxx as brad: [brad@dell2600-1 ~]$ sendmail -d21.1 -bv brad@xxxxxxxxxxxxxxxxxxxxx Notice: -bv may give misleading output for non-privileged user can not chdir(/var/spool/mqueue/): Permission denied Program mode requires special privileges, e.g., root or TrustedUser. How do I setup TrustUser? but as root: [root@dell2600-1 brad]# sendmail -d21.1 -bv brad@xxxxxxxxxxxxxxxxxxxxx rewrite: ruleset canonify input: brad rewrite: ruleset Canonify2 input: brad rewrite: ruleset Canonify2 returns: brad rewrite: ruleset canonify returns: brad rewrite: ruleset parse input: brad rewrite: ruleset Parse0 input: brad rewrite: ruleset Parse0 returns: brad rewrite: ruleset ParseLocal input: brad rewrite: ruleset ParseLocal returns: brad rewrite: ruleset Parse1 input: brad rewrite: ruleset Parse1 returns: $# cyrusv2 $: brad rewrite: ruleset parse returns: $# cyrusv2 $: brad rewrite: ruleset 2 input: brad rewrite: ruleset 2 returns: brad rewrite: ruleset EnvToSMT input: brad rewrite: ruleset EnvToSMT returns: brad rewrite: ruleset final input: brad rewrite: ruleset final returns: brad rewrite: ruleset canonify input: brad rewrite: ruleset Canonify2 input: brad rewrite: ruleset Canonify2 returns: brad rewrite: ruleset canonify returns: brad rewrite: ruleset 1 input: brad rewrite: ruleset 1 returns: brad rewrite: ruleset final input: brad rewrite: ruleset final returns: brad rewrite: ruleset canonify input: brad @ bradcan . homelinux . com rewrite: ruleset Canonify2 input: brad < @ bradcan . homelinux . com > rewrite: ruleset Canonify2 returns: brad < @ bradcan . homelinux . com . > rewrite: ruleset canonify returns: brad < @ bradcan . homelinux . com . > rewrite: ruleset parse input: brad < @ bradcan . homelinux . com . > rewrite: ruleset Parse0 input: brad < @ bradcan . homelinux . com . > rewrite: ruleset Parse0 returns: brad < @ bradcan . homelinux . com . > rewrite: ruleset ParseLocal input: brad < @ bradcan . homelinux . com . > rewrite: ruleset ParseLocal returns: brad < @ bradcan . homelinux . com . > rewrite: ruleset Parse1 input: brad < @ bradcan . homelinux . com . > rewrite: ruleset Parse1 returns: $# cyrusv2 $: brad rewrite: ruleset parse returns: $# cyrusv2 $: brad rewrite: ruleset 2 input: brad rewrite: ruleset 2 returns: brad rewrite: ruleset EnvToSMT input: brad rewrite: ruleset EnvToSMT returns: brad rewrite: ruleset final input: brad rewrite: ruleset final returns: brad brad@xxxxxxxxxxxxxxxxxxxxx... deliverable: mailer cyrusv2, user brad [root@dell2600-1 brad]# sendmail -d21.1 -bv brad@xxxxxxxxxxxxxxxxxxxxx rewrite: ruleset canonify input: brad rewrite: ruleset Canonify2 input: brad rewrite: ruleset Canonify2 returns: brad rewrite: ruleset canonify returns: brad rewrite: ruleset parse input: brad rewrite: ruleset Parse0 input: brad rewrite: ruleset Parse0 returns: brad rewrite: ruleset ParseLocal input: brad rewrite: ruleset ParseLocal returns: brad rewrite: ruleset Parse1 input: brad rewrite: ruleset Parse1 returns: $# cyrusv2 $: brad rewrite: ruleset parse returns: $# cyrusv2 $: brad rewrite: ruleset 2 input: brad rewrite: ruleset 2 returns: brad rewrite: ruleset EnvToSMT input: brad rewrite: ruleset EnvToSMT returns: brad rewrite: ruleset final input: brad rewrite: ruleset final returns: brad rewrite: ruleset canonify input: brad rewrite: ruleset Canonify2 input: brad rewrite: ruleset Canonify2 returns: brad rewrite: ruleset canonify returns: brad rewrite: ruleset 1 input: brad rewrite: ruleset 1 returns: brad rewrite: ruleset final input: brad rewrite: ruleset final returns: brad rewrite: ruleset canonify input: brad @ bradcan . homelinux . com rewrite: ruleset Canonify2 input: brad < @ bradcan . homelinux . com > rewrite: ruleset Canonify2 returns: brad < @ bradcan . homelinux . com . > rewrite: ruleset canonify returns: brad < @ bradcan . homelinux . com . > rewrite: ruleset parse input: brad < @ bradcan . homelinux . com . > rewrite: ruleset Parse0 input: brad < @ bradcan . homelinux . com . > rewrite: ruleset Parse0 returns: brad < @ bradcan . homelinux . com . > rewrite: ruleset ParseLocal input: brad < @ bradcan . homelinux . com . > rewrite: ruleset ParseLocal returns: brad < @ bradcan . homelinux . com . > rewrite: ruleset Parse1 input: brad < @ bradcan . homelinux . com . > rewrite: ruleset Parse1 returns: $# cyrusv2 $: brad rewrite: ruleset parse returns: $# cyrusv2 $: brad rewrite: ruleset 2 input: brad rewrite: ruleset 2 returns: brad rewrite: ruleset EnvToSMT input: brad rewrite: ruleset EnvToSMT returns: brad rewrite: ruleset final input: brad rewrite: ruleset final returns: brad brad@xxxxxxxxxxxxxxxxxxxxx... deliverable: mailer cyrusv2, user brad But as root: [root@dell2600-1 brad]# sendmail brad@xxxxxxxxxxxxxxxxxxxxx < email.txt Still reports 'User unknown' in /etc/maillog > > Greets, > Edda > > Am 30.11.18 um 16:34 schrieb Charles Bradshaw via Info-cyrus: >> >> Patrick, Javier, at last progress. Brilliant. :-) See below. >> >> [root@dell2600-1 brad]# strace -p 10146 >> >> > [...] >> read(0, "RCPT To:<brad>\r\nDATA\r\n", 4096) = 22 >> > [...] >> +++ 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 ---- 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