username in DA system

expream

Verified User
Joined
Sep 17, 2005
Messages
52
Hello all!

I have problems with emails. My users (who has numeric username in DA system and in OS) can not receive emails! Here is the error:

2004-11-06 11:20:44 Received from *****@gmail.com U=mail P=spam-scanned S=1566 [email protected] T="Test"
2004-11-06 11:20:44 [email protected] R=virtual_user T=virtual_localdelivery defer (-6): mailbox /var/spool/virtual/modemnet.org/az3rch has wrong uid (99 != 500)
2004-11-06 11:40:58 [email protected] R=virtual_user T=virtual_localdelivery defer (-6): mailbox /var/spool/virtual/modemnet.org/az3rch has wrong uid (99 != 500)

Why did it happaned? Should I raname users who has a numeric username? To chown and chmod every user .. it isnt solution... any ideas? WHY IS IT SO???
 
Looks like the spool file has the wrong owner, it looks like it wants a uid=500 and not 99. That would happen if the user with a uid=99 created the file or root did a chown on it.
 
no... i dont understand.. i have just created user with username "1149" ... and the same problem.... wrong uid (1012 != 1149) but user 1149 has uid 1012! why exim try to compare username "1149" (but not its uid ) with uid!?!?!?
 
Oh I see, by the looks of your log file, the email was sent to [email protected] and not a numerical username. I am not sure why exim would do that. I would assume that it would have just done a getpwnam and take the uid from there. Perhaps this question should be asked on the exim forum/mailing list, they would have a better idea about their internal workings.
 
Well, I just created a user 1341 on one of my domains and was able to send email to it without a problem. It sounds like you have some other problem. Try doing an ls -l in the /var/spool/virtual/${domain} and see who owns that file. Also do an ls -ln and see what the uid is. The owner of all those files should be the domain owner (the user associated with the domain in /etc/virtual/domainowners). If it is not, try removing the spool file and letting exim recreate the file.
 
Back
Top