Solved

To manipulate message-id in postfix

Posted on 2014-12-09
3
151 Views
Last Modified: 2015-04-20
Hi,

I have my postfix installed on CentOS7.

Java App ---> Postfix Gateway --> Internet ---> Relay Host --> Client

But messages are failing and I need to tweak the message ID.

From:

Dec  9 17:18:52 gateway1 postfix/cleanup[30261]: AD80082F2A05: message-id=<1494044579.165.1418122141370.JavaMail.root@myserver01-web01>

To:


Dec  9 17:18:52 gateway1 postfix/cleanup[30261]: AD80082F2A05: message-id=<1494044579.165.1418122141370.JavaMail.root@mydomain.tld>


Help, Please.

Will
0
Comment
Question by:williamwlk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 12

Assisted Solution

by:Sommerblink
Sommerblink earned 150 total points
ID: 40489831
Hello Will,

I am not a programmer, but the Message-ID header is set by the MTA, not the server... in your case, looks like JavaMail.

A quick google search of javamail and message-id did lead to this: http://www.oracle.com/technetwork/java/faq-135477.html#msgid

Does this make sense to you?
0
 

Accepted Solution

by:
williamwlk earned 0 total points
ID: 40725413
#cat /etc/postfix/header_checks
/Message-ID:\s+<(.*?)@myserver01-web01>/ REPLACE Message-ID: <$1@mydomain.tld>

Hi Sommerblink,

While it is originally set up by the MTA, we can manipulate it this way, I have found.

Cheers.
Will
0
 

Author Closing Comment

by:williamwlk
ID: 40733038
Own finding.
0

Featured Post

What Is Blockchain Technology?

Blockchain is a technology that underpins the success of Bitcoin and other digital currencies, but it has uses far beyond finance. Learn how blockchain works and why it is proving disruptive to other areas of IT.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Email signatures have numerous marketing benefits. Here are 8 top reasons to turn your email signature into a marketing channel.
Easy CSR creation in Exchange 2007,2010 and 2013
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question