Created
November 7, 2012 12:35
-
-
Save Alir3z4/4031365 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Note | |
# mounting vmail | |
mount.s3ql --allow-other s3://archi-vmail /home/vmail/ | |
# Chown to vmail:vmail | |
chown -R vmail:vmail /home/vmail/ | |
# bring the ubuntu up ;) | |
passwd | |
adduser alireza | |
apt-get update | |
apt-get upgrade --show-upgraded | |
su alireza | |
mv /home/alireza/id_rsa.pub /home/alireza/.ssh/authorized_keys | |
mkdir /home/alireza/.ssh | |
chown -R alireza:alireza /home/alireza/.ssh | |
chmod 700 /home/alireza/.ssh | |
chmod 600 /home/alireza/.ssh/authorized_keys | |
## | |
######################################################################### | |
# post-install wmail.binmadigroup.org | |
## BEGIN TO CHANGING ZIMBRA SSH PORT | |
su zimbra | |
# Change hostname | |
# /opt/zimbra/libexec/zmsetservername -n wmail.binmadigroup.org | |
# Change default domain | |
# zmprov mcf zimbraDefaultDomainName wmail.binmadigroup.org | |
# Change zimbra ssh port to 4587 | |
zmprov ms wmail.binmadigroup.org zimbraRemoteManagementPort 4587 | |
# Generate new ssh keys | |
/opt/zimbra/bin/zmsshkeygen | |
# Deploy the keys | |
/opt/zimbra/bin/zmupdateauthkeys | |
## END OF CHANGING ZIMBRA SSH PORT | |
# changin the time zone | |
zmprov mc default zimbraPrefTimeZoneId '(GMT+04.00) Abu Dhabi / Muscat' | |
######################################################################### | |
zmprov createAliasDomain binmadigroup.org wmail.binmadigroup.org | |
zmprov ca [email protected] 123456 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment