Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

sendmail on HP-UX 11.00 : Help me!

32 views
Skip to first unread message

Quy NGUYEN DAI

unread,
Dec 9, 2002, 6:41:29 AM12/9/02
to
Hi all,

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

Ralf Hildebrandt

unread,
Dec 9, 2002, 7:12:47 AM12/9/02
to
On 2002-12-09, Quy NGUYEN DAI <q...@belgacom.net> wrote:
> Hi all,
>
> I define "test.mc" like:
>
> divert(-1)
> include(`/usr/newconfig/etc/mail/cf/m4/cf.m4')
> OSTYPE(`hpux10')
> FEATURE(`nullclient',`smtp.mydomain.net')dnl

Try:
FEATURE(`nullclient',`192.168.254.11')dnl

Frank Thyes

unread,
Dec 9, 2002, 7:23:10 AM12/9/02
to
Quy NGUYEN DAI <q...@belgacom.net> wrote:
> Hi all,
>
> 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
>

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!

0 new messages