How Do I Update the Received From <IP Address> in Email Header?

Colt405

New Member
The MailWizz software is installed on a dedicated server with multiple other domains and IPs. The software is using its own dedicated IP address. The issue I am having is that when MailWizz connects to the external SMTP server it is connecting as the 'shared' IP and not the dedicated IP address. Currently the system is using SwiftMailer, is there a way to configure SwiftMailer to use the outgoing dedicated IP address of the MailWizz system for the Received: from ([x.x.x.x]) line?

Thanks for the help.

Code:
Received: from ([x.x.x.x])
        by mail.domain.com (Advanced Mail Server v1.5) with ASMTP id 201705031246019967
        for <recipient@testdomain.com>; Wed, 03 May 2017 12:46:01 -0500
Return-Path: <bounce@sendingdomain.com>
Message-ID: <fa42248e86c441396399b5c92c7ad587@sendingdomain.com>
Date: Wed, 03 May 2017 17:46:10 +0000
Subject: Re: This is the subject
From: From Person <fromperson@sendingdomain.com>
Reply-To: From Person <fromperson@sendingdomain.com>
To: "recipient@testdomain.com" <recipient@testdomain.com>
MIME-Version: 1.0
Content-Type: multipart/alternative;
 boundary="_=_swift_v4_1493833570_7670c37baf412c1d6e89eee152fafc7e_=_"
X-Sender: bounce@sendingdomain.com
X-Report-Abuse: Please report abuse for this campaign here:
 http://track.sendingdomain.com/campaigns/ml11r9de/report-abuse/ts139rf5693sktd33a9
X-Receiver: recipient@testdomain.com
X-Obta-Tracking-Did: 2
X-Obta-Subscriber-Uid: eb893sktd33a9
X-Obta-Mailer: SwiftMailer - 5.4.x
X-Obta-EBS: http://track.sendingdomain.com/lists/block-address
X-Obta-Delivery-Sid: 2
X-Obta-Customer-Uid: za751clqnh8ed
X-Obta-Customer-Gid: 1
X-Obta-Campaign-Uid: ml113d22er9de
Precedence: bulk
List-Unsubscribe: <http://track.sendingdomain.com/lists/ts139jcg9rf56/unsubscribe/eb893skt3a9/ml1d22er9de/unsubscribe-direct?source=email-client-unsubscribe-button>
List-Id: ts139jcg9rf56 <Test List>
Feedback-ID: ml113d22er9de:eb893sktd33a9:ts139jcg9rf56:za751clqnh8ed
 
Not that i am aware of, mailwizz has no idea what ip will be using for outgoing connections, maybe you can use iptables to route the traffic to the desired ip address, but that is tricky too.
 
Agreed, the IPTables would be tricky. I am surprised there is no way to configure the connection to use the dedicated IP address of the MailWizz application. I assume this would have to do with SwiftMailer? Do you recommend working with that mailer?
 
email submission source. not the email sending IP/Hostname, right? Not sure which MTA software you use. but I think you can remove the header from there.

I think if you can re-route your mail traffic after it submitted from mailwizz to localhost then to your MTA? maybe it will work.. something like this maybe?

Received: from (127.0.0.1) by mail59.suw13.mailserver.net id h3bqra2akecc for <xxxxx@gmail.com>; Tue, 16 May 2017 12:49:18 +0000 (envelope-from <bounce-mc.us8_32343198.929533-issmeftah=gmail.com@mail59.suw13.mailserver.net>)
 
@sendizo - not sure how i missed this last year ;) - you are right, i did mean the submission source - the "Received from" - how do update this in the additional headers location in the delivery server so it shows that it is sending from 127.0.0.1 instead of the shared IP on the server?
 
hahahah - it happens - Would you believe that looking into this Received: "Header" very recently. Unfortunately - I was not able to achieve anything.

Received: from (127.0.0.1) by mail179.atl221.rsgsv.net id hcnncq2ddl4o for <iss*******@gmail.com>
mail179.atl221.rsgsv.net this is the host used for EHLO in SMTP communications. 127.0.0.1 the IP which the connection made from.

maybe tunnuling will work? I am suggesting, i dunno how to accomplish that.

I ended up completely remove that header. I m hiding that header from MTA software. I d love to know how to work something out to show MTA IP and host.

Good day sir.
 
Back
Top