HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   Installation/Configuration (
-   -   Can't receive emails via POP3 (

ajw_doc 30th June 2008 13:08

Can't receive emails via POP3

Can't receive emails via POP3. I'm running Dovecot, Maildir is checked. IMAP accounts on the same domain are fine but pop3 isn't. Mail is delivered but can't be downloaded.

Last log entry for pop3 connection:


Jun 30 11:06:34 server1 dovecot: pop3-login: Login: user=<>, method=PLAIN,,
Jun 30 11:06:34 server1 dovecot: POP3( Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0

To be on safe side I delete user and recreated them but still no joy.

Any ideas?



till 30th June 2008 13:56

And the login with the exact same username with IMAP works?

ajw_doc 30th June 2008 14:09


IMAP is the same for this account. Can connect fine and with no errors in mail log but no email downloads. There are two in new at the moment so they are getting delivered.

ajw_doc 30th June 2008 14:28

I think I might have worked out the problem.

For other domains everything is under /home/domain/user/userid/Maildir/

but for this one it seems to create a new user thus: /home/domain/user/userid/user/userid/Maildir

The email is being delivered to /home/domain/user/userid/Maildir/new as it should be but it's connecting to the above extra directory which has nothing in. I'm not sure why this is as the other two accounts on that domain are set up properly as are the accounts on other domains.

I've tried adding a brand new user - this is set up correctly but still can't receive email via POP or IMAP :confused:

till 30th June 2008 14:41

Ok, I guess you dont use ISPConfig, as ISPConfig never uses these directories? I will move your post to a general forum.

ajw_doc 30th June 2008 14:50


Originally Posted by till (Post 133430)
Ok, I guess you dont use ISPConfig, as ISPConfig never uses these directories? I will move your post to a general forum.

Yes I do use ISpconfig hence posting in the ispconfig section so can you move it back please? The only thing that has been changed is the dovecot mail location as it was wrong. and the location of the domain directories as I have them on a second drive mounted to home.

till 30th June 2008 15:01

Ok. Please post the content of the file, comments stripped.

ajw_doc 30th June 2008 15:02

Will do. As an aside I've completely removed the domain, emptied recylce bin and re added everything. Same thing happens but only to the same account. It's very odd!

ajw_doc 30th June 2008 15:09


queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
mail_owner = postfix
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost
unknown_local_recipient_reject_code = 550
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
debug_peer_level = 2
debugger_command =
        ddd $daemon_directory/$process_name $process_id & sleep 5

sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.5.1/samples
readme_directory = /usr/share/doc/postfix-2.5.1/README_FILES
inet_protocols = all
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
mynetworks =
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
myhostname =
home_mailbox = Maildir/
mailbox_command =
virtual_maps = hash:/etc/postfix/virtusertable
mydestination = /etc/postfix/local-host-names

I followed this setup

ajw_doc 30th June 2008 15:24

I've worked out what the problem is - but I don't know the solution to it :)

It so happens that all other accounts on the server are admin accounts - these all work fine. I've just tried adding a normal account to another domain and get the same problem - it creates the Maildir in an extra user folder within the username folder.

Is this because I have the mail location in dovecot.conf set as:

mail_location = maildir:~/user/%u/Maildir
However, if this is the problem what is the correct path as that is the only thing that works for all my other (admin) email accounts?

All times are GMT +2. The time now is 05:59.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.