• DevOps
    Case Study

    How we built a resilient multi-account, multi-cloud solution for a Health Tech service provider!

    READ CASESTUDY
    icon

    24/7 DevOps as a Service

    Round-the-clock DevOps for uninterrupted efficiency.

    icon

    Infrastructure as a Code

    Crafting infrastructure with ingenious code.

    icon

    CI/CD Pipeline

    Automated CI/CD pipeline for seamless deployments.

    icon

    DevSecOps

    Integrated security in continuous DevOps practices.

    icon

    Hire DevOps Engineers

    Level up your team with DevOps visionaries.

    icon

    Consulting Services

    Navigate success with expert DevOps consulting.

  • TechOps
    Case Study

    How we built a scalable Odoo solution for a Travel Tech service provider!

    READ CASESTUDY

    WEB HOSTING SUPPORT

    icon

    HelpDesk Support

    Highly skilled 24/7 HelpDesk Support

    icon

    Product Support

    Boost your product support with our expertise.

    MANAGED SERVICES

    icon

    Server Management

    Don’t let server issues slow you down. Let us manage them for you.

    icon

    Server Monitoring

    Safeguard your server health with our comprehensive monitoring solutions.

    STAFF AUGMENTATION

    icon

    Hire an Admin

    Transform your business operations with our expert administrative support.

    icon

    Hire a Team

    Augment your workforce with highly skilled professionals from our diverse talent pool.

  • CloudOps
    Case Study

    How we helped a Private Deemed University in India, save US $3500/m on hosting charges!

    READ CASESTUDY
    icon

    AWS Well Architected Review

    Round-the-clock for uninterrupted efficiency

    icon

    Optimize

    Efficient CloudOps mastery for seamless cloud management

    icon

    Manage

    Automated CI/CD pipeline for seamless deployments

    icon

    Migrate

    Upgrade the journey, Migrate & Modernize seamlessly

    icon

    Modernize

    Simplify compliance complexities with our dedicated services

    icon

    FinOps as a Service

    FinOps as a Service

  • SecOps
    Case Study

    How we built a scalable Odoo solution for TravelTech service provider!

    READ CASESTUDY
    icon

    VAPT

    Vulnerability Assessment and Penetration Testing

    icon

    Source Code Review

    Ensuring source code security ans safe practices to reduce risks

    icon

    Security Consultation

    On demand services for improving server security

    icon

    System Hardening

    Reduced vulnerability and proactive protection

    icon

    Managed SoC

    Monitors and maintains system security. Quick response on incidents.

    icon

    Compliance as a Service

    Regulatory compliance, reduced risk

  • Insights
    Case Study

    How we helped a Private Deemed University in India, save US $3,500/m on hosting charges!

    READ CASESTUDY
    icon

    Blog

    Explore our latest articles and insights

    icon

    Case Studies

    Read about our client success stories

    icon

    Flipbook

    Explore our latest Flipbook

    icon

    Events

    Join us at upcoming events and conferences

    icon

    Webinars

    Watch our educational webinar series

  • Our Story
  • Contact Us

Interested to collaborate?

Get in touch with us!

Ready to elevate your business with certified cloud expertise? Contact us today to learn how our team can help you leverage cloud technology to drive growth, streamline operations, and enhance security.

  • AWSAWS
  • Azure CloudAzure Cloud
  • Google CloudGoogle Cloud
  • Akamai CloudAkamai Cloud
  • OVHOVH
  • Digital OceanDigital Ocean
  • HetznerHetzner
  • Kubernetes Consultancy Services
  • K8s & Cloud native Solutions
  • 24/7 Infrastructure Monitoring
  • DevOps as a Service
  • Cloud CI/CD Solutions
  • White Labeled MSP Support
  • Our story
  • Life@SupportSages
  • Insights
  • Careers
  • Events
  • Contact Us

Connect with us!


LinkedInFacebookXInstagramYouTube

aws partneraws advanced partner
SupportSages

Copyright © 2008 – 2026 SupportSages Pvt Ltd. All Rights Reserved.
Privacy PolicyLegal TermsData ProtectionCookie Policy
cPanel: How to send mails through domain IP

cPanel: How to send mails through domain IP

George K.

  • 3 min read
cPanel: How to send mails through domain IP

Generating audio, please wait...

By default, Exim will send mail from the server’s main shared IP address. Which means that all clients on one server are sending out email through one IP? Sometimes you need to change mail server IP, Let us see how to do this,

In order to specify which IP address should handle outbound mail, you will need to disable an option in WHM’s Exim Configuration Editor . To begin, navigate to the configuration editor and disable the following option:

WHM -> Service Configuration – >  Exim Configuration Editor

Automatically send outgoing mail from the account’s IP address instead of the main IP address

Enabling this option forces your users to send mail from their main domain’s IP address. If you choose to enable the option mentioned above, you will not be able to manually specify the IP addresses from which the domains send mail. 

In order to change mail server IP addresses, you will need to create and edit 2 files from the command line. The files are:

/etc/mailhelo —  Exim’s HELO command’s configuration file.

/etc/mailips — The file that specifies from which IP addresses mail should be sent.

Editing /etc/mailhelo

EXIM uses the HELO command to initiate dialogue between a mail server and a client. This file governs which domain should send the HELO command. Once you have created and opened the file for edit, you will need to configure it in the following way:

domain1.com: domain1.com
domain2.com: domain2.com
*: server1.mynetworks.com

Note: In the example above, the asterisk (*) entry will be used to direct outbound mail for domains without entries within this file. The domain in this context should be your server’s hostname. Be sure to use only valid domain names that are publicly accessible via the Internet. 

Editing /etc/mailips

This file controls the IP address  from which each domain should send mail. You will, as in the example above, need to create and open the /etc/mailips file for editing using your preferred text editor. You will need to configure this file in the following format. Please note that the values given here are dummy ones and you need to replace them with the actual ones

domain1.com : 192.168.1.1
domain2.com : 192.168.1.12
* : 192.168.1.24

Note: In the example above, the asterisk (*) entry will be used to direct outbound mail for domains without entries within this file. The domain in this context should be your server’s hostname. Be sure to use only valid domain names that are publicly accessible via the Internet. 

Restart the mail server

How to check it ?

Once the mail server is up, create a test email id on the domain and send a mail to the testing gmail id. Once the mail reaches the inbox, check the header and confirm that the IP is changed to the changed one.

mail1

  • cPanel
  • Howtos
  • Troubleshooting

.htaccess based mod_rewrite not working with Godaddy ?

.htaccess based mod_rewrite not working with Godaddy ?
  • Apache
  • General
  • Howtos
  • Linux
logo

/proc explained

/proc explained
  • Linux
logo

A story of Ubuntu – I am what I am because of who we all are :)

A story of Ubuntu – I am what I am because of who we all are :)
  • General
  • Training
logo

Account Creation: Sorry, a mysql user with the name x already exists.

Account Creation:  Sorry, a mysql user with the name x already exists.
  • MySQL
  • Troubleshooting
logo

Posts by George K.

George started his career in web hosting and Linux technical support in the year 2004 and is with SupportSages since 2009. He has keen interest in server optimizations, custom security solutions, hacked server recovery, cyber forensic and high availability fail over system design and implementation. George loves long drives and is passionate about art and literature.