How to sent email to a distribution group by sendmail

goto /etc/mail
vi virtualtable allusers

Now go to

vi allusers.txt


[ Here you will have to just write the username (system username)]
[If you have lots of user then you can use script to copy all username from /etc/password to /etc/mail/allusers.txt file]

Now save the file

vi /etc/newaliases

Insert this line

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

Then make new aliases
That’s it
Now when you will sent email to
It will sent that email to every user in that group.

Leave a Reply