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

Uncomment the following
myorigin = $myhostname













Comments

Popular posts from this blog

python(BI)

(PP-7)Create a class called Numbers, which has a single class attribute called MULTIPLIER, and a constructor which takes the parameters x and y (these should all be numbers). i. Write a method called add which returns the sum of the attributes x and y. ii. Write a class method called multiply, which takes a single number parameter a and returns the product of a and MULTIPLIER. iii. Write a static method called subtract, which takes two number parameters, b and c, and returns b - c. iv. Write a method called value which returns a tuple containing the values of x and y. Make this method into a property, and write a setter and a deleter for manipulating the values of x and y.