Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

[Case 115477] /etc/mailips not working

Discussion in 'E-mail Discussion' started by username123, Nov 5, 2014.

  1. username123

    username123 Registered

    Joined:
    Nov 5, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello.
    I set
    Send mail from account’s dedicated IP address - off
    Reference /etc/mailhelo for outgoing SMTP HELO - on
    Reference /etc/mailips for outgoing SMTP connections - on

    /etc/mailhelo
    domain.com: mail.domain.com
    *: smtp.anotherdomain.com

    /etc/mailips
    domain.com: xx.xx.xx.xx
    *: yy.yy.yy.yy

    But all emails sent from yy.yy.yy.yy, even for domain.com
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,444
    Likes Received:
    1,962
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    Internal case number 115477 is open to address an issue where the IP address referenced in /etc/mailips for a domain name is not utilized. There is currently no specific time frame available on when a resolution will be published.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. username123

    username123 Registered

    Joined:
    Nov 5, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    In the exim config i see:
    interface = ${if exists {/etc/mailips}{${lookup{$original_domain}lsearch*{/etc/mailips}{$value}{${lookup{$sender_address_domain}lsearch*{/etc/mailips}{$value}{${lookup{${perl{get_sender_from_uid}}}lsearch*{/etc/mailips}{$value}{}}}}}}}}

    But when I debug what exim does, i see that $original_domain is destination domain, not the local domain.
    For example I send mail from me@sender.com to me@receiver.com and in the log files i see that $original_domain is receiver.com so indeed exim doesn't find it in mailips.
    $sender_address_domain is empty.

    Is it right ?
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,444
    Likes Received:
    1,962
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Just to clarify, when you state that email is still coming from the main IP address, are you basing that on the log entry from Exim? Or, what other information are you making that determination from?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice