Free Web Hosting by Netfirms
Web Hosting by Netfirms | Free Domain Names by Netfirms

Sendmail

Subject: Q1 -- How can I send mail to all users?

Date: December 12, 2000 There is no magic short-cut for this. But it is not hard to set up: create an aliases entry alluser: :include:/etc/mail/allusers

Don't forget to run 'newaliases'. Then list your users, one per line, in the file '/etc/mail/allusers'. You might be able to do that with

 awk -F: '$3 > 100 { print $1 }' /etc/passwd > /etc/mail/allusers

 

 

Tip of the day SENDMAIL - Aliases may also have the syntax ``:include:filename'' to ask sendmail to read the named file for a list of recipients. For example, an alias such as: poets: ":include:/usr/local/lib/poets.list" would read /usr/local/lib/poets.list for the list of addresses making up the group.