1753641 Members
5263 Online
108798 Solutions
New Discussion юеВ

Re: How to setup SMTP.

 
SOLVED
Go to solution
Mousa55
Super Advisor

How to setup SMTP.

Hi All,

I want to setup SMTP or mailx to send mail from server to E-mail in my HP-UX 11.11, and I am set the my exchange server name after DS
#"Smart" relay host (may be null)
DS****
and I Restart the sendmail daemon
# /sbin/init.d/sendmail stop
# /sbin/init.d/sendmail start
and I when try to test send e-Mail from server to my mail this message is appeared
"WARNING: local host name (ruxdb02) is not qualified; fix $j in config file
/etc/mail/aliases: 7 aliases, longest 9 bytes, 88 bytes total
sendmail"
from where i can configured the $j and In any line.

and tell me if any another steps to step SMTP.

thanks
20 REPLIES 20
Jeeshan
Honored Contributor
Solution

Re: How to setup SMTP.

check and follow the below steps to configure sendmail

1. configure /etc/resolv.conf with domain name, nameserver IP
2. /sbin/init.d/sendmail stop
3. configure macro DS to DSexchange_relay_name
- configure macro Dj$w. to Dj$w.
- put to /etc/hosts (don't forget the dot at the end)

4. - start end stop sendmail to take modifications in sendmail.cf active.
5. - configure exchage to accept relay this host.

6. Save and quit sendmail.cf
7./sbin/init.d/sendmail stop
8./sbin/init.d/sendmail start
9. echo test | sendmail -v
a warrior never quits
Mousa55
Super Advisor

Re: How to setup SMTP.

Hi All,

i don't have the /etc/resolv.conf file and how i configured where i can set the domain name and nameserver IP in this file

thanks
Mousa55
Super Advisor

Re: How to setup SMTP.

Hi ahsan,

you mean in /etc/hosts file you want to me write in this way

10.xx.xx.xx mail.sp.com mail.sp.com.sp.local

thanks
Mousa55
Super Advisor

Re: How to setup SMTP.

Hi All,

i am executing all the steps but the problem is still i can't receive e-mail from a server, although i configure all a file
please help me i need this option

# echo test | sendmail -v mymail@sp.com
sp.com: Name server timeout
mymail@sp.com... Transient parse error -- message queued for future delivery
mymail@sp.com... queued

thanks
Jeeshan
Honored Contributor

Re: How to setup SMTP.

if you don't have resolv.conf file than you need to create it manually.

and /etc/hosts file entry would be set as per your environment.
a warrior never quits
Jeeshan
Honored Contributor

Re: How to setup SMTP.

mail server cannot query about your domain. check in /etc/resolv.conf file
a warrior never quits
Mousa55
Super Advisor

Re: How to setup SMTP.

Hi ahsan,

what is the syntax i can write domain name and nameserver IP in /etc/resolv.conf file

thanks
Jeeshan
Honored Contributor

Re: How to setup SMTP.

/etc/resolv.conf syntax

domain
nameserver
nameserver

example

domain domain.com
nameserver x.x.x.x
nameserver x.x.x.x
a warrior never quits
Jeeshan
Honored Contributor

Re: How to setup SMTP.

problem resolved?

what about points??
a warrior never quits