Learn about Centmin Mod LEMP Stack today
Register Now

Trying to hide IP on email headers

Discussion in 'Domains, DNS, Email & SSL Certificates' started by elargento, Jul 11, 2020.

  1. elargento

    elargento Member

    348
    17
    18
    Jan 4, 2016
    Ratings:
    +43
    Local Time:
    5:55 AM
    10
    I'm using a 2nd server to send emails from XenForo. However even when I set up a different SMTP host email headers still showing the IP of the server where the forum is installed:
    upload_2020-7-10_16-37-58.png

    91.211.251.20 is the original server IP whereas 5.61.48.126 is the SMTP IP set in XenForo

    Any ideas why IP 91.211.251.20 is displayed?
     
  2. eva2000

    eva2000 Administrator Staff Member

    44,780
    10,212
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,828
    Local Time:
    6:55 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    are you relaying smtp via a 2nd server using exim mail server ? if so you need to configure exim mail server to filter out receiving server's IP (xenforo server) or better yet just setup xenforo to use Amazon SES smtp which automatically removes and hides real server IP.
     
  3. Rake-GH

    Rake-GH Active Member

    138
    67
    28
    Jul 29, 2019
    USA
    Ratings:
    +104
    Local Time:
    4:55 AM
    default
    default
    I didn't know this could happen, I just double checked mine, I use MailCow and it does not send origin web sever IP, thankfully, just the mail server IP
     
  4. elargento

    elargento Member

    348
    17
    18
    Jan 4, 2016
    Ratings:
    +43
    Local Time:
    5:55 AM
    10
    Yes, I'm using Exim.

    I've set Exim to remove headers with
    Code:
    remote_smtp:
    driver = smtp
    headers_remove = Received
    but it didn't work.

    Any ideas how?
     
  5. eva2000

    eva2000 Administrator Staff Member

    44,780
    10,212
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,828
    Local Time:
    6:55 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    Yeah I believe MailCow removes the IP @rdan might be able to confirm ?

    You'd need to ask Exim folks
     
  6. rdan

    rdan Well-Known Member

    4,962
    1,183
    113
    May 25, 2014
    Ratings:
    +1,797
    Local Time:
    4:55 PM
    Mainline
    10.2
    I'm Mail-in-a-Box user :)
    And yes it hide server IP.
     
  7. elargento

    elargento Member

    348
    17
    18
    Jan 4, 2016
    Ratings:
    +43
    Local Time:
    5:55 AM
    10
    It was much easier:
    etc/exim/exim.conf and add headers_remove = Received