Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Sendmail works through sending to a smarthost, but can't find local users.

# sendmail -bv  LocalUser@myhost.net
LocalUser@myhost.net... User unknown
# grep LocalUser /var/log/maillog
Sep  8 03:48:30 myhost sendmail[6678]: r887mUs3006678: LocalUser@myhost.net... User unknown

but ...

# ls /home|grep LocalUser
/LocalUser

and ...

# grep LocalUser /etc/passwd
LocalUser:x:1001:1001:LocalUser:/home/LocalUser:/bin/bash

How can I configure sendmail to find localusers? How should I diagnose this?

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

Sendmail and local users with uppercase letters

Diagnose

Sendmail's default configuration converts local user/mailbox names to all lowercase letters before delivery attempt. In you case email to LocalUser@myhost.net is delivered by sendmail to nonexisting localuser instead of existing LocalUser.

Possible fixes

Do not use usernames with uppercase letters

OR

Specify the only right uppercase and lowercase mix (fox given lowercase only string). It requires modification in sendmail.mc and aliases files.

http://www.sendmail.org/faq/section4.html#4.17
Subject: Q4.17 -- How do I handle user names with upper-case characters?

sendmail.mc file (requires recompilation into sendmail.cf file):

MODIFY_MAILER_FLAGS(`LOCAL', `+u')dnl

aliases file (requires recompilation with newaliases command):

# lowercase version to real for accounts with uppercase letters
localuser: LocalUser
share|improve this answer
    
Worked a charm! Would upvote but my low karma prevents it. I found the info at sendmail.com/sm/open_source/support/support_faq/… –  rickhg12hs Sep 8 '13 at 8:49
1  
sendmail.org/faq/section4.html#4.17 is redirected to sendmail.com site. –  Andrzej A. Filip Nov 3 '13 at 12:53
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.