toorop / tmail

Golang SMTP server
http://tmail.io
MIT License
324 stars 54 forks source link

Feature/log debug smtp client #17

Closed PhilippeDesjacques closed 8 years ago

PhilippeDesjacques commented 8 years ago

Add some DEBUG lines (if DEBUG level activated) to smtp_client (for remote delivery)

Output example :

[mail-1] 2016/10/28 13:06:12.013677 DEBUG - smtp_client - xxx.xxx.xxx.xxx:25 - < 250-xx.mail.example.com STARTTLS PIPELINING 8BITMIME SIZE 50000000 AUTH LOGIN PLAIN CRAM-MD5 [mail-1] 2016/10/28 13:06:12.013904 DEBUG - smtp_client - xxx.xxx.xxx.xxx:25 - > STARTTLS