<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 22 Jan 2019 at 06:17, Patrick Mahan <<a href="mailto:plmahan@gmail.com">plmahan@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>Dovecot 2.3.4, FreeBSD 11.2</div><br><div>Due to comcast buisness ISP intercepting imaps I need to have my clients connect to non-standard port (9999). Previously I had been using stunnel to receive the imaps connection and forward it to the imap port over 127.0.0.1. But I would like to retire stunnel and have my imap clients connect remotely.</div><div><br></div><div>I have configured the imap-login service -</div><div><br></div><div><div>service imap-login {</div><div> inet_listener imap {</div><div> address = 127.0.0.1, ::1</div><div> port = 143</div><div> }</div><div> inet_listener imaps {</div><div> port = 9999</div><div> }</div><div> process_min_avail = 3</div><div> service_count = 0</div><div> vsz_limit = 1 G</div><div>}</div></div><div><br></div><div>But I am not seeing any listeners on port 9999 -</div><div><br></div><div>root@ns(1001)# netstat -an | grep 9999</div><div><br></div><div>Using sockstat on FreeBSD:</div><div><br></div><div>root@ns(1002)# sockstat | grep dovecot | grep tcp</div><div>root dovecot 34800 15 tcp4 *:4190 *:*</div><div>root dovecot 34800 37 tcp4 <a href="http://127.0.0.1:143" target="_blank">127.0.0.1:143</a> *:*</div><div>root dovecot 34800 38 tcp6 ::1:143 *:*</div><div><br></div><div>I have mail_debug = yes, but I don't see any failures. What is the best way to debug why I am not seeing this port number?</div><div><br></div><div>Thanks,</div><div><br></div><div>Patrick</div><div><br></div></div></div>
</blockquote></div><div><br></div>I would leave dovecot config untouched and use a firewall (PF) to translate port 9999 to whatever dovecot listens to.<br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Best regards,<br>Odhiambo WASHINGTON,<br>Nairobi,KE<br>+254 7 3200 0004/+254 7 2274 3223<br>"<span style="font-size:12.8px">Oh, the cruft.</span><span style="font-size:12.8px">", </span><span style="font-size:12.8px">grep ^[^#] :-)</span></div></div></div></div></div></div>