Main Page/Stuff/redhat installation

From phurvitz
< Main Page‎ | Stuff
Revision as of 07:36, 26 June 2011 by Phil Hurvitz (talk | contribs) (sendmail)
Jump to: navigation, search

Installation of RHEL 5

shell

sendmail

change /etc/mail/sendmail.mc

DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

to

DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl

then enter

m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

my sendmail file

mailman copy

rsync -avz /var/lib/mailman/lists  root@140.142.198.149:/var/lib/mailman
rsync -avz /var/lib/mailman/data  root@140.142.198.149:/var/lib/mailman
rsync -avz /var/lib/mailman/archives  root@140.142.198.149:/var/lib/mailman

cyrus imap

Install BerkeleyDB Install OpenSSL

<pre>


ftp://ftp.andrew.cmu.edu/pub/cyrus-mail Download cyrus-imapd-X.X.X.tar.gz and cyrus-sasl-X.X.X.tar.gz (where X.X.X is the latest release) into your temporary directory. sasl:

  1. cd /temp
  2. tar -zxvf cyrus-sasl-X.X.X.tar.gz
  3. cd cyrus-sasl-X.X.X
  1. ./configure
  2. make
  3. make install

imapd: ./configure --with-auth=unix useradd -g mail cyrus passwd cyrus

  1. make depend
  2. make all CFLAGS=-O
  3. make install
  1. Edit /etc/syslog.conf and add the following lines at the bottom:
             local6.debug    /var/adm/imapd.log
             auth.debug      /var/adm/auth.log
  2. Edit a new file /etc/imapd.conf and place in it the following lines:
             configdirectory: /var/lib/imap
             partition-default: /var/spool/imap
             admins: cyrus root
             srvtab: /var/imap/srvtab
             allowanonymouslogin: no
             sasl_passwd_check: shadow


  1. mkdir /var/adm
  2. touch /var/adm/imapd.log /var/adm/auth.log
  3. mkdir /var/imap /var/spool/imap /var/imap/srvtab
  4. chown cyrus /var/imap /var/spool/imap /var/imap/srvtab
  5. chgrp mail /var/imap /var/spool/imap /var/imap/srvtab
  6. chmod 750 /var/imap /var/spool/imap /var/imap/srvtab
  7. su cyrus

You are now the user cyrus. This is necessary for the files to have the correct owner and group. Continue:

  1. tools/mkimap
  2. cd /var/lib/imap
  3. chattr +S . user quota user/* quota/*
  4. chattr +S /var/spool/imap
  5. exit

You are now root again. The last command:

chattr +S /var/spool/mqueue