assuming ou are using /etc/hosts file as the lookup entry and not DNS , and you can see the mail server on your network :-
see if you can telnet to mail server on port 25
i.e. telnet mail_server 25
( if this fails then theres no point continuing , check if mailserver is listening on port 25 , and have access to it)
1. add the entry for mail server in /etc/hosts file
2. edit /etc/sendmail.cf
where it has DS
add in something like DSsmtp:smtp_mail
where smtp_mail is the netry in hosts file for mail
server
3. in /etc create a file netsvc.conf ( if not already there)
and add , hosts = local
4. restart sendmail
5. try sending test mail
At aix version 4 it required or preferred a fully qualifed hostname....
- To correct "warning: local hostname is not qualified." OR
"warning: local hostname doesn't have a domain":
Edit /etc/hosts, and find the line pertaining to the
TCP/IP hostname (not localhost). It will probably be
in this format:
[ip] [hostname]
Change it to this:
[ip] [hostname] [hostname].
The '.' forces sendmail to believe that the domain name is complete.
You can also add a .com to your hostname
What you need to do here is:
1. Edit your /etc/hosts file.. Change your machine name to urmachine.urdomain.com..where urdomain.com is ur domain name.
2. Restart Sendmail..
U wont get this error again..
To send mails outside your intranet, U will need a registered IP assigned to your machine.
By the way, If u need to send mails to internet as well as recieve mails from internet, then u need to have MX entry of your host in any of the public DNS.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.