Operating System - HP-UX
1832757 Members
3124 Online
110045 Solutions
New Discussion

Configuring Sendmail for a domain

 
Preet Dhillon
Advisor

Configuring Sendmail for a domain

Hi People,

I'm trying to configure sendmail on my HP server to send mail to my Internet email address i.e. user@domain.co.uk

I've tried the following command :
elm -s "File logfile.log" user@domain.co.uk < logfile.log
This does not work.

If I try
elm -s "File logfile.log" username < logfile.log

it works OK but sends it to my UNIX mailbox.

Basically I've got some automated scripts which run each day and I'd like to be emailed at my corporate email address when they finish
running.

Can anyone help ?

Many thanks in advance, peeps :-)
Nothing succeeds like excess
4 REPLIES 4
Laurent Paumier
Trusted Contributor

Re: Configuring Sendmail for a domain

Does your server have connectivity to the internet ? If you want to send email directly to the internet, your server needs to be routed to the outside and must have access to a DNS server. Another solution would be to define a smart relay in your sendmail.cf.
Frank Li
Trusted Contributor

Re: Configuring Sendmail for a domain

1.First your HP box can connect to outside , you can test it with "ping www.cisco.com"

2.you can use :
%sendmail -v user@domain.com
for send a test mail

3.To check whether the mail has been sent out,run the command on the mail server
mailq .
Hi Friend
someone_4
Honored Contributor

Re: Configuring Sendmail for a domain

Considering you can send mail out to your network or the internet.
This will work.
filename is a file that you will be emailed
what ever is in that file will be in the email you get.
just add this line to the end of your script:

cat filename |mailx -s "subject line will read" youremail@atyourdomain.com

to send the same file to your unix user name:
cat file1 |mailx -s "subject" user@localhost

if you want every email that you get in your unix box to go to your email set up a
.forward file in your home dir.
and all it has to have is the email you want all your emails forwarded. one line per email address..

Richard






someone_4
Honored Contributor

Re: Configuring Sendmail for a domain

opps when i said ..
to send the same file to your unix user name:
cat file1 |mailx -s "subject" user@localhost

file1 should be filename if you want to send the same file .. as the first example.

Richard