General
cancel
Showing results for 
Search instead for 
Did you mean: 

Sendmail works great except for internet (outside) emails

SOLVED
Go to solution
Laurie_2
Advisor

Sendmail works great except for internet (outside) emails

Hi All,

From our HP-UX 11.0 we can email to our mail
server (Outlook). We have the DSN defined on our system.

Here are the error message from
/var/adm/syslog/mail.log:

Feb 6 13:41:20 godzilla sendmail[22913]: NAA22910: to=laurieyoga@yahoo.com, ctl
addr=lauriek (468/120), delay=00:00:02, xdelay=00:00:02, mailer=esmtp, relay=mx2
.mail.yahoo.com. [64.157.4.82], stat=Data format error
Feb 6 13:41:20 godzilla sendmail[22913]: NAA22910: NAA22913: DSN: Data format e
rror

Yet I can do nslookup on stuff no problem:
nslookup yahoo.com
Using /etc/hosts on: godzilla

looking up FILES
Trying DNS
Non-authoritative answer:
Name: yahoo.com
Addresses: 216.115.108.245, 216.115.108.243

How come I can email to our mail server
and not to the outside world? We even tried
doing this with our fire wall down (now don't
be getting any idea's here). It's not the
firewall.

I have /etc/hosts and /etc/resolv.conf set up
correctly. Do you take my word here?

HEre is another version of the error:
>>> MAIL From: SIZE=90
<<< 501 Syntax error in parameters or arguments
501 laurieyoga@yahoo.com... Data format error

OK this is straight ascii text data, so it
should not be a data format error.

I have our /usr/share/lib/mailx.rc set up :

set append
set asksub
set askcc
set dot
set crt=21
set PAGER=more
set save
set hold
set keep
set encoding=8bit
set metoo
set charset=us-ascii <--- is this OK?

Thanks (my 4th day on the job so I want to fix
this and make a good impression :) )
Laurie



How can you make the world a better place
6 REPLIES
Uday_S_Ankolekar
Honored Contributor

Re: Sendmail works great except for internet (outside) emails

Hi,

You need to modify your sendmail.cf file in /etc/mail

In sendmail file look for DS entry by (/^DS )
then put the mailserver name infront of this

DSyourmailservername.

Restart sendmail by
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

And Wish you goodluck in your new job:)

-USA..
Good Luck..
Sanjay_6
Honored Contributor
Solution

Re: Sendmail works great except for internet (outside) emails

Hi Laurie,

Use a smart relay host. using the DS option in /etc/mail/sendmail.cf file. If you modify this file, restart sendmail,

/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

http://us-support3.external.hp.com/cki/bin/doc.pl/sid=806da5d0003bf43507/screen=ckiDisplayDocument?docId=200000045145919

Also add the ip address and the host name for your server in the relay host /etc/hosts file.

Hope this helps.

Regds
Laurie_2
Advisor

Re: Sendmail works great except for internet (outside) emails

OK email works get internally and still not
with the external world.

However, after I did what you suggest I do
not get any errors messages. Is now the
problem the mail server I'm using as an relay?
We are using MS Exchange server for our mail
server.

I sent an email from unix to yahoo account and
here is what syslog/mail.log says:

Feb 6 14:49:48 godzilla sendmail[956]: OAA00954: to=laurieyoga@yahoo.com, ctlad
dr=lauriek (468/120), delay=00:00:00, xdelay=00:00:00, mailer=relay, relay=mail.
park.edu. [204.185.202.251], stat=Sent (OK)

I got no email error messages back either, so
that is a good sign. I quess the problem is
with the Exchange server...Any thoughts...

Laurie Krumrey
How can you make the world a better place
Uday_S_Ankolekar
Honored Contributor

Re: Sendmail works great except for internet (outside) emails

Hi,

There should be a mail server which does SMTP connection to external world to receive/send outside mails.
If your mail server is mail.park.edu then it has reached up to that point.
Did you get e-mail on your yahoo account??

-USA..
Good Luck..
Kevin Wright
Honored Contributor

Re: Sendmail works great except for internet (outside) emails

Sending mail through your relay host still will not rewrite the headers so other mail servers will accept mail from your host..New anti spam rulesets force you to masquerade your hostname to just your domainname..
user@host.domain.com will not get accepted from MOST receiving mailservers unless host.domain.com is a publicly known hostname..probably not. so set your DM macro to DMdomain.com in sendmail.cf, then set CE to CEroot, then login as a user, and send an email, it will come from user@domain.com, and you will be able to send mail out.
Sanjay_6
Honored Contributor

Re: Sendmail works great except for internet (outside) emails

Hi Laurie,

Also have this entry in your /etc/mail/sendmail.cf file,

Dj$w.yourdomain.com

Also here is a thread that might help you with the exchange mail server if you still have some problem,

http://us-support3.external.hp.com/cki/bin/doc.pl/sid=9602e1b4190da32177/screen=ckiDisplayDocument?docId=200000056245768

Hope this helps.

Regds