Operating System - HP-UX
1755700 Members
3366 Online
108837 Solutions
New Discussion юеВ

Re: Send email to external server

 
Rafael Massuquetto
Occasional Contributor

Send email to external server

I'm trying send a email from HP-UX to the internal mail server, but no success.
I set the /etc/hosts file the name of server and internal IP like
192.168.0.1 www.company.com.br
3 REPLIES 3
James R. Ferguson
Acclaimed Contributor

Re: Send email to external server

Hi Rafael:

Configure the "smart relay" macro in '/etc/mail/sendmail.cf'. Make sure that your DNS works and you should be able to do:

# mailx -s "Hello!" rafael@company.com.br < /dev/null

The 'DS' macro should look something like this:

DSexchange.company.com.br

Regards!

...JRF...
Steven Schweda
Honored Contributor

Re: Send email to external server

> I'm trying send a email [...]

_How_, exactly? As usual, showing actual
commands with their actual output can be more
helpful than vague descriptions and
interpretations.

> [...] but no success.

Not a very useful description.

> [...] name of server [...]

Is that the "internal mail server"?

Are you running sendmail on the HP-UX system?
Abid Iqbal
Regular Advisor

Re: Send email to external server

Hi,
First update the /etc/hosts
host_ip hostname hostname
smart-relay_ip relay fqdn relayfqdn
then edit /etc/mail/sendmail.cf
Dj$w.
DS
uncomment the line
# R$* < @ $* > $* $: $>check_local <$m> $1 < @ $2 > $3 Local Domain?
Edit /etc/mail/sendmail.cw
add host name of the server.
Edit /usr/newconfig/etc/mail/submit.cf
DS
Create a new group smmsp with gid 25
Create a new user smmsp with uid 25 and primary group as smmsp
make a dir /var/spool/clientmqueue
change the ownership to smmsp
restart send mail daemon and test
echo test | sendmail -v user@domain.com