I define "test.mc" like:
divert(-1)
include(`/usr/newconfig/etc/mail/cf/m4/cf.m4')
OSTYPE(`hpux10')
FEATURE(`nullclient',`smtp.mydomain.net')dnl
undefine(`ALIAS_FILE')dnl
Where "smtp.mydomain.net" is our SMTP server.
We have not DNS server, so all IP in local netwrok were added in /etc/hosts and
we asked also search in this file firstly.
After rebuild sendmail.cf via:
# m4 test.mc > sendmail.cf
# cp sendmail.cf /etc/mail/sendmail.cf
# kill -HUP <sendmail ID>
Try:
# echo "test" | mail m...@mydomain.net
# mailq
gives me always
Mail Queue (1 requests)
--Q-ID-- --Size-- -----Q-Time----- ------------Sender/Recipient------------
MAA02604 7 Mon Dec 9 12:22 root
(Deferred: Name server: smtp.mydomain.net: host name lookup fai)
q...@mydomain.net
When I check:
# nslookup smtp.mydomain.net
Using /etc/hosts on: hp01
looking up FILES
Name: smtp.mydomain.net
Address: 192.168.254.11
Aliases: smtp
How to delivre all message to our SMTP server ?
I tried:
# /usr/sbin/sendmail -q
but it does not work at all.
Please help !
Thanks in advance,
Quy NGUYEN DAI
Try:
FEATURE(`nullclient',`192.168.254.11')dnl
Follow the instructions to configure sendmail without DNS
1. Backup your /etc/mail/sendmail.cf
2. /usr/newconfig/etc/mail/sendmail.cf /etc/mail/.
3. vi /etc/mail/sendmail.cf
Dj$w. # uncomment & change Dj$w.FOO.COM to Dj$w.
DSyour.mail.relay # add your smart relay
4. vi /etc/hosts
ip host host. #add the alias host.
5. vi /etc/nsswitch.conf
hosts: files
aliases: files
6. Restart sendmail
7. echo test | sendmail -v yo...@user.com
Regards
Frank
--
Religion kill humans!