Community discussions

MikroTik App
 
gundolf
just joined
Topic Author
Posts: 12
Joined: Sun Mar 09, 2025 8:35 pm

Email test failed when through proxy

Fri Mar 28, 2025 10:29 pm

I'm routing SMTP through a proxy in a container.
I can confirm email is sent when not routed through proxy.
But when i route through proxy, i see the following logs which are sent in sequence, after 30s of triggering the email send:

Error sending e-mail <email test>: timeout occured
send RSET
recv: 220 smtp.mymail.com ESMTP ready
send QUIT
recv: 250 2.0.0 OK

Any clue what could be going wrong?
 
gundolf
just joined
Topic Author
Posts: 12
Joined: Sun Mar 09, 2025 8:35 pm

Re: Email test failed when through proxy

Sat Mar 29, 2025 12:02 am

Locally running this cURL command proxied through the same container, works fine:
curl --ssl smtp://smtp.mymail.com:587 --mail-from id@mymail.com --mail-rcpt test@myrcpt.com --upload-file email.txt --user 'id@mymail.com:password' -v
 
gundolf
just joined
Topic Author
Posts: 12
Joined: Sun Mar 09, 2025 8:35 pm

Re: Email test failed when through proxy

Sat Mar 29, 2025 9:58 am

More info: i can see the test hitting the proxy container, but only as soon as the "timeout occured" message is logged.
It looks like for some reason the actual emailing attempt is done after the timeout is already hit?!