The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Bind machine instead of ip address

Discussion in 'E-mail Discussions' started by Osama Tariq, Jan 23, 2017.

  1. Osama Tariq

    Osama Tariq Well-Known Member

    Joined:
    Nov 27, 2014
    Messages:
    205
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Lahore, Pakistan
    cPanel Access Level:
    Root Administrator
    Twitter:
    How to Configure Exim to receive/sending email for domain only from specific machine ?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,287
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you provide some more information about this configuration, or provide us with an example?

    Thanks!
     
  3. NOC_Serverpoint

    NOC_Serverpoint Well-Known Member

    Joined:
    Jul 3, 2016
    Messages:
    102
    Likes Received:
    6
    Trophy Points:
    18
    cPanel Access Level:
    Website Owner
    Hi,.

    I suppose you need to Configure Exim to receive email for domain only from specific IP addresses.

    For this You need to create a file :
    /etc/filterdomains
    Contain the list of domains we want to filter, and have set up the special MX records for. It is just a list of domain names (one per line)

    eg:
    Domain1.com
    domain2.com ect...

    The second file we will call /etc/filterrelays – this will contain a line separated list of the safe relay IP addresses – which might look like this:

    198.18.42.5
    198.9.2.2

    Now need to add this to "exim.conf" .Using WHM, then just use the advanced Exim Configuration editor to make the changes. Please make sure to take backup of /etc/exim* files first.

    Add the following to the top of the exim.conf file

    ----
    hostlist filter_relays = net-lsearch;/etc/filterrelays : net-lsearch;/etc/relayhosts
    domainlist filter_domains = lsearch;/etc/filterdomains
    ----

    Under "check_recipient" .There should be a line : "accept hosts = :"

    Following this line add :
    --
    deny
    !hosts = +filter_relays
    domains = +filter_domains
    message = use the correct domain MX record
    --

    Now restart exim:
    /scripts/restartsrv_exim

    Thanks,
     
  4. Osama Tariq

    Osama Tariq Well-Known Member

    Joined:
    Nov 27, 2014
    Messages:
    205
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Lahore, Pakistan
    cPanel Access Level:
    Root Administrator
    Twitter:
    I need to bind my exim server to my client machine running microsoft outlook. Except that machine no one can login to email account and send/receive email through it. Exim server only listen from that client machine. Is it any way to bind machine instead of ip address ?
    For example: it looks like the same concept used in mac binding in which specific ip is reserved for specific machine.
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,287
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I don't believe that's supported. Is there any reason you can't use the IP address of the device?

    Thank you.
     
Loading...

Share This Page