1851056 Members
2574 Online
104056 Solutions
New Discussion

Mailx Configuation

 
SOLVED
Go to solution
VICBUR1507
Frequent Advisor

Mailx Configuation

Hi Mates!

We have HP/ux 11.11 adn 11.23, we want to configure mailx so that we can send mail from root accout to our mailbox using smtp server. Our Mail server name is sbserd04.sbif.gov.ve, i was edit sednmail.cf file so add the following:
# "Smart" relay host (may be null)
DSsbserd04.sbif.gov.ve
We need another change????
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor

Re: Mailx Configuation

Hi:

Enabling the DS macro should do it.

Regards!

...JRF...
VICBUR1507
Frequent Advisor

Re: Mailx Configuation

Hi James,

Where do it??
Julián Aimar
Frequent Advisor
Solution

Re: Mailx Configuation

Hi, in /etc/mail/sendmail.cf DS, setting your smtp server

DS



After making changes:

# /sbin/init.d/sendmail stop
# /sbin/init.d/sendmail start

Make sure that DNS is set correctly (see /etc/resolv.conf and /etc/nsswitch.conf)

Buena suerte..!!!


JEA
Raj D.
Honored Contributor

Re: Mailx Configuation

Vicbur,

-Add the smtp server with the DS string in /etc/mail/sendmail.cf file:

# cat /etc/mail/sendmail.cf | grep ^DS

Example: DS10.120.5.1 #[where 10.120.5.1 is mail server ip]


- /usr/bin/killsm
- # cd /sbin/init.d ; ./sendmail start

- You can now send a sample mail and chek
# echo "Sample mail" | mailx -s "Test mail" youremail@domain.com



Hth,
Raj.


" If u think u can , If u think u cannot , - You are always Right . "
VICBUR1507
Frequent Advisor

Re: Mailx Configuation

Thanks Guys.....Its Work

I juts was configure de /etc/resolv.conf and the /etc/nsswitch.conf.

Thanks again