LSA8
Practical 8: Setting Up a Mail Server:
a) Configuring mail using mutt:
i) Install ‘mutt’ package :
ii) rpm -qa | grep mutt
iii) Create 2 additional user to share the mail –
useradd user854
passwd user854
useradd user5153
passwd user5153
iv) Switch to 1st user –
su -user854
v) mail
mail -s hello user5153!
vi) Switch to 2nd user to check 1st user’s message –
su -user5153
vii) mutt
mutt
type yes
press enter
type r to reply
hello kj
i am neha
hello we are khushi
save :wq
type y to send message
viii) Switch to 1st user –
su - user854
ix) mutt
B] Configuring mail using Postfix mail server.
i) Inside the ‘Packages’ directory –
rpm -ivh postfix*
ii) /etc/init.d/postfix start
iii) /etc/init.d/postfix restart
iv) chkconfig --list postfix
v) chkconfig postfix on
vi) vi /etc/postfix/main.cf
- Uncomment and change hostname to ‘localhost.localdomain’
myhostname = localhost.localdomain
myhostname = virtual.domain.tld
myorigin = $myhostname
Comments
Post a Comment