How to sent email to a distribution group by sendmail

goto /etc/mail
vi virtualtable

all@yorudoman.co.uk allusers

Now go to

/etc/mail
vi allusers.txt

user1
user2
user3

[ 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 allusers@yourdomain.co.uk
It will sent that email to every user in that group.

Leave a Reply

*