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.

[Case 115477] /etc/mailips not working

Discussion in 'E-mail Discussions' 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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page