VMware Images:
|
The Perfect Setup - Debian Sarge (3.1) - Page 4
|
MySQL apt-get install mysql-server mysql-client libmysqlclient12-dev mysqladmin -u root password yourrootsqlpassword When you run netstat -tap you should now see a line like this:
which means that MySQL is accessible on 127.0.0.1 on port 3306. You can go to the next section (Postfix). If you do not see this line, edit /etc/mysql/my.cnf and comment out skip-networking:
If you want MySQL to listen on all available IP addresses, edit /etc/mysql/my.cnf and comment out bind-address = 127.0.0.1:
If you had to edit /etc/mysql/my.cnf you have to restart MySQL: /etc/init.d/mysql restart If MySQL is listening on all interfaces, you must now also set a MySQL password for server1.example.com because otherwise anybody could access your database: mysqladmin -h server1.example.com -u root password yourrootsqlpassword
Postfix/POP3/IMAP In order to install Postfix with SMTP-AUTH and TLS as well as a POP3 server that also does POP3s (port 995) and an IMAP server that is also capable of IMAPs (port 993) do the following steps: apt-get install postfix postfix-tls libsasl2 sasl2-bin libsasl2-modules ipopd-ssl uw-imapd-ssl (1 line!) <- pop3 and pop3s postconf -e 'smtpd_sasl_local_domain
=' mkdir /etc/postfix/ssl postconf -e 'smtpd_tls_auth_only
= no' The file /etc/postfix/main.cf should now look like this:
/etc/init.d/postfix restart Authentication will be done by saslauthd. We have to change a few things to make it work properly. Because Postfix runs chrooted in /var/spool/postfix we have to do the following: mkdir -p /var/spool/postfix/var/run/saslauthd Now we have to edit /etc/default/saslauthd in order to activate saslauthd. Remove # in front of START=yes and add the line PARAMS="-m /var/spool/postfix/var/run/saslauthd -r":
We must also edit /etc/init.d/saslauthd and change the location of saslauthd's PID file. Change the value of PIDFILE to /var/spool/postfix/var/run/${NAME}/saslauthd.pid:
Now start saslauthd: /etc/init.d/saslauthd start
Next we create the file /etc/c-client.cf with the following contents:
and restart inetd: /etc/init.d/openbsd-inetd restart If we don't do this, then our POP3/IMAP logins will fail.
To see if SMTP-AUTH and TLS work properly now run the following command: telnet localhost 25 After you have established the connection to your postfix mail server type ehlo localhost If you see the lines 250-STARTTLS and 250-AUTH everything is fine.
Type quit to return to the system's shell.
Courier-IMAP/Courier-POP3 If you want to use a POP3/IMAP daemon that has Maildir support (if you do not want to use the traditional Unix mailbox format) you can install Courier-IMAP/Courier-IMAP-SSL (for IMAPs on port 993) and Courier-POP3/Courier-POP3-SSL (for POP3s on port 995). Otherwise you can proceed with the Apache configuration. apt-get install courier-imap courier-imap-ssl courier-pop courier-pop-ssl <- No ipopd and UW-IMAP will then be replaced. Then configure Postfix to deliver emails to a user's Maildir*: postconf -e 'home_mailbox
= Maildir/' *Please note: You do not have to do this if you intend to use ISPConfig on your system as ISPConfig does the necessary configuration using procmail recipes. But please go sure to enable Maildir under Management -> Settings -> EMail in the ISPConfig web interface.
|





print: 
Recent comments
35 min 13 sec ago
1 hour 49 min ago
2 hours 32 min ago
3 hours 37 sec ago
10 hours 27 min ago
13 hours 56 min ago
16 hours 47 min ago
21 hours 23 min ago
22 hours 3 min ago
23 hours 41 min ago