Solved

To manipulate message-id in postfix

Posted on 2014-12-09
3
101 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 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Nearly six years ago I was hired by a company to be their senior server engineer. One of my first projects was to implement Exchange Server 2007 on a Windows Server 2008 Single Copy Cluster for high availability. That was the easy part; read on to l…
Resolve Outlook connectivity issues after moving mailbox to new Exchange 2016 server
In this video we show how to create a Shared Mailbox 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 Recipients >> Sha…
To show how to create a transport rule 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 >> Rules tab.:  To cr…

706 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now