Re: suddenly 'User unknown'?

Charles Bradshaw via Info-cyrus <[email protected]>
Newsgroups gmane.mail.imap.cyrus
Message-ID <[email protected]>
Ha.. SOLVED IT :-))

/etc/host REQUIRES the entry:

192.168.0.3     dell2600-1.bradcan.homelinux.com dell2600-1

Then:

[root@dell2600-1 brad]# sendmail -C /etc/mail/sendmail.cf -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
> $=w
dell2600-1.bradcan.homelinux.com
dell2600-1
localhost.localdomain
localhost
bradcan.co.uk
[192.168.0.3]
> /quit

Don't ask me what changed...

Thanks for the 'help'

On 02/12/2018 14:19, Charles Bradshaw via Info-cyrus wrote:
> Edda,
>
> 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:
>>> 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 [email protected]
>>> as brad:
>>>
>>> [brad@dell2600-1 ~]$ sendmail -d21.1 -bv [email protected]
>>> 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@dell2600-1 brad]# sendmail -d21.1 -bv [email protected]
>>>
>>> [...]
>>> . 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
>>> [email protected]... deliverable: mailer cyrusv2, user brad
>> The Parse1 ruleset considers [email protected] 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
>>> $=w
>> localhost
>> [127.0.0.1]
>> dell2600-1.bradcan.homelinux.com
>> [...]
>>> /quit
>> 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
> this:
>
> [brad@dell2600-1 ~]$ sendmail -C /etc/mail/sendmail.cf -bt
> ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
> Enter <ruleset> <address>
>> $=w
> dell2600-1.bradcan.homelinux.com
> [213.106.111.18]
> localhost.localdomain
> localhost
> bradcan.co.uk
> bradcan.homelinux.com
>> /quit
> And this:
>
> [root@dell2600-1 mail]# hostname --fqdn
> bradcan.homelinux.com
>
> Whereas other hosts on the network show: host.bradcan.homelinux.com
>
>  ~o~
>
> 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
>
> sendmail.cf:C{M}bradcan.homelinux.com
>
> sendmail.mc:MASQUERADE_DOMAIN(bradcan.homelinux.com)
> sendmail.mc~:MASQUERADE_DOMAIN(bradcan.homelinux.com)
>
> virtusertable:@bradcan.co.uk    %[email protected]
>
> ??? 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
>
>> Edda
>>
>> ----
>> 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
----
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.