Community discussions

MikroTik App
 
westwind80
just joined
Topic Author
Posts: 19
Joined: Tue Dec 08, 2020 10:35 am

Email smtp timeout on mikrotik

Fri Apr 02, 2021 6:16 am

Hi All,
Please help me on my outlook issue on mikrotik. Firstly, I would like to explain the situation.

1. When my internet line from home connect to mikrotik router, my outlook works fine. I could send email with attachment, download new mail with attachment OK.

2. When my internet line connect from satellite to mikrotik router, my outlook could download new mail with attachment without problem. Sending mail with attachment will cause timeout. Sending email
without attachment is ok. I have even increase the outgoing mail server timeout, but yet problem still persist.

3. When I connect my computer to the satellite internet direct, all my outlook works fine. It can send email with attachment without problem. So I could not blame the satellite line for causing the error.

I've use the very same unit of mikrotik without any changes, yet the problem happened on satellite internet. There must be some additional settings I need to do to get the smtp to work. The thing that frustrate me is with home internet line, the email works fine.

My email server using pop,smtp with ssl, port 465.
 
westwind80
just joined
Topic Author
Posts: 19
Joined: Tue Dec 08, 2020 10:35 am

Re: Email smtp timeout on mikrotik

Fri Apr 02, 2021 7:54 am

Hi All,
Any guide to trouble shoot? Please help.
 
pe1chl
Forum Guru
Forum Guru
Posts: 10196
Joined: Mon Jun 08, 2015 12:09 pm

Re: Email smtp timeout on mikrotik

Fri Apr 02, 2021 4:21 pm

It is unlikely that the MikroTik router is involved in this timing.
Maybe you need to add TCP MSS clamping:
/ip firewall mangle
add action=change-mss chain=forward new-mss=clamp-to-pmtu passthrough=yes \
    protocol=tcp tcp-flags=syn
 
westwind80
just joined
Topic Author
Posts: 19
Joined: Tue Dec 08, 2020 10:35 am

Re: Email smtp timeout on mikrotik

Fri Apr 02, 2021 5:50 pm

It is unlikely that the MikroTik router is involved in this timing.
Maybe you need to add TCP MSS clamping:
/ip firewall mangle
add action=change-mss chain=forward new-mss=clamp-to-pmtu passthrough=yes \
    protocol=tcp tcp-flags=syn
Hi, Thank for the advice. Will try the settings above and let you know. BTW, what are the functions above?

I'm using Mikrotik RB2011UiAS-RM updated with the latest RouterOS.
 
westwind80
just joined
Topic Author
Posts: 19
Joined: Tue Dec 08, 2020 10:35 am

Re: Email smtp timeout on mikrotik

Mon Apr 05, 2021 4:28 am

Hi pe1chl,
I've tried your settings, the problem is occur. What else should I try? Thanks in advance.
 
pe1chl
Forum Guru
Forum Guru
Posts: 10196
Joined: Mon Jun 08, 2015 12:09 pm

Re: Email smtp timeout on mikrotik

Mon Apr 05, 2021 11:32 am

No idea. Impossible to debug such problems via forum, especially without config.
 
sindy
Forum Guru
Forum Guru
Posts: 10205
Joined: Mon Dec 04, 2017 9:19 pm

Re: Email smtp timeout on mikrotik

Mon Apr 05, 2021 4:51 pm

It needs sniffing to find out what's going on. Ideally you'd have a second PC, or a second Ethernet interface on the same PC from which you send the e-mail, to which the Mikrotik would stream the sniffed packets. If this is not possible, you can sniff into a file on the Mikrotik itself, but then the attachment must be really small, otherwise the RAMdisk of the 2011 will not be sufficient to hold the complete session.

The sniffing filter has to match only on the IP address of the SMTP server, as matching on port number would prevent packet fragments from being sniffed. And the capture filter on the PC must also not match on port number, for the same reason.

I suppose that when switching from the home connection to the satellite one, you just swap cables and leave the configuration of the Mikrotik unchanged, is that correct?

Would it be possible that the satellite contract assumes that you connect just a single endpoint device, i.e. not a router, to the satellite modem?
 
pe1chl
Forum Guru
Forum Guru
Posts: 10196
Joined: Mon Jun 08, 2015 12:09 pm

Re: Email smtp timeout on mikrotik

Mon Apr 05, 2021 5:16 pm

Well, when the problem is "can send a small mail but it hangs on large mail or attachment" is kind of suggests an MTU issue.
But when "automatic clamp" does not work, it apparently is not an MTU issue that the MikroTik can see (like a PPPoE interface towards internet).
As you say, it would be required to trace it. But difficult to do that for an end user (and also interpret the trace).
Of course a crude extra try could be like this:
/ip firewall mangle
add action=change-mss chain=forward new-mss=1400 passthrough=yes \
    protocol=tcp tcp-flags=syn
(clamp to 1400 instead of clamp-to-pmtu, maybe even try 1280)
However, that is just shooting in the dark.

Who is online

Users browsing this forum: baragoon, Bing [Bot], holvoetn, PI07R3K, woodmiller007 and 73 guests