suddenly 'User unknown'?
charles.bradshaw at ntlworld.com
Sun Dec 2 10:45:29 EST 2018
Ha.. SOLVED IT :-))
/etc/host REQUIRES the entry:
192.168.0.3 dell2600-1.bradcan.homelinux.com dell2600-1
[root at dell2600-1 brad]# sendmail -C /etc/mail/sendmail.cf -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
Don't ask me what changed...
Thanks for the 'help'
On 02/12/2018 14:19, Charles Bradshaw via Info-cyrus wrote:
> I think there might be some clues, but I'm struggling to understand the
> below results.
> On 30/11/2018 17:36, Edda wrote:
>> Am 30.11.18 um 17:34 schrieb Charles Bradshaw:
>>> 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 at bradcan.homelinux.com
>>> as brad:
>>> [brad at dell2600-1 ~]$ sendmail -d21.1 -bv brad at bradcan.homelinux.com
>>> 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?
>> The message is a bit missleading. You can't just add a TrustedUser to
>> sendmail and run this test. You would have to change all
>> privileges.... It's absolutely ok to check the daemon as root.
>>> but as root:
>>> [root at dell2600-1 brad]# sendmail -d21.1 -bv brad at bradcan.homelinux.com
>>> . 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 at bradcan.homelinux.com... deliverable: mailer cyrusv2, user brad
>> The Parse1 ruleset considers brad at bradcan.homeliniux.com as a local
>> machine's user (Class $=w in sendmail). Therefore it strips the domain.
>> You can check $=w like this:
>> sendmail -C sendmail.cf -bt
>> Look for bradcan.homelinux.com
>> Do you have an entry for bradcan.homelinux.com in /etc/hosts? Then you
>> can simply delete it.
> No bradcan.homelinux.com is not in /etc/hosts or /etc/resolv.conf - But
> [brad at dell2600-1 ~]$ sendmail -C /etc/mail/sendmail.cf -bt
> ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
> Enter <ruleset> <address>
> And this:
> [root at dell2600-1 mail]# hostname --fqdn
> Whereas other hosts on the network show: host.bradcan.homelinux.com
> And after removing some comments and ignoring binary file matches # grep
> bradcan.homelinyx.com /etc/mail/* produces:
> access:bradcan.homelinux.com RELAY
> mailertable:bradcan.homelinux.com cyrusv2:/var/lib/imap/socket/lmtp
> virtusertable:@bradcan.co.uk %1 at bradcan.homelinux.com
> ??? are any of the above now somehow incorrect ???
> ??? Should I have the following line in virtusertable, The comments seem
> to suggest that I should. ???:
> @bradcan.homelinux.com %1%3
>> Cyrus Home Page: http://www.cyrusimap.org/
>> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
>> To Unsubscribe:
> Cyrus Home Page: http://www.cyrusimap.org/
> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
> To Unsubscribe:
More information about the Info-cyrus