Koozali.org: home of the SME Server

Obsolete Releases => SME 8.x Contribs => Topic started by: Bud on September 25, 2013, 02:04:57 PM

Title: Zarafa quick install script
Post by: Bud on September 25, 2013, 02:04:57 PM
Guys hope you can help

I am trying to install Zarafa 7 on a SME8 Server
I have followed the instructions as per the quick iinstall guide: http://wiki.contribs.org/Zarafa_quick_install_script
I have created a folder " zarafainstall " in the sme8 root
I have created a file inside the zarafainstall folder called " install-zarafa7.sh "
I have copied the script inside the " install-zarafa7.sh " file
I have given " 0755 " rights to the " install-zarafa7.sh "file
When i execute the file: " ./install-zarafa7.sh " i get an error:

-bash: ./install-zarafa7.sh: /bin/sh##: bad interpreter: No such file or directory

Any ideas??
Title: Re: Zarafa quick install script
Post by: Jáder on September 26, 2013, 11:34:59 AM
Hi

The quick install script appears to be without breaklines.
It's a formatting error.

RequestedDeletion, can you PASTE the script again between <pre> </pre> tags ?

Jáder
Title: Re: Zarafa quick install script
Post by: Bud on September 30, 2013, 09:27:24 AM
Jader thanks for your support

Any progress on this??  :-)

Title: Re: Zarafa quick install script
Post by: Jáder on September 30, 2013, 11:27:58 AM
Bud,

I got no answer from RequestedDeletion and format the whole script has proved to be huge task.
I'll try to pm him.

Jáder
Title: Re: Zarafa quick install script
Post by: Bud on September 30, 2013, 11:51:57 AM
jader,

thanks for your support.

much appreciated.
Title: Re: Zarafa quick install script
Post by: guest22 on September 30, 2013, 11:52:25 AM
See pastebin: http://pastebin.com/UCF98dj8

Simply save a copy of the script on your server as 'zarafa-install.sh', make it executable (755) and run it.

Made available by frifri, I just put it all in 1 script.

guest
Title: Re: Zarafa quick install script
Post by: Bud on October 01, 2013, 10:04:18 AM
RequestedDeletion and jader thank you for yuor support

i have installed zarafa using the quick installation script however at the end i get the following error:

+++++++++++++++++++++++++++

Starting Zarafa-services

/etc/e-smith/events/actions/zarafa-services: line 4: /etc/rc.d/init.d/zarafa-dagent: No such file or directory
/etc/e-smith/events/actions/zarafa-services: line 5: /etc/rc.d/init.d/zarafa-gateway: No such file or directory
/etc/e-smith/events/actions/zarafa-services: line 6: /etc/rc.d/init.d/zarafa-ical: No such file or directory
/etc/e-smith/events/actions/zarafa-services: line 8: /etc/rc.d/init.d/zarafa-monitor: No such file or directory
/etc/e-smith/events/actions/zarafa-services: line 9: /etc/rc.d/init.d/zarafa-spooler: No such file or directory
/etc/e-smith/events/actions/zarafa-services: line 10: /etc/rc.d/init.d/zarafa-indexer: No such file or directory
/etc/e-smith/events/actions/zarafa-services: line 11: /etc/rc.d/init.d/zarafa-server: No such file or directory

Setting permissions on files


creating Public store

./install-zarafa7.sh: line 1012: /usr/bin/zarafa-admin: No such file or directory

++++++++++++++++++++++++++++++++++++++

any idea what i can do to get this sorted  :-)
Title: Re: Zarafa quick install script
Post by: guest22 on October 01, 2013, 10:10:27 AM
Did you run the script on the same server on top of the previous install attempt?
Title: Re: Zarafa quick install script
Post by: Bud on October 01, 2013, 01:45:02 PM
RequestedDeletion thanks for your quick reply

yes i did and now none of my emails are being delivered to my local users.
my mail log file shows:

2013-10-01 13:40:38.899085500 starting delivery 596: msg 117048621 to local maillog@sme.smeserver.local
2013-10-01 13:40:38.899087500 status: local 1/10 remote 0/20
2013-10-01 13:40:38.899088500 starting delivery 597: msg 117048617 to local user1-user1@mydomain.com
2013-10-01 13:40:38.899089500 status: local 2/10 remote 0/20
2013-10-01 13:40:38.904164500 delivery 597: deferral: /bin/sh:_/usr/bin/zarafa-dagent:_No_such_file_or_directory/
2013-10-01 13:40:38.904166500 status: local 1/10 remote 0/20
2013-10-01 13:40:38.904855500 delivery 596: deferral: /bin/sh:_/usr/bin/zarafa-dagent:_No_such_file_or_directory/

I URGENTLY Need Email to work as per Normal  :shock:

what do i need to do??
Title: Re: Zarafa quick install script
Post by: guest22 on October 01, 2013, 02:04:51 PM
To start off with, _NEVER_ test/try stuff on a production server!! Take the learning curve on a separate test (virtual)server.

Try this for 1 account where [USERNAME] is to be replaced with the real login name.

db accounts setprop [USERNAME] zarafa enabled
/etc/e-smith/events/actions/qmail-update-user

