Find the answer to your Linux question:
Results 1 to 4 of 4
I have a mail server set up and running. I need to send an email to all users letting them know of an up coming outage but I am not ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2005
    Location
    Springfield, MO
    Posts
    3

    Send email to all users on server


    I have a mail server set up and running. I need to send an email to all users letting them know of an up coming outage but I am not sure how to do this. There is over 100 users so I do not want to send them one by one.

    Is there an easy way to do this? Maybe from the command line? We use Postfix and do mave mutt installed if those help

  2. #2
    Just Joined!
    Join Date
    Oct 2006
    Location
    Los Angeles
    Posts
    7
    It's not very elegant but how about

    awk --field-separator=\: '{print $1"@myhost.com,"}' /etc/passwd

    to build the list of email addresses to use as a bcc list?

    Joe

  3. #3
    Just Joined!
    Join Date
    Dec 2003
    Location
    Greece
    Posts
    43
    Why not creating a mailing list with all them and just email that list?

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Engineer nujinini's Avatar
    Join Date
    Apr 2009
    Posts
    1,272
    Quote Originally Posted by asmar View Post
    Why not creating a mailing list with all them and just email that list?
    Straight to the point! I should say
    nujinini
    Linux User #489667

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •