Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
cancel
Showing results for 
Search instead for 
Did you mean: 

configuring mail server

madhudeepan
Frequent Advisor

configuring mail server

how to configure the mail server..

i need to send alerts from syslog to my local mail id.

4 REPLIES
Rohak
Advisor

Re: configuring mail server

First check sendmail process is running or not.
ps -ef|grep sendmail

or start
/sbin/init.d/sendmail start

and add your relay server in sendmail.conf file
use elm to try to send email from any user.
http://www.docs.hp.com/en/5991-6611/ch02s01.html
see the link also
rariasn
Honored Contributor

Re: configuring mail server

Hi madhudeepan,

- Modify file /etc/sendmail.cf

Change de line:

#Dj$w.Foo.COM

Dj$w.yourdomain.com

- Modify file /etc/rc.config.d/mailservs

export SENDMAIL_SERVER=1

- Execute:

/sbin/init.d/sendmail start

Rgs,





rariasn
Honored Contributor

Re: configuring mail server

Hi,

- Modify /etc/syslog.conf file

For example, the configuration file:

kern,mark.debug /dev/console
mail.debug /var/adm/syslog/mail.log
*.info;mail.none /var/adm/syslog/syslog.log
*.alert /dev/console
*.alert root,eric,kridle
*.emerg *
*.emerg @admin

logs all kernel messages and 20 minute marks onto the system console, all mail system messages to /var/adm/syslog/mail.log, and all messages at info and above, except mail messages, to the file /var/adm/syslog/syslog.log. Messages at alert and above are logged to the console and to the users root, eric, and kridle if they are loggedin. emerg messages are written to all logged-in users' terminals, and forwarded to the host admin.

- To make syslogd, re-read its configuration file, send it a HANGUP signal:

kill -HUP `cat /var/run/syslog.pid`


Rgs,
madhudeepan
Frequent Advisor

Re: configuring mail server

hi

I need to forward the mails to my company mail id ,, not to root or user who logged in..