cancel
Showing results for 
Search instead for 
Did you mean: 

Sendmail Relay issue

SOLVED
Go to solution
Griselda Sanchez
Frequent Advisor

Sendmail Relay issue

Hi
I read this threat http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1038262.
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 sendmail.cf on BOX2, and on the BOX1 I configured the /etc/mail/sednmail.cw the BOX2 as a allowe host that can send mail to BOX1, but it didn't work.
Anyone can help me.
thanks
6 REPLIES
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
Solution

Re: Sendmail Relay issue

So - box1 is working fine right?

Okay.

Did you setup an access.db?

in /etc/mail/access

box2.itsdomain.com RELAY

tab between box2.itsdomain.com and RELAY

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

Also, from box2 do a test:

sendmail -v -d8 -d38 you@yourdomain.com

type some text

.


Post the output...

Rgds...Geoff



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

hi,

- 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

HTH
Kasper
It depends
Griselda Sanchez
Frequent Advisor

Re: Sendmail Relay issue

Hi, here are the error messages on servers

BOX1
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, arg1=mxzt@jzlcocw0.delphiauto.com>, relay=wzmxzt@jzlcocw0.mxchihjrz.northamerica.delp
hiauto.net [10.223.29.68], reject=501 Sender domain must exist
Jul 17 09:26:41 jucabf05 sendmail[22295]: JAA22295: from=auto.com>, size=0, class=0, pri=0, nrcpts=0, proto=ESMTP, relay=wzmxzt@jzlcocw0.
mxchihjrz.northamerica.delphiauto.net [10.223.29.68]


BOX2
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
rica.delphiauto.net>, relay=wzmxzt@localhost
Jul 17 09:38:43 jzlcocw0 sendmail[5188]: JAA05186: to=griselda.sanchez@delphi.co
m,griseldadelcarmen.sanchez@eds.com, ctladdr=wzmxzt (104/4), delay=00:00:02, xde
lay=00:00:02, mailer=relay, relay=jucabf05.mxchihjrz...ca.delphiauto.net. [130.1
76.238.205], stat=Data format error
Jul 17 09:38:43 jzlcocw0 sendmail[5188]: JAA05186: JAA05188: DSN: Data format er
ror
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 jzlcocw0.mxchihjrz.northamerica.delphiauto.net ESMTP Sendmail 8.9.3 (PHNE_25
184)/8.9.3; Mon, 17 Jul 2006 09:42:37 -0600 (MDT)
221 jzlcocw0.mxchihjrz.northamerica.delphiauto.net closing connection

Thanks
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..
Regards

Griselda Sanchez
Frequent Advisor

Re: Sendmail Relay issue

END