VMware Images:
|
The Perfect Server - OpenSUSE 10.3 (32-bit) - Page 5
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.
11 Apache/PHP5Now we install Apache with PHP5: yast2 -i apache2 apache2-devel apache2-mod_perl apache2-mod_php5 apache2-prefork perl-HTML-Parser perl-HTML-Tagset perl-Tie-IxHash perl-URI perl-libwww-perl php5 php5-devel zlib zlib-devel Then we install some PHP5 modules: yast2 -i php5-bcmath php5-bz2 php5-calendar php5-ctype php5-curl php5-dbase php5-dom php5-ftp php5-gd php5-gettext php5-gmp php5-iconv php5-imap php5-ldap php5-mbstring php5-mcrypt php5-mhash php5-mysql php5-ncurses php5-odbc php5-openssl php5-pcntl php5-pgsql php5-posix php5-shmop php5-snmp php5-soap php5-sockets php5-sqlite php5-sysvsem php5-tokenizer php5-wddx php5-xmlrpc php5-xsl php5-zlib php5-exif php5-fastcgi php5-pear php5-sysvmsg php5-sysvshm ImageMagick curl Next we edit /etc/apache2/httpd.conf: vi /etc/apache2/httpd.conf and change DirectoryIndex to
Edit /etc/sysconfig/apache2 and add rewrite to the APACHE_MODULES line: vi /etc/sysconfig/apache2
Also add SSL to the APACHE_SERVER_FLAGS line:
Now configure your system to start Apache at boot time: chkconfig --add apache2 Then run SuSEconfig
11.1 Disable PHP And Perl Globally(If you do not plan to install ISPConfig on this server, please skip this section!) In ISPConfig you will configure PHP and Perl on a per-website basis, i.e. you can specify which website can run PHP and Perl scripts and which one cannot. This can only work if PHP and Perl are disabled globally because otherwise all websites would be able to run PHP/Perl scripts, no matter what you specify in ISPConfig. To disable PHP and Perl globally, we edit /etc/mime.types and comment out the application/x-perl and application/x-php lines: vi /etc/mime.types
Then edit /etc/apache2/conf.d/php5.conf and comment out all AddHandler lines: vi /etc/apache2/conf.d/php5.conf
Afterwards we restart Apache: /etc/init.d/apache2 restart
|



print: 


Recent comments
14 hours 16 min ago
16 hours 25 min ago
1 day 5 hours ago
1 day 20 hours ago
2 days 2 hours ago
2 days 7 hours ago
2 days 10 hours ago
3 days 1 hour ago
3 days 3 hours ago
3 days 5 hours ago