MTA adding unwanted Return-Path header
806996Jun 7 2011 — edited Feb 7 2020Hi all,
I have a problem with a Messaging Server (Sun Java(tm) System Messaging Server 6.2-7.05 (built Sep 5 2006)) running on Solaris 10 SPARC .
Every outgoing mail seems to get an additional Return-Path header with the sender address, even when there is already an identical one. The problem is that the remote server does not really like that since this is a closed system with a strict inter-server communication protocol which does not allow for more than one return-path in the mail source (can't help about that).
This is an excerpt from the mail.log :
-----
07-Jun-2011 15:47:09.29 0f1e.9.13 tcp_relay tcp_local E 9 sender@mydomain.it rfc822;recipient@remotedomain.it recipient@remotedomain.it /opt/SUNWmsgsr/data/queue/tcp_local/009/ZZh0s0S0FWRs2.00 <33BA4657-C1F1-9D18-8742-B5FD6767C779@mydomain.it> backend1.mydomain.it (backend1.mydomain.it [192.168.0.161])
*07-Jun-2011 15:47:09.29 0f1e.9.13 > Return-path: <sender@mydomain.it>*
07-Jun-2011 15:47:09.29 0f1e.9.13 > Received: from webmail.mydomain.it (webmail2.mydomain.it [XXX.XXX.XXX.XXX]) by mydomain.it (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTPSA id <0LMF0020OAAJZE00@mydomain.it> for recipient@remotedomain.it; Tue, 07 Jun 2011 15:47:07 +0200 (CEST)
07-Jun-2011 15:47:09.29 0f1e.9.13 > Received: from frontend1 ([192.168.50.112]) by backend1.mydomain.it (JAMES SMTP Server 2.3.1) with SMTP ID 429 for <recipient@remotedomain.it>; Tue, 7 Jun 2011 15:47:07 +0200 (CEST)
07-Jun-2011 15:47:10.98 0f23.5.10 tcp_local DS 9 sender@mydomain.it rfc822;recipient@remotedomain.it recipient@remotedomain.it /opt/SUNWmsgsr/data/queue/tcp_local/009/ZZh0s0S0FWRs2.00 <33BA4657-C1F1-9D18-8742-B5FD6767C779@mydomain.it> h40.remotedomain.it dns;h40.remotedomain.it (TCP|XXX.XXX.XXX.XXX|10331|XXX.XXX.XXX.XXX|25) (smtp.remotedomain.it ESMTP Sendmail 8.13.1/8.13.1; Tue, 7 Jun 2011 15:47:09 +0200) smtp;250 2.1.5 <recipient@remotedomain.it>... Recipient ok
*07-Jun-2011 15:47:10.98 0f23.5.10 > Return-path: <sender@mydomain.it>*
*07-Jun-2011 15:47:10.98 0f23.5.10 > Return-path: <sender@mydomain.it>*
07-Jun-2011 15:47:10.98 0f23.5.10 > Received: from backend1.mydomain.it (backend1.mydomain.it [192.168.0.161]) by mydomain.it (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTP id <0LMF00209AALZI00@mydomain.it> for recipient@remotedomain.it; Tue, 07 Jun 2011 15:47:09 +0200 (CEST)
07-Jun-2011 15:47:10.98 0f23.5.10 > Received: from webmail.mydomain.it (webmail2.mydomain.it [XXX.XXX.XXX.XXX]) by mydomain.it (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTPSA id <0LMF0020OAAJZE00@mydomain.it> for recipient@remotedomain.it; Tue, 07 Jun 2011 15:47:07 +0200 (CEST)
07-Jun-2011 15:47:10.98 0f23.5.10 > Received: from frontend1 ([192.168.50.112]) by backend1.mydomain.it (JAMES SMTP Server 2.3.1) with SMTP ID 429 for <recipient@remotedomain.it>; Tue, 07 Jun 2011 15:47:07 +0200 (CEST)
-----
And this is the configuration relevant to the tcp_relay and tcp_local channels:
-----
imta.cnf :
rewrite rules
! tcp_local
! Rules for top level internet domains
<IMTA_TABLE:internet.rules
channels:
defaults noinner notices 1 2 3 copywarnpost copysendpost postheadonly noswitchchannel addreturnpath immnonurgent maxjobs 7 returnenvelope 2 nowarnpost nosendpost
!
! tcp_relay
tcp_relay logging smtp nomx single_sys defaulthost mydomain.it missingrecipientpolicy 0
tcp-relay-daemon
!
! tcp_local
tcp_local logging smtp mx single_sys defaulthost mydomain.it noinner switchchannel identnonenumeric subdirs 20 maxjobs 7 pool SMTP_POOL maytlsclient maytlsserver missingrecipientpolicy 0
tcp-daemon
-----
Any help would be really appreciated!
Many thanks in advance.
Cheers,
Claudio