Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


How hide IPv4 in mail header
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

How hide IPv4 in mail header

sonicsonic Veteran

Hi,
My wordpress blog use Mandrill to send mail to users.
My VPS supports both IPv4 and native IPv6.

When show original mail, it dislays IPv4 in mail header.
Now i want to dislay IPv6, not IPv6. How do i config to work as I want.

Example mail header:

Received: from [194.198.x.x] by mandrillapp.com id 711558010de87840dad7; Tue, 03 Jun 2014 10:28:41 +0000
X-Report-Abuse: Please forward a copy of this message, including all headers, to [email protected]
X-Report-Abuse: You can also report abuse here: http://mandrillapp.com/contact/abuse?id=30151626.71158067840dad7
X-Mandrill-User: md_30151626
Date: Tue, 03 Jun 2014 10:28:41 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit

Comments

  • Configure your mailserver to only use IPv6 ? There are lots of recipient servers that don't support IPv6 yet, so you'd effectively be cutting your audience down.

  • wychwych Member

    Use a 3rd party SMTP?

  • WilliamWilliam Member
    edited June 2014
    smtpd_sasl_authenticated_header = yes
    
    header_checks = regexp:/etc/postfix/header_checks
    
    
    /^Received:.*with\ HTTP/     IGNORE
    
    /^Received: .*\(Authenticated sender:.*/ IGNORE
    
    /^Received: by .*from userid [0-9]+\)/ IGNORE
    
    Thanked by 1Neoon
  • NeoonNeoon Community Contributor, Veteran
    edited June 2014

    @William just awesome :D

  • AlexanderMAlexanderM Member, Top Host, Host Rep

    use IPv6 ;)

  • sharuusharuu Member

    AFAIK, Mandrillapp doesn't support IPV6 yet.

  • Amazon SES hides the origin of email (IP address, that is).

    Also, if you can set up your own SMTP server for outgoing email, it's trivial to remove headers in question prior to email is actually sent.

  • The headers in question (Received) are added by the recipient server when the message arrives...so there is nothing you can do to hide them on your sending server. The only option would be to have a relay in the middle that wouldn't add your address, so the only Received header would be the relay's. Mr @Master_Bo says Amazon SES seems to act that way. Or you could always get a cheap VPS just for relaying and set it up yourself.

  • sonicsonic Veteran

    i have vps with ramnode and configure nginx webserver listen on ipv6. And, mail header shows ipv6, not ipv4.

    I dont know how to do with other providers who also support native ipv6.

  • sonicsonic Veteran

    @William said:

    > smtpd_sasl_authenticated_header = yes
    > 
    > header_checks = regexp:/etc/postfix/header_checks
    > 
    > 
    > /^Received:.*with\ HTTP/     IGNORE
    > 
    > /^Received: .*\(Authenticated sender:.*/ IGNORE
    > 
    > /^Received: by .*from userid [0-9]+\)/ IGNORE
    > 

    I dint understand what this means :(

  • Thats Postfix config. You'll likely not have a postfix setup.

  • sonicsonic Veteran
    edited June 2014

    @William said:
    Thats Postfix config. You'll likely not have a postfix setup.

    so put this to postfix config file then ipv4 be hided? or ipv6 be shown instead of ipv4?

    sorry i'm noob, i'm using tuxlite script

  • sharuusharuu Member
    edited June 2014

    If you send mail from your smtp, IPv6 will be shown.

    I sent mail using postfix and receiving end(gmail) had IPv6. When I used Mandrill API, receiving end(gmail) had IPv4 in sender IP.

    These are the headers
    Received: from *********.mandrillapp.com (*********.mandrillapp.com. [MANDRILL_IPv4])
    Received: from [MY_IP_V4] by mandrillapp.com.

    The second header is added by Mandrillapp.

Sign In or Register to comment.