1834247 Members
2576 Online
110066 Solutions
New Discussion

Re: mail configuration

 
ravi_7
New Member

mail configuration

how to do the mail configuration in hp-ux 11.0
send mail & read mail exact syntax i want

2 REPLIES 2
Shahul
Esteemed Contributor

Re: mail configuration


Hi

I can give U basic steps for configuring sendmail here.

configuration for Send mail server.

1. Sets SENDMAIL_SERVER varaible in /etc/rc.config.d/mailservs to one.

2. Create /etc/mail/sendmail.cf and /etc/mail/aliases with default configuration.

3. Creates the file /etc/mail/sendmail.cw, this contains the hostname and fully qualified hostname of the system.

4. #/dbin/inint.d/sendmail start
This generates the aliases database from alias file and generated list will be kept in /etc/mail/aliases.db

5. #/usr/sbin/sendmail -bd -q 30m

For detailed information U can go thru the book "Administering Internet Services.


Best of luck

Shahul
Michael Tully
Honored Contributor

Re: mail configuration

Hi Ravi,

You need to do a few things:

You need to make sure that your DNS is working
depending on your setup, but most people use
their own /etc/hosts file first and their DNS
second.

# cat /etc/nsswitch.conf
hosts: files [NOTFOUND=continue UNAVAIL=return TRYAGAIN=return] dns [NOTFOUND=
return UNAVAIL=continue TRYAGAIN=return]

# cat /etc/resolv.conf
nameserver 10.53.100.2
nameserver 10.53.100.3
domain yourdomain.com

Set up local aliases in /etc/mail/aliases
sysadmin: jon.doe@yourdomain.com
dbadmin: jane.doe@yourdomain.com
# newaliases

Add entries similar to this at the end of /etc/mail/sendmail.cw

localhost
host1.yourdomain.com

Make changes to your /etc/mail/sendmail.cf file

############################################################
### Localizable options ###
############################################################

# aliases for local host
Cw
# file containing names of hosts for which we receive email
Fw-o /etc/mail/sendmail.cw

# my official domain name
#Dj$w.Foo.COM
#Dj


Restart sendmail.
# /sbin/rc2.d/S540sendmail stop
# /sbin/rc2.d/S540sendmail start

To test try and send mail to yourself
# cat /etc/resolv.conf | elm -s "test" yourname@yourdomain.com

Beware these may not not work on your network, but it is
a starting point.

Regards
Michael

Anyone for a Mutiny ?