Hi David,

The log you captured from James is just about the starting point of mail
processing pipeline.  In the end of the pipeline the mail will go through
RemoteDelivery
<https://github.com/linagora/james-project/blob/master/server/mailet/mailets/src/main/java/org/apache/james/transport/mailets/RemoteDelivery.java>mailet
(the mail processing unit in charge of handle remote delivery),
you can search for the log at like 193. After that step, the dedicated
MailDelivrerToHost
<https://github.com/linagora/james-project/blob/master/server/mailet/mailets/src/main/java/org/apache/james/transport/mailets/remote/delivery/MailDelivrerToHost.java>
will
send the mail remotely to the destination server. Check the log in line 57
and 72.

I know that takes you more effort to find the remote host server. But the
point is, James uses its mailet pipeline system, it's hard to wrap all
information in all pipeline into one line of log.
But each peace of information is provided by a specific mailet.

And I don't think your desire can be easy to implemented - from my little
knowledge about James :D
-- 
Duc Tran

Vào Th 4, 11 thg 3, 2020 vào lúc 18:07 <m...@dmatthews.org.invalid> đã
viết:

> hi
>
> I'm experimenting with james 3.3.0 (couldn't get 3.4 to work) and starting
> to like what I see, but compared to the exim4 setup I'm used to there is
> one thing missing. This is being able to see the conversation between mail
> servers when you send a message, which to me is he big advantage of running
> your own mailserver as opposed to relying on gmail or hotmail etc.
>
> I've included (edited) example log messages below to explain what I mean.
>
> So from exim4 mainlog:-
>
> 2020-03-10 14:37:08 1jBg09-0007KT-SV => x...@hotmail.co.uk  H=
> eur.olc.protection.outlook.com [104.47.0.33]
> X=TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256 CV=yes
> DN="C=US,ST=Washington,L=Redmond,O=Microsoft Corporation,Hostname=
> HE1EUR01HT243.eop-EUR01.prod.protection.outlook.com] 10794 bytes in
> 0.278, 37.794 KB/sec Queued mail for delivery -> 250 2.1.5"
>
> I can see from that the remote hotmail servers have accepted the email
> from my local exim4 and will deliver it (hopefully to the appropriate
> INBOX, but that's another story!)
>
> From the james-server log:-
>
> INFO  10:50:59,157 | org.apache.james.smtpserver.SendMailHandler |
> Successfully spooled mail
> Mail1583923858892-a13c9a41-e441-44f9-9a0f-8c4833a0945a from
> MaybeSender{mailAddress=Optional[x...@caudwell.org.uk]} on
> 127.0.0.1/127.0.0.1 for [x...@dmatthews.org]
>
> That's fine as far as it goes; the local james server has spooled the
> mail. What's missing is the response from the remote dmatthews.org mail
> server. How would I go about implementing the logging of that?
>
> --
> David Matthews
> m...@dmatthews.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
> For additional commands, e-mail: server-user-h...@james.apache.org
>
>

Reply via email to