Solved

To manipulate message-id in postfix

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

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.
Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

803 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