Operating System - HP-UX
1837650 Members
2876 Online
110117 Solutions
New Discussion

send mail with mailx to external mail

 
Jose_129
Regular Advisor

send mail with mailx to external mail

As I form in server HP with SO HPUX 11i generated mail with mailx is sent to external mail, for example yahoo.com
Change password in way single user, beginning in multiuser way console
7 REPLIES 7
Con O'Kelly
Honored Contributor

Re: send mail with mailx to external mail

Hi Jose

You need to edit the /etc/mail/sendmail.cf file and put an entry for your relay host.

Set the DS parameter as follows:
DS

For example if your mail server is called mailhost.xyz.com, set the following in sendmail.cf file:
DSmailhost.xyz.com

Ensure that the mail server hostname can be resolved.

Cheers
Con
Steven E. Protter
Exalted Contributor

Re: send mail with mailx to external mail

Here is how I script it with cron:

/usr/contrib/bin/itool.weekly 2>&1 | mailx -s "weekly data itool copy" sprotter@investmenttool.com

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Jose_129
Regular Advisor

Re: send mail with mailx to external mail

No send mail from HPUX to mail yahoo
Change password in way single user, beginning in multiuser way console
Michael Steele_2
Honored Contributor

Re: send mail with mailx to external mail

echo "test" | mailx -s "test subject" you@yahoo.com
Support Fatherhood - Stop Family Law
Jose_129
Regular Advisor

Re: send mail with mailx to external mail

what do it?
Change password in way single user, beginning in multiuser way console
Bill Hassell
Honored Contributor

Re: send mail with mailx to external mail

You need to look at the mail log at /var/adm/syslog/mail.log where you'll see your mail message logged and the results. Most common problems: unable to qualify my own domain name, remote mail server cannot be resolved and remote mail server does not accept mail relays.

#1: This is a warning that the DJ option in /etc/mail/sendmail.cf has not been set.See the comments in sendmail.cf about dj.

#2: test this: nslookup mailserver (if that fails, your DNS service must be updated.

#3: The mail server specified will not accept mail relays.


Bill Hassell, sysadmin
Thayanidhi
Honored Contributor

Re: send mail with mailx to external mail

Hi,

for me it look like your SMTP gate way (mail server) has to enabled
to accept the relay from hp-ux server.

I had similar problem. I could send internal mails (same domain),
but I can't send out side mails. Once the relay is enabled in Exchange
and it was OK.

TT
Attitude (not aptitude) determines altitude.