There are several techniques that spammers use to get other's mail servers to send their mail. (The spammer's goal is to be able to send to the outside -- not just to the local accounts.) The following are some of the techniques used to try to get a mail server to relay mail. (Some other techniques include abusing form-to-mail CGIs on webservers.)
mail from: <nobody@third-party.bar> rcpt to: <nobody@third-party.bar>
mail from: <test@maps1.pa.vix.com> rcpt to: <nobody@third-party.bar>
mail from: <test@localhost> rcpt to: <nobody@third-party.bar>
mail from: <test>
mail from: <> rcpt to: <nobody@third-party.bar>
mail from: <test@your.local.foo> rcpt to: <nobody@third-party.bar>
mail from: <test@[209.166.74.74]> rcpt to: <nobody@third-party.bar>
mail from: <test@your.local.foo> rcpt to: <nobody%third-party.bar@your.local.foo>
mail from: <test@your.local.foo> rcpt to: <nobody%third-party.bar@[209.166.74.74]>
mail from: <test@your.local.foo> rcpt to: <"nobody@third-party.bar">
mail from: <test@your.local.foo> rcpt to: <"nobody%third-party.bar">
RCPT TO:<test@some.other.site@some.site>
mail from: <test@[209.166.74.74]> rcpt to: <nobody@third-party.bar@your.local.foo">
mail from: <test@your.local.foo> rcpt to: <"nobody@third-party.bar"@[209.166.74.74]>
mail from: <test@your.local.foo> rcpt to: <nobody@third-party.bar@[209.166.74.74]>
mail from: <test@[209.166.74.74]> rcpt to: <@your.local.foo:nobody@third-party.bar>
mail from: <test@your.local.foo> rcpt to: <@[209.166.74.74]:nobody@third-party.bar>
mail from: <test@[209.166.74.74]> rcpt to: <third-party.bar!nobody>
mail from: <test@your.local.foo> rcpt to: <third-party.bar!nobody@[209.166.74.74]>
mail from: <postmaster@your.local.foo> rcpt to: <nobody@third-party.bar>
Last updated: Thu Apr 4 16:57:58 PST 2002