cancel
Showing results for 
Search instead for 
Did you mean: 

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
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
Mousa55
Super Advisor

Re: How to setup SMTP.

Hi All,

don't worry about a point, but the problem is still

and i am configured the /etc/resolv.conf

domain sp.local
nameserver IP_add_of_my_server
nameserver IP_of_exchange_server

thanks
Jeeshan
Honored Contributor

Re: How to setup SMTP.

big NO

syntax is

domain domain.com
nameserver x.x.x.x
nameserver x.x.x.x not exchange server name
a warrior never quits
Mousa55
Super Advisor

Re: How to setup SMTP.

Hi ahsan

domain domain.com
nameserver x.x.x.x which server (SMTP or ux server) what you mean with primary and secondary name server.

nameserver x.x.x.x not exchange server name

thanks
Jeeshan
Honored Contributor

Re: How to setup SMTP.

do you have any idea about what is the meaning of DNS or name server?

what role are you playing in your company?

i'm talking about name server, why did you think it would be mail server or another thing.

a warrior never quits
Jeeshan
Honored Contributor

Re: How to setup SMTP.

if you don't have any idea about DNS please start another thread, i'll make you clear what is that.
a warrior never quits
Mousa55
Super Advisor

Re: How to setup SMTP.

Hi ahsan,

no i not playing but I am not configured the DNS on my server

and the problem is still
sp.com: Name server timeout

thanks
Jeeshan
Honored Contributor

Re: How to setup SMTP.

ask your windows system admin or the guy
s who configure DNS in your company.

you need not to configure DNS if its already configured.
a warrior never quits
Mousa55
Super Advisor

Re: How to setup SMTP.

Hi

i mean the DNS is not configured on my hp server not on my company

thanks
Jeeshan
Honored Contributor

Re: How to setup SMTP.

where did you host your sp.com domain?
a warrior never quits
Jeeshan
Honored Contributor

Re: How to setup SMTP.

>>sp.com: Name server timeout


will appear unless your server would not resolve it.
a warrior never quits
Mousa55
Super Advisor

Re: How to setup SMTP.

Hi all

the problem it is resolved but it is take more along time when a message it is arrived

thanks