Step 1 - Open the Gmail app
Open the Gmail app on your iPhone device.

Step 2 - Click on your profile icon in the upper right corner
If you haven't signed in with an account yet, click Sign in when opening the app and continue on step 4.

Step 3 - Click Add another account
Click Add another account to start the setup.

Step 4 - Click Other (IMAP)
Select Other (IMAP) as the account you want to set up.

Step 5 - Enter your email address
Type in the email address you want to set up, and click Next.

Step 6 - Type in your password and mail.yourdomainname.com for IMAP server
Type in your email password, mail.yourdomainname.com as the incoming server. NB: Replace yourdomainname.com with your own domain name.
and Click Next

Step 7 - Type in mail.yourdomainname.com for SMTP server
Type in mail.yourdomainname.com as the outgoing server. NB: Replace yourdomainname.com with your own domain name.
and click Next.

Step 8 - Type in your name
Type in your name. The name you type in will show on sent emails.

Step 9 - Done!
Your account is now set up and ready to go!