Jump to content

Rockman-Industries/Server-Implementation

From TetraWiki
Revision as of 14:02, 18 October 2013 by Biswajit (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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