Koozali.org: home of the SME Server

Need to have admin emails sent to user group

Offline lfrankli

  • *
  • 10
  • +0/-0
Need to have admin emails sent to user group
« on: October 15, 2007, 06:56:44 PM »
I'd like to have all system generated emails going to admin@server sent to usergroup@server. I'm new to SME 7.x and I want to do this with out breaking anything.

I attempted to create Pseudonym named 'root' but got the error 'Error: That name is in use You cannot create a pseudonym with that name.'

Which alias file will I need to edit? I've looked at /etc/aliases and thought about adding "admin: usergroup", but again, I do not wish to break the server, the users get cranky when that happens.  :lol:

The usergroup I'd like to have receive admin emails will only contain administrators.


Thanks in advance,

Lance

Offline jfarschman

  • *
  • 406
  • +0/-0
Re: Need to have admin emails sent to user group
« Reply #1 on: October 15, 2007, 07:03:54 PM »
Lance,

  Take a look at the dropdown box in the general email settings "Change email delivery settings". 

  I'd create a group, add everyone you want into that group and adjust the redirect under "Change email delivery settings"

  Changing the alias file is tricky because it's auto generated by they system and would require some work with templates.

  Hope this helps.
Jay Farschman
ICQ - 60448985
jay@hitechsavvy.com

Offline lfrankli

  • *
  • 10
  • +0/-0
Re: Need to have admin emails sent to user group
« Reply #2 on: October 15, 2007, 07:37:13 PM »
Thanks for the fast reply,
  Take a look at the dropdown box in the general email settings "Change email delivery settings". 

I have looked here, but the only setting that I can change to my user group is "E-mail to unknown users :", which I have already done. I'm running SME 7.

I hope I'm not sounding too redudnent, but I need emails sent to "root@server", "admin@server", "postmaster@server", etc... (Any and all administrative notices) sent to "it_admins@server"(my administrative user group).

I'd like to have the administrators only open their email and not have to monitor a second inbox.  Would it be possible to set up an auto forward of all admin emails?

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Need to have admin emails sent to user group
« Reply #3 on: October 15, 2007, 08:30:38 PM »
Thanks for the fast reply,
I have looked here, but the only setting that I can change to my user group is "E-mail to unknown users :", which I have already done. I'm running SME 7.

I hope I'm not sounding too redudnent, but I need emails sent to "root@server", "admin@server", "postmaster@server", etc... (Any and all administrative notices) sent to "it_admins@server"(my administrative user group).

I'd like to have the administrators only open their email and not have to monitor a second inbox.  Would it be possible to set up an auto forward of all admin emails?
If you have done everything properly you would have created a group with whatever name you like and added 'Domain Admins' to the group description, this would map your admin group to the Windows Domain Admins group.

The only thing you after that need to do is to open the psuedonyms panel and modify the admin@, postmaster@ and abuse@ (and all others pointing to Administrator) to send the mail to your admin group instead of to Administrator and all admins should receive a copy of the email.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline lfrankli

  • *
  • 10
  • +0/-0
Re: Need to have admin emails sent to user group
« Reply #4 on: October 15, 2007, 08:56:09 PM »
Thanks cactus,

I've changed the description of the group to 'Domain Admins', though I'm not running a windows domain yet, the server is the master DC, and it did not occur to me that that would also affect email.

Now to wait for an admin email notification...I'll post the results when they happen.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Need to have admin emails sent to user group
« Reply #5 on: October 15, 2007, 08:59:05 PM »
Thanks cactus,

I've changed the description of the group to 'Domain Admins', though I'm not running a windows domain yet, the server is the master DC, and it did not occur to me that that would also affect email.

Now to wait for an admin email notification...I'll post the results when they happen.
You can just try by sending an email to abuse or postmaster to try...
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline lfrankli

  • *
  • 10
  • +0/-0
Re: Need to have admin emails sent to user group
« Reply #6 on: October 15, 2007, 09:40:13 PM »
Thanks again,

All is working!

Test email sent to postmaster@fqdn.com from an outside email account and all members of the user group (Domain Admins) received the email.


Thank you all for your help on this!

I have gone back to the administration manual and looked at chapter 9 :http://wiki.contribs.org/SME_Server:Documentation:Administration_Manual:Chapter9#Groups

I did not see any mention about admin email and describing a group as 'Domain Admins'. I thought I missed it the first time through. How do we get that added, or is it worth mentioning?

And to play "devil's advocate", will this open the server up to unnecessary security holes?

Offline jfarschman

  • *
  • 406
  • +0/-0
Re: Need to have admin emails sent to user group
« Reply #7 on: October 15, 2007, 09:47:11 PM »
Lance,

  You only changed were email is delivered right?  I don't see any holes there.
Jay Farschman
ICQ - 60448985
jay@hitechsavvy.com

Offline lfrankli

  • *
  • 10
  • +0/-0
Re: Need to have admin emails sent to user group
« Reply #8 on: October 15, 2007, 10:25:13 PM »
Yes, but I just wanted to be sure that the Domain Admin group does not have unnecesary access to the server, call me parinoid!

I'm only attempting to share information with the admin group and want to be sure that the keys to the kingdom (the SME server and the heart and sole of our network) stay in trusted hands (two or three people).

Offline jfarschman

  • *
  • 406
  • +0/-0
Re: Need to have admin emails sent to user group
« Reply #9 on: October 15, 2007, 10:31:13 PM »
Lance,

  At this point, it's just a group regardless of the name you gave it.  You'd have to modify the ibays giving this group special permissions, or modify the config files directly to open things up.

 
Jay Farschman
ICQ - 60448985
jay@hitechsavvy.com

Offline lfrankli

  • *
  • 10
  • +0/-0
Re: Need to have admin emails sent to user group
« Reply #10 on: October 15, 2007, 11:29:50 PM »
Thanks for squashing the security parinoia!


Offline raem

  • *
  • 3,972
  • +4/-0
Re: Need to have admin emails sent to user group
« Reply #11 on: October 16, 2007, 12:29:07 AM »
lfrankli

The simplest answer for forwarding admin type mails is to create the group, add users to the group, and then edit the User panel for the admin user to forward all email for admin to groupname@domain. This would be mentioned in the Groups & User sections of the Manual.
...

Offline lfrankli

  • *
  • 10
  • +0/-0
Re: Need to have admin emails sent to user group
« Reply #12 on: October 16, 2007, 01:44:21 AM »
Thank you.

I feel so foolish for not seeing the simple answer to begin with!

Thanks for everyones help on this.


Offline lfrankli

  • *
  • 10
  • +0/-0
Re: Need to have admin emails sent to user group
« Reply #13 on: October 16, 2007, 05:36:37 AM »
Update:

After modifying the user admin to forward email to the Domain Admins, I had to go back and remove the user admin from the Domain Admins group and chang the Pseudonyms back to admin due to the previous setting causing email loops.  Everything works well now and RayMitchell's suggestion was the key that I had missed from the start. Thank all of you again for your suggestions!