LMTP error after RCPT TO 550 5.1.1 user doesn’t exist

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,304
1,250
313
Houston
Hello,


Without any further information, this just looks like the user you're attempting to email doesn't exist. Details on where you're sending to/from and in what circumstance this occurs (all email or just specific addresses) would be necessary to assist you in this case.
 

sparek-3

Well-Known Member
Aug 10, 2002
1,983
218
343
cPanel Access Level
Root Administrator
This will happen if the directory

/home/`/scripts/whoowns example.com`/mail/example.com/contato

exists. This happened when cPanel moved to Dovecot for LMTP. The system doesn't actually read /home/`/scripts/whoowns example.com`/etc/example.com/passwd to determine if that particular email address exists.
 

Stefaans

Well-Known Member
Mar 5, 2002
461
4
318
Vancouver, Canada
Thank you @sparek-3, you just solved a mysterious problem for me!

We were seeing "User doesn't exist" errors for a user that did exist. On inspection, I found that the /home/username/etc/customer-domain.com/passwd file contained an incorrect domain for an email account in question, and subsequently that email address could not receive email. Because I knew where to look, I could manually edit the file and fix the problem.

I do not know how the invalid domain ended up in the passwd file. That part is still a mystery.
 
  • Like
Reactions: cPanelLauren