Cannot delete user in SAC

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

Jason Warren
Posts: 31
Joined: Wed Nov 09, 2005 12:22 pm
Location: East Retford
Contact:

Cannot delete user in SAC

Postby Jason Warren » Thu Mar 01, 2007 10:00 am

Hi,
When trying to delete a user in SAC [Version 9.2.1.119] I get the following message:
"Could not delete firstname lastname"

Please advise.

Best Regards,
Jason
Jason Warren

kanderson

Postby kanderson » Thu Mar 01, 2007 12:47 pm

wow, 9.2 is REALLY old. You should upgrade to at least 10.

Anyways, drop to a command line, and run omdelu -n <username>

That should delete him. If it doesn't, or it gives some other strange error, then the user is likely already deleted, and just needs the entry cleaned out of the LDAP.

omdelent -e "S=<surname>,OU1=<mailnode"

You can get that information from "omsearch -s|grep <username>" to verify.

Kev.

Jason Warren
Posts: 31
Joined: Wed Nov 09, 2005 12:22 pm
Location: East Retford
Contact:

Postby Jason Warren » Sat Mar 03, 2007 10:32 am

Thanks Kevin,
I tried to delete the user in SAC from a remote workstation and it came up with the error "Could not delete firstname lastname"
But then I logged directly onto the Scalix server as root and tried to delete the user through SAC, and it worked perfectly.
Not sure as to why this should be, but the issue is now resolved.
In the future I will try your method out of interest, as I find Scalix an excellent email server, even at a humble version 9.2 :o)
All the very best and many thanks for sharing your knowledge.
Best regards
Jason
Jason Warren

bobway54

omdelent

Postby bobway54 » Sat Mar 03, 2007 5:04 pm

I have a problem with a deleted user in Scalix.

Output of omshowu:

mx2:~ # omshowu -n tracey
omshowu : [OM 8040] The user can't be found, or has been deleted.


When I run omdelent command in Scalix 10.0.1 against the ldap user I get the folowing error message:

mx2:~ # omdelent -e "S=Thompson,OU1=mx2"
S=Thompson,OU1=mx2
[OM 16092] An attribute has multiple values, but is not
configured as multi-value.

Attribute : S
Max allowed size : 40
Required syntax : PRINTABLE-STRING

Is my syntax wrong?

bobway54

forgot omsearch output

Postby bobway54 » Sat Mar 03, 2007 5:10 pm

fortgot to include the omsearch output

omsearch -s|grep tracey
S=Thompson/G=Tracey/OU1=mx2/OU2=buyersadvantagekc/CN=Tracey Thompson/INTERNET-ADDR="Tracey Thompson" <tracey@buyersadvantagekc.com>="Tracey Thompson" <tracey@tbakc.com>/ENTRY-TYPE=1/UL-AUTHID=tracey/UL-CAPS=6/UL-CLASS=Limited/UL-IL=AMERICAN/CNTRY=US/PARENT-DL=352

kanderson

Postby kanderson » Sun Mar 04, 2007 2:23 am

Try

omdelent -e "S=Thompson/G=Tracey/OU1=mx2/OU2=buyersadvantagekc"

Thanks
Kev.

bobway54

It worked

Postby bobway54 » Sun Mar 04, 2007 2:30 pm

Thanks, that worked. I always have the hardest time with syntax. I don't do enough of the command line stuff to remember it properly. Thanks again.
Bob

kanderson

Postby kanderson » Mon Mar 05, 2007 6:27 pm

You had the syntax correct. You just missed a few.

In particular, think of the OU1 & OU2 as directories, and the user as a file.

You need to:

rm /mx2/buyersadvantagekc/Tracey.Thompson

Since your command didn't specify the second "directory", the "file" couldn't be found.

I know it's not a perfect example, but it's close and it's really familiar so people usually understand it.

Glad it's all working now.
Kev.

Jason Warren
Posts: 31
Joined: Wed Nov 09, 2005 12:22 pm
Location: East Retford
Contact:

Postby Jason Warren » Tue Mar 13, 2007 1:05 pm

Hi,
I have deleted a user john.burgess@mydomain.com via SAC, but if I send an email to him I dont get a bounced email?
Please advise.
Best Regards,
Jason
Jason Warren

KevinAnderson

Postby KevinAnderson » Wed Mar 14, 2007 10:34 am

Is mydomain.com listed in /etc/mail/local-host-names?

If not, add it and restart sendmail.

Kev.

Jason Warren
Posts: 31
Joined: Wed Nov 09, 2005 12:22 pm
Location: East Retford
Contact:

Postby Jason Warren » Wed Mar 14, 2007 10:53 am

Hi Kevin,
I rebooted the server last night and this morning I received a bounced email. I thought I would have received a bounced back email immediately, but the server replied with:
-----Original Message-----
From: Mail Delivery Subsystem [mailto:MAILER-DAEMON]
Sent: 13 March 2007 20:49
To: Jason Warren
Subject: Warning: could not send message for past 4 hours

**********************************************
** THIS IS A WARNING MESSAGE ONLY **
** YOU DO NOT NEED TO RESEND YOUR MESSAGE **
**********************************************

The original message was received at Tue, 13 Mar 2007 15:57:38 GMT from localhost.localdomain [127.0.0.1]

----- Transcript of session follows ----- <firstname.lastname@mydomain.com>... Deferred: Connection refused by mydomain.com.
Warning: message still undelivered after 4 hours Will keep trying until message is 5 days old

is this the norm?
Thanks again.
Jason Warren

KevinAnderson

Postby KevinAnderson » Wed Mar 14, 2007 12:31 pm

What do you have in etc/mail/local-host-names?

If the user doesn't exist, it should bounce immediately. Sendmail is TRYING to deliver this message.

Kev.

Jason Warren
Posts: 31
Joined: Wed Nov 09, 2005 12:22 pm
Location: East Retford
Contact:

Postby Jason Warren » Fri Mar 16, 2007 11:31 am

Hi,
sorry for the delay. The file etc/mail/local-host-names contains:
[root@mysvr mail]# cat local-host-names
# local-host-names - include all aliases for your machine here.
[root@mysvr mail]#

Regards
Jason
Jason Warren

KevinAnderson

Postby KevinAnderson » Fri Mar 16, 2007 4:51 pm

OK, so add your domain name to that file and restart sendmail. That way sendmail will know that it's a local address, and it'll bounce the message rather than trying to deliver it somewhere else.

Kev.

Jason Warren
Posts: 31
Joined: Wed Nov 09, 2005 12:22 pm
Location: East Retford
Contact:

Postby Jason Warren » Sat Mar 17, 2007 7:01 am

Kev,
issue resolved..
thanks for your support here.. much appreciated.
Jason Warren


Return to “Scalix Server”



Who is online

Users browsing this forum: Google [Bot] and 15 guests

cron