Jump to content

Rockman-Industries/Server-Implementation: Difference between revisions

From TetraWiki
Amit (talk | contribs)
Created page with " == Rockman Server Implementation == '''Client Requirement''' 1: Need to Migrate Users from Lotus to Zimbra (For cost cutting). '''What We Proposed Them''' Zimbramail.ro..."
 
Line 34: Line 34:
'''Script to create Users'''
'''Script to create Users'''


#!/bin/bash
#!/bin/bash
for i in `cat user_list`
for i in `cat user_list`
do
do
zmprov ca $i asd1234f
zmprov ca $i asd1234f
echo "The User is created with the default password asd1234f"
echo "The User is created with the default password asd1234f"
done;
done;


user_list file having the all users to be create.
user_list file having the all users to be create.
Line 45: Line 45:
'''Script to transfer the mails of non zimbra user'''
'''Script to transfer the mails of non zimbra user'''


#!/bin/bash
#!/bin/bash
for i in `cat user12sep`
for i in `cat user12sep`
do
do
zmprov ma $i zimbraMailTransport smtp:cluster4out.us.messagelabs.com:25
zmprov ma $i zimbraMailTransport smtp:cluster4out.us.messagelabs.com:25
echo "The Mail box of the User is now changed and it ready to transfer the mail to lotus. :)"
echo "The Mail box of the User is now changed and it ready to transfer the mail to lotus. :)"
done
done


user12sep having the list of all the user pointed to lotus.
user12sep having the list of all the user pointed to lotus.
Line 56: Line 56:
'''Script to check the Mail transport'''
'''Script to check the Mail transport'''


#!/bin/bash
#!/bin/bash
for i in `cat smtp_user_list`
for i in `cat smtp_user_list`
do
do
echo $i;
echo $i;
su - zimbra -c "zmprov ga $i | grep zimbraMailTransport"
su - zimbra -c "zmprov ga $i | grep zimbraMailTransport"
echo " Next user Is:"
echo " Next user Is:"
done;
done;


smtp_user_list is the list of the existing users.  
smtp_user_list is the list of the existing users.  


'''Note: All the Users must lie in zimbra '''
'''Note: All the Users must lie in zimbra '''

Revision as of 13:56, 18 October 2013

Rockman Server Implementation

Client Requirement

1: Need to Migrate Users from Lotus to Zimbra (For cost cutting).

What We Proposed Them

Zimbramail.rockmanindustries.com (Zimbra Server) the Primary MX for the mails.
 Incoming Mail Flow
                                           Zimbramail.rockmanindustries.com
                                                          ||
                                                          ||
                              Find the User if the user is of zimbra then send mail locally
                                                          ||
                                                          ||
                      The User to lie on lotus the zimbra will transfer the mails to lotus to respective user
Outgoing Mail Flow
Both The server send the mails independently. 


Implementation

Zimbra 8 on Centos 6.4 64bit

Spamassassin Tunning

Script to create Users

#!/bin/bash
for i in `cat user_list`
do
zmprov ca $i asd1234f
echo "The User is created with the default password asd1234f"
done;

user_list file having the all users to be create.

Script to transfer the mails of non zimbra user

#!/bin/bash
for i in `cat user12sep`
do
zmprov ma $i zimbraMailTransport smtp:cluster4out.us.messagelabs.com:25
echo "The Mail box of the User is now changed and it ready to transfer the mail to lotus. :)"
done

user12sep having the list of all the user pointed to lotus.

Script to check the Mail transport

#!/bin/bash
for i in `cat smtp_user_list`
do
echo $i;
su - zimbra -c "zmprov ga $i | grep zimbraMailTransport"
echo " Next user Is:"
done;

smtp_user_list is the list of the existing users.

Note: All the Users must lie in zimbra