Skip to main content

EXIM Outgoing IPs Per Account?

Comments

4 comments

  • 24x7server
    Hi, You need to enable /etc/mailip in the exim configuration first, so the exim will look for this first before processing the mail. Secondly you need to add domain: IP address, so domain will from that IP only.
    0
  • Rogerio
    Ok, so, for my case, Send mail from the account"s IP address won't work? Using /etc/mailip and /etc/mailhelo works fine. And for SMTP banner? Any way to show the rDNS instead of server's hostname?
    0
  • Rogerio
    Ah, I found a solution, editing using Exim Advanced Editor: 1) click "Add additional configuration setting" 2) insert "smtp_active_hostname" 3) value "${if exists {/etc/mail_ptr}{${lookup{$interface_address}lsearch{/etc/mail_ptr} {$value}{$primary_hostname}}}{$primary_hostname}}" 4) edit "smtp_banner" 5) in the beginning, change "${primary_hostname}" to "${smtp_active_hostname}" Then... 6) create file /etc/mail_ptr like: 1.1.1.1: first.mydomain.com 2.2.2.2: second.mydomain.com Done. When I "telnet 2.2.2.2 587" I can see: 220-second.mydomain.com ESMTP Exim 4.91 #1 Thu, 20 Sep 2018 13:34:32 -0300 220- We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail. POP/IMAP don't have hostname banners. My mistake in the first message.
    0
  • cPanelMichael
    Hello @Rogerio, I'm happy to see you were able to solve the issue. Thank you for sharing the outcome.
    0

Please sign in to leave a comment.