LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 07-22-2008, 02:11 PM   #1
b1f30
Member
 
Registered: Nov 2007
Location: GMT -5, who wants to know
Distribution: Gentoo, Debian, BSD, Slack
Posts: 119

Rep: Reputation: 15
Question Sendmail, Solaris 10


All - I want to use Sendmail to send root's email to usera, userb, userc.

What's a quick and dirty approach? Something I can at least test and then maybe throw into a cron job? I'm not very experienced with Sendmail/Solaris, but not quite total n00b.

Thanks!
 
Old 07-22-2008, 02:58 PM   #2
gparrish
LQ Newbie
 
Registered: Apr 2006
Posts: 13

Rep: Reputation: 0
Have you tried this or do you need something tp happen with sendmail specifically. I think sendmail will process this just all done as local mail.


$ vi /etc/mail/aliases

Add:
root: usera,userb,userc


$ newaliases
 
Old 07-22-2008, 03:21 PM   #3
b1f30
Member
 
Registered: Nov 2007
Location: GMT -5, who wants to know
Distribution: Gentoo, Debian, BSD, Slack
Posts: 119

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by gparrish View Post
Have you tried this or do you need something tp happen with sendmail specifically. I think sendmail will process this just all done as local mail.


$ vi /etc/mail/aliases

Add:
root: usera,userb,userc


$ newaliases
Thank you for your reply.

Let me try to be more specific: About every 10 minutes, I would like to have root's local mail sent to usera@company.com, userb@company.com, userc@company.com - if that makes more light of what I'm trying to do. It's simple admin stuff I know, but I only really know enough Sendmail/Solaris to be dangerous and nothing more.
 
Old 07-22-2008, 03:22 PM   #4
b1f30
Member
 
Registered: Nov 2007
Location: GMT -5, who wants to know
Distribution: Gentoo, Debian, BSD, Slack
Posts: 119

Original Poster
Rep: Reputation: 15
Also - how to send mail via command line? For instance:

# sendmail -s test usera@company.com

Is that the proper syntax, etc?

Thanks!
 
Old 07-23-2008, 10:07 AM   #5
gparrish
LQ Newbie
 
Registered: Apr 2006
Posts: 13

Rep: Reputation: 0
To send email every 10 minutes use cron. To send all root email to these users just redirect the root email destination using the aliases file or a .forward file.

Again first update the aliases file as follows:

root: usera@company.com,userb@company.com,userc@company.com

Then send test email and see the results you get.

echo test | mail root
echo test | mailx -s 'test mail' root

If this fails review the log files under /var/log/ or /var/adm/
 
Old 07-23-2008, 12:56 PM   #6
b1f30
Member
 
Registered: Nov 2007
Location: GMT -5, who wants to know
Distribution: Gentoo, Debian, BSD, Slack
Posts: 119

Original Poster
Rep: Reputation: 15
Code:
Jul 23 12:49:07 solarisserver sendmail[8668]: [ID 702911 mail.crit] My unqualified host name (solarisserver) unknown; sleeping for retry
Looks like the box needs a FQDN? Again - pretty much a Sendmail n00b.

Thanks for any/all assistance.
 
  


Reply

Tags
sendmail, solaris


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail access file in Solaris 10 sunnyyang Linux - Newbie 1 07-06-2008 08:54 PM
sendmail log file at solaris 10 LinuxLover Solaris / OpenSolaris 2 10-11-2007 05:11 AM
compiling and configuring sendmail on solaris 9 linux_ub Linux - Networking 1 11-09-2004 05:17 PM
sendmail on solaris problems chrisfirestar Linux - General 2 08-10-2004 01:11 PM
Sendmail aliases nis problem in solaris simquest Linux - General 1 11-01-2002 09:54 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 06:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration