alex Posted June 30, 2012 Report Posted June 30, 2012 Postfix + Dovecot + Squirrelmail + User mail Pasul 1Instalam si configuram Postfixul # apt-get install postfix postfix-tls libsasl2 sasl2-bin libsasl2-modules popa3d # nano /etc/postfix/main.cf main.cfsmtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)biff = noappend_dot_mydomain = noreadme_directory = nosmtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pemsmtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.keysmtpd_use_tls=yessmtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scachesmtp_tls_session_cache_database = btree:${data_directory}/smtp_scachemyhostname = slashlinux.infoalias_maps = hash:/etc/aliasesalias_database = hash:/etc/aliasesmyorigin = slashlinux.infomydestination = slashlinux.info,localhost, localhost.localdomainrelayhost =relay_domains = slashlinux.infomynetworks = 127.0.0.0/8mailbox_size_limit = 0recipient_delimiter = +inet_interfaces = allsmtpd_sasl_auth_enable = yessmtpd_sasl_local_domain = slashlinux.infosmtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_unauth_destinationsmtpd_sasl_security_options = noanonymoussmtpd_sasl_type = dovecotsmtpd_sasl_path = private/auth Pasul 2Testam postfixul # telnet localhost 25 Trying ::1... Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 slashlinux.info ESMTP Postfix (Ubuntu) ehlo localhost 250-slashlinux.info 250-PIPELINING 250-SIZE 10240000 250-VRFY 250-ETRN 250-STARTTLS 250-AUTH PLAIN LOGIN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN quit 221 2.0.0 Bye Connection closed by foreign host. Pasul 3Instalam si configuram Dovecotul # apt-get install dovecot-imapd dovecot-pop3d dovecot-common # nano /etc/dovecot/dovecot.conf dovecot.confbase_dir = /var/run/dovecotprotocols = pop3 imaplisten = *disable_plaintext_auth = noinfo_log_path = /var/log/dovecot-info.loglog_timestamp = "%Y-%m-%d %H:%M:%S "ssl = nologin_chroot = yeslogin_user = dovecot mail_location = maildir:~/Maildir mail_location = mbox:~/mail:INBOX=/var/mail/%uprotocol imap { login_executable = /usr/lib/dovecot/imap-login pop3_uidl_format = %08Xu%08Xvauth_verbose = yesauth default {mechanisms = plain loginpassdb pam {}userdb passwd {}socket listen {client {path = /var/spool/postfix/private/authmode = 0660user = postfixgroup = postfix}}}plugin { } Pasul 4Testam dovecotul # telnet localhost 143 Trying ::1... Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE AUTH=PLAIN AUTH=LOGIN] Dovecot ready. Pasul 5 Instalam si configuram Squirrelmail # apt-get install install libapache2-mod-php5 php5-cli php5-common php5-cgi # apt-get install install squirrelmail # /usr/sbin/squirrelmail-configure squirrelmail-configure#IMPORTANT!! - Aici va trebui sa faceti voi setarile, la 'Server Settings'puneti domeniul vostru 'domeniu.com'SquirrelMail Configuration : Read: config.php (1.4.0)---------------------------------------------------------Main Menu --1. Organization Preferences2. Server Settings3. Folder Defaults4. General Options5. Themes6. Address Books7. Message of the Day (MOTD)8. Plugins9. Database10. LanguagesD. Set pre-defined settings for specific IMAP serversC Turn color onS Save dataQ QuitCommand >> Pasul 6Vom include o linie cod in /etc/apache2/apache.conf. # echo Include /etc/squirrelmail/apache.conf >/etc/apache2/apache2.conf # /etc/init.d/apache2 restart NOTA!Pentru a accesa interfata web mail Squirrelmail scrieti in browserul dvs www.domeniul.com/squirrelmail. Pasul 7 Cream user si parola pentru contul de mail. # useradd peter -s /bin/false # passwd peter Vom modifica linia /home/peter:/bin/sh in /home/peter:/bin/false joe:x:5006:5008::/home/directorftp/:/bin/false ftp:x:118:65534::/home/ftp:/bin/false peter:x:5007:5009::/home/peter:/bin/false Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.