Test this users mail functionality again.
Title: Re: Zarafa quick install script
Post by: guest22 on October 01, 2013, 02:06:57 PM
RequestedDeletion and jader thank you for yuor support

i have installed zarafa using the quick installation script however at the end i get the following error:

+++++++++++++++++++++++++++

Starting Zarafa-services

/etc/e-smith/events/actions/zarafa-services: line 4: /etc/rc.d/init.d/zarafa-dagent: No such file or directory
/etc/e-smith/events/actions/zarafa-services: line 5: /etc/rc.d/init.d/zarafa-gateway: No such file or directory
/etc/e-smith/events/actions/zarafa-services: line 6: /etc/rc.d/init.d/zarafa-ical: No such file or directory
/etc/e-smith/events/actions/zarafa-services: line 8: /etc/rc.d/init.d/zarafa-monitor: No such file or directory
/etc/e-smith/events/actions/zarafa-services: line 9: /etc/rc.d/init.d/zarafa-spooler: No such file or directory
/etc/e-smith/events/actions/zarafa-services: line 10: /etc/rc.d/init.d/zarafa-indexer: No such file or directory
/etc/e-smith/events/actions/zarafa-services: line 11: /etc/rc.d/init.d/zarafa-server: No such file or directory

Setting permissions on files


creating Public store

./install-zarafa7.sh: line 1012: /usr/bin/zarafa-admin: No such file or directory

++++++++++++++++++++++++++++++++++++++

any idea what i can do to get this sorted  :-)

Are you running 32-bit or 64-bit SME Server ? The script is using the 64 bit version of Zarafa. Take a look at the end of the script and find the filename. Replace that filename with the correct version for your server arch.
Title: Re: Zarafa quick install script
Post by: Bud on October 01, 2013, 02:15:48 PM
RequestedDeletion

I am  running a 64 bit version SME Server 8

your remark

Take a look at the end of the script and find the filename. Replace that filename with the correct version for your server arch. " Are you talking about the " install-zarafa7.sh " File ??

My email's I need to get the local users to receive to there locacal mailboxes. What can I do r must i uninstall Zarafa. If so How  :shock:  :shock:
Title: Re: Zarafa quick install script
Post by: guest22 on October 01, 2013, 02:22:04 PM
To start off with, _NEVER_ test/try stuff on a production server!! Take the learning curve on a separate test (virtual)server.

Try this for 1 account where [USERNAME] is to be replaced with the real login name.

db accounts setprop [USERNAME] zarafa enabled
/etc/e-smith/events/actions/qmail-update-user

Test this users mail functionality again.

Sorry my mistake. The correct commands are:

config setprop zarafa-server GlobalForward disabled
/etc/e-smith/events/actions/qmail-update-user
Title: Re: Zarafa quick install script
Post by: guest22 on October 01, 2013, 02:24:47 PM
RequestedDeletion

I am  running a 64 bit version SME Server 8

your remark

Take a look at the end of the script and find the filename. Replace that filename with the correct version for your server arch. " Are you talking about the " install-zarafa7.sh " File ??

My email's I need to get the local users to receive to there locacal mailboxes. What can I do r must i uninstall Zarafa. If so How  :shock:  :shock:

Yes that's script. But no need to change it since you are running 64-bit.

Please see my last post about the correct commands.
Title: Re: Zarafa quick install script
Post by: Bud on October 01, 2013, 02:40:35 PM
RequestedDeletion

Thanks for your quick response

Email Working  :-)

Yes I know about Testing on Production Box etc.

My mistake, I was just in a hurry. I guess we all are

Thanks again, much appreciated  :-D
Title: Re: Zarafa quick install script
Post by: Bud on October 01, 2013, 02:56:38 PM
RequestedDeletion

your answer " Replace that filename with the correct version for your server arch. "

Where do I get this information re: My SME 8 Server

Sorry  :-)
Title: Re: Zarafa quick install script
Post by: guest22 on October 01, 2013, 08:58:16 PM
RequestedDeletion

your answer " Replace that filename with the correct version for your server arch. "

Where do I get this information re: My SME 8 Server

Sorry  :-)

As you mentioned you have SME Server 64-bit installed, so no change is required. To double check, enter 'uname -m' on the console.

Zarafa downloads for many archs and distro's are available here: http://download.zarafa.com/community/final/7.0/
Title: Re: Zarafa quick install script
Post by: stephdl on October 01, 2013, 10:11:58 PM
See pastebin: http://pastebin.com/UCF98dj8

Simply save a copy of the script on your server as 'zarafa-install.sh', make it executable (755) and run it.

Made available by frifri, I just put it all in 1 script.

guest
Thanks laylow for the script
Title: Re: Zarafa quick install script
Post by: Bud on October 02, 2013, 03:40:16 PM
RequestedDeletion

thank you for your help

the output i get from " uname -m " = i686

so it is 64bit

thanks again
Title: Re: Zarafa quick install script
Post by: guest22 on October 02, 2013, 06:06:28 PM
the output i get from " uname -m " = i686

so it is 64bit

Nope. It's 32-bit. Check with the command 'getconf LONG_BIT' and it will return '32'. So you will need to adjust the versions in the script.