phires / go-guerrilla

MIT License
112 stars 18 forks source link

How to get the time taken to receive single mail in go-guerrilla #31

Open anandhkumar opened 10 months ago

anandhkumar commented 10 months ago

Team,

I have SMTP listener service which use flashmob/go-guerrilla 1.6.1 to receive the mail, I want to know what is the single mail receive time. How can I measure this? This will give idea what is my service throughout per seconds. Can you please provide this information ?

anandhkumar commented 9 months ago

Can somebody help here to resolve this issue? We want to identify how much time taken by go-guerrilla

phires commented 7 months ago

Hi, sorry for the delay!

What timing do you want to get? The receive time itself should be present in the headers once the mail has been dropped to the maildir. Or do you want to know the time the mail was "in transit", e.g. the time of sending until receiving?

Timing with emails outside of go-guerilla is a bit tricky, as we can only gurantee timing within our own process (e.g. first packet until queue finish). Outside of the process itself we have to rely on submitted timings by the foreign MTAs, which can easily be forged.

pkarc commented 5 months ago

@anandhkumar I guess your asking for benchmarks, what I understand is you need a measure, specifically the time the server takes from the instant that the mail its received until it gets processed(saved) by the server. I'm right?

anandhkumar commented 4 months ago

Yes