Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I configure the Dovecot message delivery agent to only allow imap connections from localhost?

share|improve this question

It's probably easiest to just listen only on localhost:

protocol imap {
    listen = 127.0.0.1:143
    ssl_listen = 127.0.0.1:993
}
share|improve this answer
    
Thanks again for another answer :) I'm a bit green with all this, so what file would I make this change in? – linus1412 Apr 21 '11 at 11:10
1  
Found it - dovecot.conf in /etc/dovecot – linus1412 Apr 21 '11 at 11:15

The listen = addr:port config is deprecated in newer versions of dovecot. The new way of doing things is with service { inet_listener imap { address = ... } }.

On my system it's in /etc/dovecot/conf.d/10-master.conf:

service imap-login {
  inet_listener imap {
    address = 127.0.0.1
  }
}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.