Disable any “pop3-login” on Dovecot

dovecot

Using Ubuntu Server I have a test-server that sends out mails in PHP scripts. Other than that, it does not do anything with mail. However, I have a bunch of "pop3-login" processes going on. It appears to be somebody/something is trying to login to the pop3 mailboxes. But no POP3 mailboxes are (or should be) working. Is there an easy way to turn off pop3 (or imap) logins for Dovecot? I only need outgoing mails in PHP…

Best Answer

If you don't use imap or pop3, then remove dovecot:

sudo aptitude remove dovecot dovecot-pop3d dovecot-imapd

Dovecot has nothing to do with your outgoing mail, you're probably using postfix, exim, or some other MTA for that.

If you want to use IMAP but not POP3, then just remove the dovecot-pop3d backage. If you want POP3 but not IMAP, just remove dovecot-imapd.