Re: How to specify fake mail sender from mailx

From: Alan Connor (zzzzzz_at_xxx.yyy)
Date: 03/31/04

  • Next message: Icarus Sparry: "Re: Desperate 2nd try! Problem with bash. Is this a bug?"
    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


  • Next message: Icarus Sparry: "Re: Desperate 2nd try! Problem with bash. Is this a bug?"

    Relevant Pages

    • Re: How to specify fake mail sender from mailx
      ... But my scenario is to impl that via shell for automatic mail task ... > If you use your regular mail apps, they will add headers you don't ... > DATA command. ... > # paste the prepared message here ...
      (comp.unix.shell)
    • Re: OT - has my email domain been hijacked?
      ... > The dumb mail server of some of the recipients hasn't worked out that the ... > headers are forged, so it is returning the 'unknown address error' back to ... > Mail servers do not generally accept a DATA command if the RCPT ... james | "I don't think so," said René Descartes. ...
      (Fedora)
    • Re: [SLE] returned mail
      ... > This is the Postfix program at host linux.local. ... > (in reply to end of DATA command) ... > Check the headers for your unsubscription address ...
      (SuSE)
    • Re: How to specify fake mail sender from mailx
      ... You could use sendmail with -f <sender> ... If you are using perl, there is a module Mail::Sender that allow you to ... >> If you use your regular mail apps, they will add headers you don't ... >> DATA command. ...
      (comp.unix.shell)
    • Re: [SLE] Postfix Error in SuSE 9.0
      ... > AVAILABLE (in reply to end of DATA command)) ... Kernel k_athlon-2.4.20 ... See headers for PGP/GPG info. ...
      (SuSE)