Debian Sarge (3.1) with Ruby on Rails and Apache 2 with FastCGI - Page 3
Install MySQLapt-get install mysql-server mysql-client libmysqlclient12-dev Set your mysql root password
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
Install Postfix/POP3/IMAPIn 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 To the prompts answer:
Continue installing libc-client without Maildir support? answer No Now configure postfix:
postconf -e 'smtpd_sasl_local_domain =' Set up SSL
mkdir /etc/postfix/ssl You must enter a pass phrase for the smtpd.key 4 to 8191 characers
chmod 600 smtpd.key Fill in the certificate request or take the defaults openssl x509 -req -days 3650 -in smtpd.csr -signkey smtpd.key -out smtpd.crt You must enter the pass phrase you entered earlier for the smtpd.key openssl rsa -in smtpd.key -out smtpd.key.unencrypted You must enter the pass phrase you entered earlier for the smtpd.key mv -f smtpd.key.unencrypted smtpd.key openssl req -new -x509 -extensions v3_ca -keyout cakey.pem -out cacert.pem -days 3650 Fill in the certificate request or take the defaults Do some more postfix config
postconf -e 'smtpd_tls_auth_only = no' joe /etc/postfix/main.cf
Restart postfix /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":
joe /etc/default/saslauthd
Now start saslauthd: /etc/init.d/saslauthd start Next we create the file /etc/c-client.cf: echo "I accept the risk" > /etc/c-client.cf echo "set disable-plaintext 0" >> /etc/c-client.cf Now restart inetd: /etc/init.d/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.
Install Courier-IMAP/Courier-POP3 with Maildir supportapt-get install courier-imap courier-imap-ssl courier-pop courier-pop-ssl To the prompts:
Create directories for web-based administration ? answer No Then configure Postfix to deliver emails to a user's Maildir*:
postconf -e 'home_mailbox = Maildir/'
|
Join the discussion.
www.seamlessenterprise.com
IP Convergence
Integrate your wireless and wireline networks.
Learn how from the experts at Sprint.
www.seamlessenterprise.com
Wireless & Wireline Integration
Thoughts, strategies and solutions: join the discussion
www.seamlessenterprise.com
Unified Communications 2009
Join the Discussion. Now.
www.seamlessenterprise.com





print: 
Recent comments
20 hours 54 min ago
22 hours 22 min ago
1 day 1 hour ago
1 day 4 hours ago
1 day 7 hours ago
1 day 8 hours ago
1 day 8 hours ago
1 day 9 hours ago
1 day 10 hours ago
1 day 11 hours ago