Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-16-2010, 10:04 AM
Senior Member
 
Posts: 72
Default Securing Ubuntu Server running Zimbra

I'm wanting to change port 22 to something else. I came across these steps to secure Ubuntu. Would this break Zimbra?

Code:
* Create Key Pair

	- run: ssh-keygen

	- passphrase: WHATEVERYOUWANTHERE

	- run: cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys

	- run: rm ~/.ssh/id_rsa.pub

	
* Move Key to Local Machine


* Configure SSHD on Server

	- run: sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.factory-defaults

	- run: sudo chmod a-w /etc/ssh/sshd_config.factory-defaults

	- run: sudo vi /etc/ssh/sshd_config

		****MAKE THESE CHANGES****

			Port 22 ---> Port ****

			PermitRootLogin yes ---> PermitRootLogin no

			#PasswordAuthentication yes ---> PasswordAuthentication no

			#Banner /etc/issue.net ---> Banner /etc/issue.net

			UsePAM yes ---> UsePAM no

			***Add To Bottom***

			AllowUsers YOURUSER

	
	- run: sudo /etc/init.d/ssh restart
__________________
Version 7.1.2_GA_3268.NETWORK
Reply With Quote
  #2 (permalink)  
Old 02-17-2010, 03:59 AM
Intermediate Member
 
Posts: 18
Default

Not as far you don't reserve ports used by zimbra for ssh.
Reply With Quote
  #3 (permalink)  
Old 02-17-2010, 04:06 AM
Outstanding Member
 
Posts: 594
Default

Offcourse Yes you will face problems. Read Mail Queue Monitoring - Zimbra :: Wiki

Need to change zimbraRemoteManagementPort port from 22 to what ever you are changing to.
Reply With Quote
  #4 (permalink)  
Old 02-17-2010, 04:14 AM
Special Member
 
Posts: 113
Default

Zimbra use SSH for Mail Queue Monitoring [1]. Therefore you can't change the port from 22 to whatever, except you change the port in the scripts for Mail Queue Monitoring. Furthermore you need to add zimbra to the AllowUsers directive.

[1] Mail Queue Monitoring - Zimbra :: Wiki
Reply With Quote
  #5 (permalink)  
Old 02-17-2010, 04:40 AM
Outstanding Member
 
Posts: 594
Default

Why do you need to change port in script ? wiki Mail Queue Monitoring - Zimbra :: Wiki clearly says :-

" If you're not running sshd on port 22, modify the zimbraRemoteManagementPort attribute on the server:

zmprov ms MAIL.DOMAIN.COM zimbraRemoteManagementPort 2222"\
Reply With Quote
  #6 (permalink)  
Old 02-17-2010, 06:53 AM
Special Member
 
Posts: 113
Default

Sorry, I haven't read the whole site. It was just a idea.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.