Re: How to specify fake mail sender from mailx
From: Alan Connor (zzzzzz_at_xxx.yyy)
Date: 03/31/04
- Previous message: Steven W. Orr: "Desperate 2nd try! Problem with bash. Is this a bug?"
- In reply to: Todd: "How to specify fake mail sender from mailx"
- Next in thread: Todd: "Re: How to specify fake mail sender from mailx"
- Reply: Todd: "Re: How to specify fake mail sender from mailx"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 31 Mar 2004 03:56:21 GMT
On 30 Mar 2004 19:30:00 -0800, Todd <todd.wang@sun.com> wrote:
>
>
> I wanna send mail from fake mail address instead real address.
> I know it can be achieved by using Java(even Ant Mail task)/C.
> But how to do it in shell from mailx or mail?
> (Solaris 9 u5/CDE)
> Thanks
If you use your regular mail apps, they will add headers you don't
want without a lot of messing around.
Better to just telnet into your ISPs smart smtphost and do it manually.
First compose the entire message, including any headers other than
>From and To, Subject at the top and blank line between the headers
and the body. You'll cut and paste it in after the response to the
DATA command.
<w> means wait for the server to respond before entering the next
commands/arguments.
telnet smtp.yourisp.com 25
<w>
HELO abc.def.ghi # arbitrary strings
<w>
MAIL FROM: fake@email.address
<w>
RCPT TO: whoever@whatever.com
<w>
DATA
<w>
# paste the prepared message here
. # a plain dot
<w>
QUIT
That's it. As close to anonymous as you are going to get mailing directly
from your own box.
AC
- Previous message: Steven W. Orr: "Desperate 2nd try! Problem with bash. Is this a bug?"
- In reply to: Todd: "How to specify fake mail sender from mailx"
- Next in thread: Todd: "Re: How to specify fake mail sender from mailx"
- Reply: Todd: "Re: How to specify fake mail sender from mailx"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|