Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: g00s3m4n on March 22, 2005, 03:58:40 PM

Title: Challenging psuedonym problem.. need some help here..
Post by: g00s3m4n on March 22, 2005, 03:58:40 PM
Hello everyone..

Here is my problem, maybe someone could shed some light..

I have a user on my server, lets call her jane smith.
Jane smith had a user account called janesmith
Her use account was deleted, and a psuedonym janesmith was created instead.
The psuedonym was deleted, and her account was recreated (had to run /sbin/e-smith/db accounts delete janesmith)
Whenever mail was sent to janesmith@mydomain.com the following error appeared in my qmail log:
Unable_to_switch_to_/home/e-smith/files/users/janesmith:_access_denied_. (#4.3.0)

After recreating the account and playing with this for a while, I thought it would be easier to create a new username for jane and create a psuedonym to forward mail to her old account to the new one. (i.e new username: janes and psuedonym: janesmith).

My problem now it that mail to janes@mydomain.com works fine, but when anything is sent to janesmith@mydomain.com I get the following:

4000000042402ffb10dd4c84 delivery 887: deferral: Unable_to_switch_to_/home/e-smith/files/users/janesmith:_file_does_not_exist._(#4.3.0)/

Even if I remove the janesmith psuedonym and send mail to janesmith@mydomain.com (which accoring to me should bounce of say something like: @400000004240307f282c33dc delivery 889: failure: Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/) I still get the same error:

4000000042402ffb10dd4c84 delivery 887: deferral: Unable_to_switch_to_/home/e-smith/files/users/janesmith:_file_does_not_exist._(#4.3.0)/

My thoughts are that it is still keeping record of the old psuedonym somewhere and I am not able to find it.

Can anyone help me?

Thanks

g

 :pint:
Title: Re: Challenging psuedonym problem.. need some help here..
Post by: raem on March 23, 2005, 02:56:19 AM
[quote="g00s3m4n

> 4000000042402ffb10dd4c84 delivery 887: deferral: Unable_to_switch_to_/home/e-smith/files/users/janesmith:_file_does_not_exist._(#4.3.0)/



Well does the file exist ?
You should also check what permissions are on the file and folder, they are probably the problem.
Title: Challenging psuedonym problem.. need some help here..
Post by: jpnelson40 on March 23, 2005, 04:32:48 AM
This problem has come up before "Cannot add a specific user after deleting it"

Boris 1/3/2004: use "/sbin/e-smith/db accounts delete username"

It worked for me v 6.01.01. It is said to be a bug.
Title: Challenging psuedonym problem.. need some help here..
Post by: g00s3m4n on March 23, 2005, 07:20:09 AM
Hello..

"[quote="g00s3m4n

> 4000000042402ffb10dd4c84 delivery 887: deferral: Unable_to_switch_to_/home/e-smith/files/users/janesmith:_file_does_not_exist._(#4.3.0)/



Well does the file exist ?
You should also check what permissions are on the file and folder, they are probably the problem."

Well.. it does not exist, thats my point, why is it trying to send  the mail there and not bounce it?

"This problem has come up before "Cannot add a specific user after deleting it"

Boris 1/3/2004: use "/sbin/e-smith/db accounts delete username"

It worked for me v 6.01.01. It is said to be a bug."

I am aware of this and have used it to clear the the account from the db before recreating it.

Thanks for the help guys, but i still think that it is caching the psuedonym somewhere, will continue bashing away..

thanks again
Title: Challenging psuedonym problem.. need some help here..
Post by: raem on March 23, 2005, 07:46:28 AM
Didn't Mike suggest to check the /home/e-smith/accounts file, what was the outcome of that.
Did you see the offending pseudonym still there ?

It's not the correct procedure normally, but you may have to manually remove the offending pseudonym entry from that file, as he said make a copy first.
Title: Challenging psuedonym problem.. need some help here..
Post by: raem on March 23, 2005, 07:57:11 AM
g00s3m4n

> Unable_to_switch_to_/home/e-smith/files/users/janesmith:_file_does_not_exist


Well.. it does not exist, thats my point, why is it trying to send  the mail there and not bounce it?

Because the system thinks it is there !

So if you do
cd /home/e-smith/files/users/
ls -al

Do you see any listing for janesmith (or whatever name is currently the offending one)


If you do
cd /home/e-smith
mc
highlight accounts
F3
do you see any entry for janesmith
Title: Challenging psuedonym problem.. need some help here..
Post by: g00s3m4n on March 23, 2005, 01:43:12 PM
hello..

i am trying to understand why it is trying to send mail there in the first place.. there is no janesmith in /etc/e-smith/files/users/.

i have also checked /etc/e-smith/accounts and there is no entry for janesmith there, only janes

i found that if i send a test message to jane.smith@mydomain.com (which according the the accounts file/ server-manager psuedonyms menu points to janes) i still get the follow message:

@40000000424162ea062255dc delivery 3752: deferral: Unable_to_switch_to_/home/e-smith/files/users/janesmith:_file_does_not_exist._(#4.3.0)/

i am actually at the point now where I dont know what to do anymore, I have run out of ideas..

i appreciate everyones help..