Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

To manipulate message-id in postfix

Posted on 2014-12-09
3
Medium Priority
?
195 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
  • 2
3 Comments
 
LVL 12

Assisted Solution

by:Sommerblink
Sommerblink earned 600 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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

The main intent of this article is to make you aware of ‘Exchange fail to mount’ error, its effects, causes, and solution.
Stellar Exchange Toolkit: this 5 in 1 toolkit comes loaded with mega-software tool. Here’s an introduction to tools’ usage and advantages:
In this video we show how to create an Accepted Domain 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 Mail Flow >> Ac…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
Suggested Courses

877 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