Jump to content
 English      
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
     Forums advanced search
HP.com Home
IT Resource Center Forums > HP-UX > general

Sendmail 553 malformed address error

» 

IT Resource Center

» Login
» Register
» My profile
» Search knowledge base
» Forums
» Patch database
» Download drivers, software and firmware
» Warranty check
» Support Case Manager
» Software Update Manager
» Training and Education
» More maintenance and support options
» Online help
» Site map

Member icons
 
 HP moderator  HP moderator
 Expert in this area  Expert in this area
Member status
ITRC Pro ITRC Pro
250 points
ITRC Graduate ITRC Graduate
500 points
ITRC Wizard ITRC Wizard
1000 points
ITRC Royalty ITRC Royalty
2500 points
ITRC Pharaoh ITRC Pharaoh
7500 points
Olympian Olympian
20000 points
1-Star Olympian 1-Star Olympian
40000 points
2-Star Olympian 2-Star Olympian
80000 points
»  How to earn points
»  Support forums FAQs
Question status
Magical answer Magical answer
Message with a response that solved the author's question
Favorites status
Add to my favorites Add to my favorites
Delete from my favorites Delete from my favorites
This thread has been closed Thread closed
 

Content starts here
   Create a new message    Receive e-mail notification if a new reply is posted  Reply to this message
Author Subject: Sendmail 553 malformed address error      Add to my favorites
Mark Bak
Jun 25, 2003 16:23:56 GMT   

I started getting a number of emails though our server that are bombing out with the 553 malformed address error. Here is an example: 553 malformed address: <NPD.Survey.@emailfactory.net>

I know that the "." before the "@" symbol is causing the error but I don't know how to configure the sendmail.cf file to accommodate for this error.
Note: If you are the author of this question and wish to assign points to any of the answers, please login first.For more information on assigning points ,click here


Sort Answers By: Date or Points
Steven E. Protter Expert in this area This member has accumulated 80000 or more points
Jun 25, 2003 16:41:06 GMT  3 pts

Quick fix.

Change the Dj directive in sendmail.cf

Djhostname

Take out any dots and whatnot.

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

This should do it.

SEP
David Rodman
Jun 26, 2003 11:59:57 GMT  3 pts

This post raises a lot of questions for me.
Is "NPD.Survey." a legitimate username for you?
What is it that you want sendmail to do? Deliver as is, or rewrite the address?
One last (retorical) question is... Why are you trying to fix this in sendmail? (and not where the malformed address is being generated)

Go here, and read the section on localpart
http://www.cs.tut.fi/~jkorpela/rfc/822addr.html
Mark Bak
Jun 30, 2003 17:49:43 GMT    N/A: Question Author

Sorry, I obviously did not provide enough information.
These are not valid address on our systems. They are spam from outside sources to internal email addresses.
My systems are set to relay mail only from our domains. These emails are somehow getting through and would not be relayed except they fail with the 553 error before it gets to the decide not to relay them. Anyway, I'm tired of having to deal with them. I thought there was a way to modify the sendmail.cf file in Ruleset 3 or 4 to correct for this error. Thus I would not see them anymore.
Steven E. Protter Expert in this area This member has accumulated 80000 or more points
Jun 30, 2003 18:18:12 GMT  10 pts

You should be able to modify sendmail.cf via macros in sendmail.mc to reject all mail that is not from a valid, pubically resolvable mail server.

The place to start is here, followed by research on http://www.sendmail.org and http://tldp.org and http://www.redhat.com The red hat site has some secure mail configuiration docs that should prove pretty useful to you.

There is more work in the Linux world on this than in the HP-UX world.

The good news is in late July, I'm inheriting a D320 box. The actual intent is self education, but what I plan to do for education is set up a web/mail serving doing exactly what you want to do.

Not a fast answer, but an answer none the less.

SEP
Christopher Caldwell Expert in this area This member has accumulated 2500 or more points
Jun 30, 2003 18:35:41 GMT  5 pts

5XX series messages should generate a reject; that is your relay should never accept the mail to begin with.

If you're front-ending an internal MX, and the internal MX is rejecting the relayed mail, resulting in queued mail on the front-end server, then your access rules on the front-end are too lax.

Give us version, etc. for sendmail on the front-end host, and we can make suggestions.
William Wong
Jun 30, 2003 18:41:14 GMT  5 pts

You didn't specify which version of sendmail you are running. However if you wish to block spam you might try the following changes to the sendmail ruleset:

FR-o /etc/sendmail.cR

Scheck_rcpt
# anything terminating locally is ok
R< $+ @ $=w > $@ OK
R< $+ @ $=R > $@ OK

# anything originating locally is ok
R$* $: $(dequote "" $&{client_name} $)
R$=w $@ OK
R$=R $@ OK
R$@ $@ OK

# anything else is bogus
R$* $#error $: "550 Relaying Denied"

The caveat is mail must originate or terminate locally (on this host), with exceptions made for hosts listed, one per line, in /etc/sendmail.cR. (In this incarnation, this ruleset does not allow relaying within your domain, except for the hosts listed in /etc/sendmail.cR. Note carefully, you must list fully qualified host names for each host you wish to allow relaying.
Mark Bak
Jun 30, 2003 20:43:38 GMT    N/A: Question Author

Thanks All, since I am already using the access file to limit the relay, it should have been obvious to me to try there first. Sometimes you grab the shotgun when a fly swatter would do fine.
 
Create a new message    Receive e-mail notification if a new reply is posted   Reply to this message
 
 
Printable version
Privacy statement Using this site means you accept its terms
© 2009 Hewlett-Packard Development Company, L.P.