Re: suddenly 'User unknown'?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@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?

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 brad@xxxxxxxxxxxxxxxxxxxxx

[...]
. 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

The Parse1 ruleset considers brad@xxxxxxxxxxxxxxxxxxxxxx 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

----
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




[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux