Koozali.org: home of the SME Server

email problem after Affa migration to new hardware

Offline slicknic

  • **
  • 23
  • +0/-0
    • http://www.oasisdriving.co.uk
email problem after Affa migration to new hardware
« on: March 11, 2010, 11:25:07 AM »
This morning I have migrated from an old Dell PE400 to PE SC1420 hardware for my home base SME server. It runs in Server / Gateway mode.

I used the instructions to the letter from the HowTo here http://wiki.contribs.org/Moving_SME_to_new_Hardware

After rising my new server to the live status all appeared to be working. I can access all the data in my Ibays and the config migrated across ok.

I have a problem with email and I think it is to do with permissions. Using the email client Evolution in Ubuntu connecting via IMAP I enter my password, but it then comes up with the following error and asks for my my password again.

IMAP command failed: Internal error: could not set UID/GID

I have tried logging in via webmail. On some accounts I can log in, but cant send mail.

I found the following error in the qmail log

2010-03-11 10:03:42.984941500 delivery 2: deferral: Unable_to_switch_to_/home/e-smith/files/users/username:_access_denied._(#4.3.0)/ 2010-03-11 10:03:42.984999500 status: local 0/10 remote 0/2

username is my login name. I am stumped. Can anyone offer any help with this?

Web access works fine. I have the Fetchmail and dansguardian contribs installed. I have switched off virus scanning and spam filtering for now for diags purposes but still not working.

Thanks in advance

...
Oasis Driving School - Bristol
www.oasisdriving.co.uk

Offline byte

  • *
  • 2,183
  • +2/-0
Re: email problem after Affa migration to new hardware
« Reply #1 on: March 11, 2010, 12:14:16 PM »
I found the following error in the qmail log

2010-03-11 10:03:42.984941500 delivery 2: deferral: Unable_to_switch_to_/home/e-smith/files/users/username:_access_denied._(#4.3.0)/ 2010-03-11 10:03:42.984999500 status: local 0/10 remote 0/2

Check the permissions on the users directory, what are they currently ?
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline slicknic

  • **
  • 23
  • +0/-0
    • http://www.oasisdriving.co.uk
Re: email problem after Affa migration to new hardware
« Reply #2 on: March 11, 2010, 12:23:45 PM »
Ok, good call. Using ls -al I can see that the permissions look ok, but the owners are wrong.

Do you foresee any problems using the chown -R command to fix this? I dont want to break anything else.

Cheers
Nick
...
Oasis Driving School - Bristol
www.oasisdriving.co.uk

Offline slicknic

  • **
  • 23
  • +0/-0
    • http://www.oasisdriving.co.uk
Re: email problem after Affa migration to new hardware
« Reply #3 on: March 11, 2010, 12:24:56 PM »
BTW the permissions for each directory are drwx------
...
Oasis Driving School - Bristol
www.oasisdriving.co.uk

Offline byte

  • *
  • 2,183
  • +2/-0
Re: email problem after Affa migration to new hardware
« Reply #4 on: March 11, 2010, 01:23:16 PM »
Do you foresee any problems using the chown -R command to fix this? I dont want to break anything else.

Is it only the top level that has incorrect user id ?

drwx------  7 joe        joe        4096 Feb 15 13:34 joe


Or all of the sub directories as well ?

I'd try to find out why it hasn't reset the correct ids, so you should raise a bug.

Be careful when using the chown -R command and make sure your in the correct working directory before you hit return :)
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline slicknic

  • **
  • 23
  • +0/-0
    • http://www.oasisdriving.co.uk
Re: email problem after Affa migration to new hardware
« Reply #5 on: March 11, 2010, 01:31:24 PM »
no the Maildir has the incorrect users as well.
I suspect it would be easier to do a cold start and restore from backup.

Thanks for your help.

Nick
...
Oasis Driving School - Bristol
www.oasisdriving.co.uk

Offline byte

  • *
  • 2,183
  • +2/-0
Re: email problem after Affa migration to new hardware
« Reply #6 on: March 11, 2010, 01:37:22 PM »
I've never used AFFA so not sure why it hasn't brought over the correct id's, you could try chown but if it was me I rather try find out what went wrong as there could be permissions problems too further down the line.

Don't forget to raise a bug against the affa contrib as something may not be noted or working properly.
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: email problem after Affa migration to new hardware
« Reply #7 on: March 11, 2010, 04:01:39 PM »
I have a problem with email and I think it is to do with permissions.

Don't report problems here - Please report bugs and potential bugs in the bug tracker