1833012 Members
2775 Online
110048 Solutions
New Discussion

mail

 
Stefano_10
Advisor

mail

What i have to configure to send e-mail out of my unix system?
7 REPLIES 7
Chuck J
Valued Contributor

Re: mail

You have to ensure the sendmail daemon is running

# /sbin/init.d/sendmail start

HP-UX should automatically pick up an SMTP server. I configured nothing special on my workstation and it send and receives mail fine.

Chuck J
Chuck J
Valued Contributor

Re: mail

You could also send a test from the command line:

# echo Testing | mailx -s "Test email" you@domain.com

Chuck J
Niraj Kumar Verma
Trusted Contributor

Re: mail


Hi,

To configure sendmail use

# vi /etc/mail/sendmail.cf

and then start the sendmail

# /sbin/init.d/sendmail start

see man sendmail for more info.

-Niraj
Niraj.Verma@philips.com
Stefano_10
Advisor

Re: mail

is it necessary that the server is inserted into a domain?
Chuck J
Valued Contributor

Re: mail

Well mail is based on sending via DNS so yes this is preferable.

Please assign points to any answers that are helpful.

Thanks. Chuck J
Jeff Schussele
Honored Contributor

Re: mail

Hi Stefano,

You have to do at least 3 things:

1) Edit sendmail.cf for proper domain name & smart relay system
A) Domain name is the Dj parameter in the file - Example:
Dj$w.company.com
The $w is required
B) The smart relay is the DS parameter in the file - Example
DSmailsrvr.company.com
OR
DSmailsrvr.$m
This is the server that your server will send mail to if it's not local mail.

2) Edit the sendmail.cw file to designate the systems that this server will accept mail for.
Should look like

localhost
hostname
hostname.company.com

3) Start sendmail after these changes
/sbin/init.d/sendmail start

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!