suddenly 'User unknown'?
Edda
letters001 at sendmaid.org
Fri Nov 30 12:36:55 EST 2018
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 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
> $=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.
Edda
More information about the Info-cyrus
mailing list