Learn about Centmin Mod LEMP Stack today
Become a Member

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:
    2:34 PM
    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

    45,192
    10,277
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,927
    Local Time:
    3:34 AM
    Nginx 1.19.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

    146
    70
    28
    Jul 29, 2019
    USA
    Ratings:
    +108
    Local Time:
    1:34 PM
    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:
    2:34 PM
    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

    45,192
    10,277
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,927
    Local Time:
    3:34 AM
    Nginx 1.19.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,983
    1,185
    113
    May 25, 2014
    Ratings:
    +1,804
    Local Time:
    1:34 AM
    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:
    2:34 PM
    10
    It was much easier:
    etc/exim/exim.conf and add headers_remove = Received