DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Ports and Packages

FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 24th December 2009
bsdperson bsdperson is offline
Port Guard
 
Join Date: May 2008
Posts: 35
Thanked 0 Times in 0 Posts
Default dovecot + ssl

Setup: Freebsd 7.2, postfix, dovecot, mutt and thunderbird.

If I use pop3 evertything is ok. If I use pop3s I cannot read any emails using thunderbird from remote. It simply says there are no messages. Using mutt locally reveals plenty of mails.

I suspect this has to do with mail_location in dovecot.conf. Will this change when switching from pop3 to pop3s? Apart from that I am totally lost...

Merry christmas by the way!
Reply With Quote
  #2   (View Single Post)  
Old 24th December 2009
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,051
Thanked 198 Times in 156 Posts
Default

I don't think it has anything to do with mail_location if POP3 works, this means dovecot if able to find your emails.

Are you using the right port? And is the port open in your firewall?
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #3   (View Single Post)  
Old 24th December 2009
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,116
Thanked 182 Times in 149 Posts
Default

From /etc/services:
Code:
pop3s           995/tcp         spop3           # pop3 protocol over TLS/SSL
pop3s           995/udp         spop3           # pop3 protocol over TLS/SSL
Does netstat -an -f inet report something LISTENing on port 995?
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #4   (View Single Post)  
Old 25th December 2009
bsdperson bsdperson is offline
Port Guard
 
Join Date: May 2008
Posts: 35
Thanked 0 Times in 0 Posts
Default

There's no udp, only tcp4. Anyway, I think I need to look deeper into dovecot.conf.
Reply With Quote
  #5   (View Single Post)  
Old 25th December 2009
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,116
Thanked 182 Times in 149 Posts
Default

Please post that output of netstat -an -f inet Out of privacy concerns you can mangle or obfuscate the public IP address parts

Yes it is quite normal that many ports are only actually used for TCP. Although probably never
used they are also reserved for UDP
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump

Last edited by J65nko; 25th December 2009 at 12:29 PM. Reason: Remark about UDP added
Reply With Quote
  #6   (View Single Post)  
Old 25th December 2009
bsdperson bsdperson is offline
Port Guard
 
Join Date: May 2008
Posts: 35
Thanked 0 Times in 0 Posts
Default

Absolutely, here goes:

Code:
~>sudo netstat -an -f inet
Active Internet connections (including servers)
Proto Recv-Q Send-Q  Local Address          Foreign Address        (state)
tcp4       0    100 192.168.1.1.22         192.168.1.2.1791       ESTABLISHED
tcp4       0      0 192.168.1.1.995        192.168.1.2.1679       TIME_WAIT
tcp4       0      0 192.168.1.1.445        192.168.1.2.4051       ESTABLISHED
tcp4       0      0 *.139                  *.*                    LISTEN
tcp4       0      0 *.445                  *.*                    LISTEN
tcp4       0      0 *.995                  *.*                    LISTEN
tcp4       0      0 *.110                  *.*                    LISTEN
tcp4       0      0 192.168.1.1.53         *.*                    LISTEN
tcp4       0      0 127.0.0.1.53           *.*                    LISTEN
tcp4       0      0 *.22                   *.*                    LISTEN
tcp4       0      0 *.25                   *.*                    LISTEN
tcp4       0      0 *.21                   *.*                    LISTEN
udp4       0      0 192.168.1.1.138        *.*
udp4       0      0 192.168.1.1.137        *.*
udp4       0      0 *.138                  *.*
udp4       0      0 *.137                  *.*
udp4       0      0 192.168.0.10.57153     85.21.78.91.123
udp4       0      0 192.168.1.1.53         *.*
udp4       0      0 127.0.0.1.53           *.*
udp4       0      0 *.67                   *.*
udp4       0      0 192.168.0.10.63240     84.2.42.31.123
udp4       0      0 192.168.0.10.60711     83.229.210.18.123
udp4       0      0 192.168.1.1.123        *.*
udp4       0      0 *.5060                 *.*
udp4       0      0 *.514                  *.*
icm4       0      0 *.*                    *.*

Last edited by J65nko; 25th December 2009 at 08:42 PM. Reason: Added code tags ;)
Reply With Quote
  #7   (View Single Post)  
Old 25th December 2009
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,116
Thanked 182 Times in 149 Posts
Default

Quote:
Code:
tcp4       0      0 *.995                  *.*                    LISTEN
Ok it is there LISTENing.

To check whether packets are arriving on that port open up another xterm or console
and start tcpdump.:
Code:
# tcpdump -ni fxp0 -vv 'port 995'
Replace the 'fxp0' by the NIC which you have. Then open up the TLS/SSL connection and see whether tcpdump shows anything arriving.

If they arrive, check your firewall rules, that you are not accidently blocking port 995 traffic.

In case you are using 'pf' and a 'block log all' rule, you can check packet blockage with
Code:
# tcpdump -eni pflog0 -s 128
In yet another console, of course.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix, Dovecot, spamassassin, mysql and maildrop hamba Guides 3 20th May 2010 06:40 PM
MySQL / Dovecot connection problem DrKrall FreeBSD Ports and Packages 2 12th July 2009 06:40 PM
Maildir with Postfix/Dovecot/procmail/mutt bsdperson FreeBSD Ports and Packages 3 8th July 2009 07:05 PM
[DOVECOT] How to choose the ports? Sunsawe FreeBSD Ports and Packages 2 7th July 2008 02:41 PM
postfix + dovecot LDA: bounce, user unknown cbrace FreeBSD General 1 9th May 2008 05:19 PM


All times are GMT. The time now is 06:56 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick