Showing results for 
Search instead for 
Did you mean: 

Sendmail Relay issue

Go to solution
Griselda Sanchez
Frequent Advisor

Sendmail Relay issue

I read this threat
I need something like this, but I have dos HP-UX, lets call them BOX1 and BOX2. The BOX1 is on a public LAN, so I can use sendmail(here I have the "smart relay which is the one that sends the mails thru the internet), and BOX2 is on a private LAN, but the network group open the SMTP from BOX2 to BOX1, so right now they can see each other. That I want to do, is configure the BOX2 to send the mails to the BOX1, and then the BOX1 send those mails with the smart relay that already works.
So I configured DSBOX1 on the on BOX2, and on the BOX1 I configured the /etc/mail/ the BOX2 as a allowe host that can send mail to BOX1, but it didn't work.
Anyone can help me.
Ivan Ferreira
Honored Contributor

Re: Sendmail Relay issue

You should configure the DH option to make BOX2 a mailhub for BOX1.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Geoff Wild
Honored Contributor

Re: Sendmail Relay issue

So - box1 is working fine right?


Did you setup an access.db?

in /etc/mail/access RELAY

tab between and RELAY

makemap hash /etc/mail/access
restart sendmail....

Also, from box2 do a test:

sendmail -v -d8 -d38

type some text


Post the output...


Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Kasper Haitsma
Trusted Contributor

Re: Sendmail Relay issue


- what is the error reported in /var/adm/syslog/mail.log on both BOX1 and BOX2, right after a failed attempt, please post here

- what version run on either system, please post output of:
echo quit | sendmail -bs

- is BOX2 MX resolvable on BOX1?
box1> nslookup -q=mx box2

It depends
Griselda Sanchez
Frequent Advisor

Re: Sendmail Relay issue

Hi, here are the error messages on servers

Jul 17 09:26:23 jucabf05 sendmail[22291]: JAA22289: to=wzmxzt, ctladdr=root (0/3
), delay=00:00:01, xdelay=00:00:01, mailer=local, stat=Sent
Jul 17 09:26:41 jucabf05 sendmail[22295]: JAA22295: ruleset=check_mail,>, relay=wzmxzt@jzlcocw0.mxchihjrz.northamerica.delp [], reject=501 Sender domain must exist
Jul 17 09:26:41 jucabf05 sendmail[22295]: JAA22295:>, size=0, class=0, pri=0, nrcpts=0, proto=ESMTP, relay=wzmxzt@jzlcocw0. []

Jul 17 09:38:41 jzlcocw0 sendmail[5186]: JAA05186: from=wzmxzt, size=256, class=
0, pri=60256, nrcpts=2, msgid=<200607171538.JAA05186@jzlcocw0.mxchihjrz.northame>, relay=wzmxzt@localhost
Jul 17 09:38:43 jzlcocw0 sendmail[5188]: JAA05186:
m,, ctladdr=wzmxzt (104/4), delay=00:00:02, xde
lay=00:00:02, mailer=relay, [130.1
76.238.205], stat=Data format error
Jul 17 09:38:43 jzlcocw0 sendmail[5188]: JAA05186: JAA05188: DSN: Data format er
Jul 17 09:38:43 jzlcocw0 sendmail[5188]: JAA05188: to=wzmxzt, delay=00:00:00, xd
elay=00:00:00, mailer=local, stat=Sent

echo quit | sendmail -bs
220 ESMTP Sendmail 8.9.3 (PHNE_25
184)/8.9.3; Mon, 17 Jul 2006 09:42:37 -0600 (MDT)
221 closing connection

Griselda Sanchez
Frequent Advisor

Re: Sendmail Relay issue

Hi again!
It alredy works!!
I add the file /etc/mail/access on BOX2
box1 RELAY
And finally remove the DM on BOX2(becasue I had this configure) then the BOX1 accept the mails from BOX2 and sendit through the internet.

Thanks a lot..

Griselda Sanchez
Frequent Advisor

Re: Sendmail Relay issue