Posts

Pop-before-smtp configuration with Postfix: (Mobile-Notebook)

At first install the following packages. Step 1: apt-get install libtimedate-perl libnet-netmask-perl libberkeleydb-perl   Step 2: apt-get install pop-before-smtp   Step 3: vim /etc/pop-before-smtp/pop-before-smtp.conf ( unhash the following lines) $logto = '/var/log/pop-before-smtp'; $dbfile = '/var/lib/pop-before-smtp/hosts'; and the 4 lines portion of the following for Dovecot POP3/IMAP when using syslog. (Unhash the following four lines) $pat = '^[LOGTIME] \S+ (?:dovecot: )?(?:imap|pop3)-login: ' .    'Login: .*? (?:\[|rip=)[:f]*(\d+\.\d+\.\d+\.\d+)[],]'; $out_pat = '^[LOGTIME] \S+ (?:dovecot: )?(?:imap|pop3)-login: ' .    'Disconnected.*? (?:\[|rip=)[:f]*(\d+\.\d+\.\d+\.\d+)[],]'; Step 4: Now integrate with postfix. vim /etc/postfix/main.cf hash:/var/lib/pop-before-smtp/hosts (add this line with my networks) Step 5: restart pop-before-smtp   restart postfix       Checking log: t...

Migration: Step by Step Zimbra to Carbonio ( imapsync )

  Step:1 Create a directory under both servers: mkdir -p /backups/zmigrate   Change the ownership: chown -R zimbra.zimbra /backups/zmigrate   Step: 2 From Old Server Execute the below commands using Zimbra user: to take a backup of all required data:   cd /backups/zmigrate   i) Find all domain names: zmprov gad > domains.txt   ii) Find all admin accounts: zmprov gaaa > admins.txt   iii) Find all email accounts: zmprov -l gaa > emails.txt   iv) Get all distribution lists: zmprov gadl > /backups/zmigrate/distributionlist.txt   v) Get all members in the distribution lists : mkdir /backups/zmigrate/distributionlist_members   for i in `cat /backups/zmigrate/distributionlist.txt`; do zmprov gdlm $i > /backups/zmigrate/distributionlist_members/$i.txt ;echo "$i"; done   vi) Find all email accounts’ passwords: mkdir userpass   for i in `cat emails.txt`; do zmpro...

Migration: Step by Step Zimbra to Carbonio (LDAP)

 1.    Prerequisite: preparing server      i) Log into the admin panel and change below settings            a) Protocol change to                     Public Service Protocol https (secure) and                     Public Service Port 443           b) Time zone select to Dhaka           c) Default Class of Service default ii)             Change Attachment and Message size to 0 (unlimited) on larger to Carbonio (New) Server.   Alternatively, you may set the attachment size to 100 MB.   zmprov mcf zimbraFileUploadMaxSize     100000000 zmprov mcf zimbraImapMaxRequestSize 100000000 zmprov mcf zimbraMailContentMaxSize 100000000 zmprov mcf zimbraMta...

How to set up Office 365 with a custom email address

Login: https://admin.microsoft.com/ 1. Setup info Microsoft ID xxx-xxxx-xxxx-xxxx-37f4b0239d48 Admin user account - admin@xyz.onmicrosoft.com Password--  ::RQQ-l.3   2. reset in first login %Ttmc@b0l321#     3. setup> setting up your domain >    a)Domain Name:  Does your organization have a domain? > Yes, Add this domain:   b) Domain Verification: How do you want to verify your domain? > Select, TXT record   c) Verify you own this domain with TXT Value:  Example:              [  TXT name: ‎ @ ‎                                    TXT value: MS=ms76785456                                    TTL: ‎ 3600 ]   You have to put TXT V...

How To Install a PHP Version in WHM ?

To install a PHP version in WHM, you may follow these steps: Step: 1  Log into WHM as the root user. Step: 2 Navigate to EasyApache 4. Click " Customize " under " Currently Installed Packages ." Click " PHP Versions ." Mark the version for installation by clicking the switch icon to the far right of the version. Step: 3 When prompted, click the option to only install the " PHP version " or the " PHP version and extensions ". Step: 4 Click " Review " and review the output to ensure the PHP version you marked for installation will be installed. Step: 5 Click " Provision ," which will install the selected PHP versions . You may find our documentation on How to locate and install a PHP version or extension here for more information. Return Mani Menu

How to change PHP version for a domain in WHM/cPanel?

i) WHM: Step:1 Log in to WHM  Under Software , Click EasyApache 4 go to, Currently Installed Packages >  Customized > PHP Version Select the Version to add the list. Step:2 Under Software, click MultiPHP Manager Select "User Domain Setting" Make a note of your current version! Step:3 Select an updated version of PHP and click Apply Visit your site to confirm that the change has not broken your site. If the site is broken, you can switch back to the previous PHP version ii) cPanel: Step:1 Log into cPanel Under Software click MultiPHP Manager Make a note of your current version! Step: 2 Select an updated version of PHP and click Apply Visit your site to confirm that the change has not broken your site. If the site is broken, you can switch back to the previous PHP version Return Mani Menu

How to Install the WHM/cPanel on AlmaLinux 9.5

 Follow the Steps given below for Installation: Step 1: Execute the subsequent command: yum update yum upgrade Step 2: Set up Curl and Perl. yum install perl curl Step 3: Download the Installation Script for WHM cPanel.  To install cPanel & WHM on your server, run the following command: cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest   Step 4: Open WHM and Log in. Type “ https://Server_IP:2087 ” into the address bar of your browser to access the WHM. Enter the AlmaLinux root user and password. Step 5: Apply for a Trial License for WHM/cPanel. Click the login button to sign up for a WHM service account. Include the email address and hosting service naming server details when the 15-day free trial has ended. Step 6: Dashboard WHM Make a cPanel account on the website to begin hosting it.  go to, List Accounts > Create a New Account Login to " https://Server_IP:2083 " and log in with the created account....

Data Migration (Zimbra to Carbonio):

Backup email addresses, credentials and their data (Without their mailbox): (OLD Server)   Step:1 Create a directory for backup data root@mail:~# mkdir -p /opt/backups/zmigrate/mailbox   Step:2 Set permission of that directory root@mail:~# chown zimbra.zimbra /opt/backups/zmigrate   Step:3 Go to the directory and login to zimbra root@mail:~# cd /opt/backups/zmigrate root@mail:/opt/backups/zmigrate# su zimbra   Step:4 Execute below commands sequentially to get domains, email addresses, distribution list   zimbra@mail:/opt/backups/zmigrate$ zmprov -l gaa > emails.txt     Step:5 : Backup user mailbox   for email in `cat /opt/backups/emails.txt`; do zmmailbox -z -m $email getRestURL '/?fmt=tgz' > $email.tgz ; echo $email ; done   Step 6:   Transfer data from old zimbra server to new server carbonio: rsync -avp -e 'ssh -p 22' rooTmin@192.168.50.50:/opt/backups/zmigrate/ /opt/backups/zmigrate/...