System: Ubuntu 12.04, the email account uses the system account.
The Postfix system itself comes
Dovecot install apt-Get install Dovecot-imapd dovecot-pop3d.
Below is the configuration file
Postfix. Main Configuration
# Myorigin =/etc/mailnamesmtpd_banner = $ myhostname ESMTP $ mail_name (UBUNTU) Biff = No # appending. domain is the Mua's job. append_dot_mydomain = No # delay_warning_time = 4hreadme_directory = No # TLS parameters # parameters =/etc/SSL/certs/ssl-cert-snakeoil.pem # parameters =/etc/SSL/private/ssl-cert-snakeoil.key # smtpd_use_tls = yes # Keys = btree: $ {data_directory}/smtpd_scache # metadata = btree :$ {data_directory}/smtp_scache # myhostname = localhostmyhostname = Your host name mydomain = your domain name myorigin = $ mydomainalias_maps = hash: /etc/aliasesalias_database = hash:/etc/aliasesmydestination = $ myhostname, localhost. $ mydomain, localhost, $ mydomain # relayhost = mynetworks = 127.0.0.0/8 [: FFFF: 127.0.0.0]/104 [:: 1]/queues = centers = + inet_interfaces = alllocal_recipient_maps = default_transport = smtprelay_transport = balance = home_mailbox = maildir/# region = permit_mynetworks # relay_domains = $ mydestination
The following is the configuration of Dovecot. conf. Add
protocols = pop3 imapmail_location = maildir:/home/%u/Maildirdisable_plaintext_auth = nossl_disable = yes
The next step is to use the mail client to receive the mail (there is a problem with writing), but there is a pitfall in it.
For the Thunderbird client, enter the email address (account @ domain name) and password (that is, the password on the system). Because the email is not encrypted, a warning is prompted, but the download email is not affected.
For Foxmail, if you use IMAP, the verification fails, but you can use Pop to succeed.
Simple Postfix + dovcote configuration in Ubuntu