Question : How can i make Distribution list in sendmail? i want to make an user [email protected] to send mail to all user of my domain.

How can i make Distribution list in sendmail? i want to make an user [email protected] to send mail to all user of my domain.

How to make some priviledge id so that they can only send mail to [email protected].

Answer : How can i make Distribution list in sendmail? i want to make an user [email protected] to send mail to all user of my domain.

goto /etc/mail
vi virtualtable

[email protected] allusers

Now go to

/etc/mail
vi allusers.txt

user1
user2
user3


[ here you will have to just write the username (system username)

Now save the file

vi /etc/newaliases

insert this line

allusers:       :include:/etc/mail/allusers.txt


then make new aliases

thats it
when you will sent email to

example

cat /etc/hosts | mail -s "emailtoalluser" allusers

it will sent that email to every user
Random Solutions  
 
programming4us programming4us