admin's sample notes - 2003-01-22 - creating an account for "recieveMail"





------------------------------------------------------------------
Admin-Task: creating an account for "recieveMail" - 2003-01-22
------------------------------------------------------------------
links-computing@news.netfrag.org
by now: links-computing@netfrag.org

useradd newscollector
cd /home
mkdir newscollector
chown newscollector.staff newscollector
nano .bashrc
add line:
alias l='ls -alF --color'

cd /etc/mail
nano virtusertable
add lines:
# --- news.netfrag.org - joko, 2003-01-22
#@news.netfrag.org newscollector
links-computing@netfrag.org newscollector # (by now)
(
make
/etc/init.d/sendmail reload
)
makemap hash virtusertable < virtusertable

cd /home/newscollector
mkdir tmp
cd tmp
export CVSROOT=/var/lib/cvs
cvs checkout -d recieveMail joko/ToolBox/Linux/MailDelivery/recieveMail no!
cvs checkout -d recieveMail nfo/perl/scripts/recieveMail
su newscollector
cd ~
export CVSROOT=/var/lib/cvs
mkdir Mail
cvs checkout -d Mail joko/ToolBox/Linux/MailDelivery/recieveMail/test/Mail/.rules.pm
modify!
cd ~
nano .forward
add line:
|"/data/bin/recieveMail/recieveMail

TODO: rename user to "collector"!!!

install rules:
cd ~
ln -s /data/opt/dispatchmail/etc/.dispatchmailrc-collector.pm .dispatchmailrc.pm

-----------------------------------------------------------------------------

cd /var/lib/cvs/nfo/perl/libs/
chown -R .src Mail/

  ./buildmail | ./dispatchmail

integrate Mail::Audit::Dispatch with Log::Dispatch and/or DesignPattern::Object::Logger