VMware Images:
|
The Perfect Server - OpenSUSE 11 - Page 4
8 MySQLIn order to install MySQL, we run yast2 -i mysql mysql-client mysql-shared perl-DBD-mysql perl-DBI perl-Data-ShowTable libmysqlclient-devel Then we add the system startup links for MySQL and start it: chkconfig --add mysql Now check that networking is enabled. Run netstat -tap | grep mysql In the output you should see something like this: server1:~ # netstat -tap | grep mysql If you don't see a line like this, edit /etc/my.cnf, comment out the option skip-networking: vi /etc/my.cnf
and restart your MySQL server: /etc/init.d/mysql restart To secure the MySQL installation, run: /usr/bin/mysql_secure_installation Now you will be asked several questions: Change the root password? [Y/n] Answer with "y" and enter the new root password. Here are the answers that I recommend for the next questions: .... Disallow root login remotely? [Y/n] y Remove test database and access to it? [Y/n] y Reload privilege tables now? [Y/n] y Now your MySQL setup should be secured.
9 Postfix With SMTP-AUTH And TLSNow let's install Postfix and Cyrus-SASL: yast2 -i postfix cyrus-sasl cyrus-sasl-crammd5 cyrus-sasl-digestmd5 cyrus-sasl-gssapi cyrus-sasl-otp cyrus-sasl-plain cyrus-sasl-saslauthd procmail Then we add the system startup links for Postfix and saslauthd and start them: chkconfig --add postfix chkconfig --add saslauthd Afterwards we create the certificates for TLS: mkdir /etc/postfix/ssl chmod 600 smtpd.key openssl x509 -req -days 3650 -in smtpd.csr -signkey smtpd.key -out smtpd.crt openssl rsa -in smtpd.key -out smtpd.key.unencrypted mv -f smtpd.key.unencrypted smtpd.key Next we configure Postfix for SMTP-AUTH and TLS: postconf -e 'mydomain = example.com' To enable TLS connections in Postfix, edit /etc/postfix/master.cf and uncomment the tlsmgr line so that it looks like this one: vi /etc/postfix/master.cf
Now restart Postfix: /etc/init.d/postfix restart 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 LOGIN PLAIN then everything is fine. On my system the output looks like this: server1:/etc/postfix/ssl # telnet localhost 25 Type quit to return to the system's shell.
10 Courier-IMAP/Courier-POP3I want to use a POP3/IMAP daemon that has Maildir support. That's why I use Courier-IMAP and Courier-POP3. yast2 -i courier-imap fam-server courier-authlib expect tcl Afterwards we add the system startup links and start POP3, IMAP, POP3s and IMAPs: chkconfig --add fam If you do not want to use ISPConfig, 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 -> Server -> Settings -> EMail in the ISPConfig web interface.
|




print: 
Recent comments
3 hours 1 min ago
3 hours 37 min ago
5 hours 16 min ago
6 hours 37 min ago
9 hours 52 min ago
10 hours 39 min ago
12 hours 36 min ago
12 hours 41 min ago
14 hours 5 min ago
14 hours 53 min ago