<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><br>
</p>
<br>
<div class="moz-cite-prefix">Op 26/07/2018 om 10:28 schreef Thomas
Kristensen:<br>
</div>
<blockquote type="cite"
cite="mid:1EB644EC62C5B34AB7F8BECDD1412C51024FC77DC7@EX10MBX03.hostedcloud.local">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:3.0cm 2.0cm 3.0cm 2.0cm;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">Hey<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">I got a server setup
where the Postfix and dovecot is on separated servers.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">In the postfis log is
goes like this on mail in:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jul 26 10:23:13
edimailsl2 postfix/smtpd[12812]: 41blTs18Bzz40nl:
client=unknown[172.0.0.12]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jul 26 10:23:21
edimailsl2 postfix/cleanup[12825]: 41blTs18Bzz40nl:
message-id=<><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jul 26 10:23:21
edimailsl2 postfix/qmgr[10666]: 41blTs18Bzz40nl:
from=<a class="moz-txt-link-rfc2396E" href="mailto:tk@multimed.dk"><tk@multimed.dk></a>, size=225, nrcpt=1 (queue
active)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jul 26 10:23:21
edimailsl2 postfix/lmtp[12827]: 41blTs18Bzz40nl:
to=<a class="moz-txt-link-rfc2396E" href="mailto:test@domain.dk"><test@domain.dk></a>,
relay=172.26.248.178[172.26.248.178]:2003, delay=8.6,
delays=8.5/0.06/0.01/0.08, dsn=2.0.0, status=sent (250 2.0.0
<a class="moz-txt-link-rfc2396E" href="mailto:test@domain.dk"><test@domain.dk></a> oCuyJ/mEWVvFfwAAbOxY/Q Saved)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jul 26 10:23:21
edimailsl2 postfix/qmgr[10666]: 41blTs18Bzz40nl: removed<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">And the LMTP on the
Dovecot server is:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jul 26 10:23:21
vanslmtpsl1 dovecot: lmtp(32709): Connect from 172.0.0.1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jul 26 10:23:21
vanslmtpsl1 dovecot: lmtp(test@ domain.dk):
msgid=unspecified: saved mail to INBOX<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jul 26 10:23:21
vanslmtpsl1 dovecot: lmtp(32709): Disconnect from 172.0.0.1:
Successful quit<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">How can I make LMTP log
the ID it gives postfix (<b>oCuyJ/mEWVvFfwAAbOxY/Q</b>)?
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">So I can relate the logs
from the 2 servers.<o:p></o:p></span></p>
</div>
</blockquote>
<br>
The mail_log_prefix setting with the %{session} variable
substitution should do the trick.<br>
<br>
Regards,<br>
<br>
Stephan.<br>
<br>
</body>
</html>