Re: How to specify fake mail sender from mailx

From: ANdre H (NOTMe_at_ailleur.com)
Date: 03/31/04


Date: Wed, 31 Mar 2004 11:26:34 +0200

You could use sendmail with -f <sender>
I can't see how to do this from mailx?
If you are using perl, there is a module Mail::Sender that allow you to
specify a <sender>
Regards
"Todd" <todd.wang@sun.com> wrote in message
news:b1f17475.0403302329.69da6e0f@posting.google.com...
> Thanks.
> But my scenario is to impl that via shell for automatic mail task
> which reside on crontab rather than send anonymous mail manually.
>
> Alan Connor <zzzzzz@xxx.yyy> wrote in message
news:<Fjrac.9080$lt2.6506@newsread1.news.pas.earthlink.net>...
> > 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



Relevant Pages

  • RE: Segmentation Fault(Core dumped)
    ... we have perl 5.8.6 installed on separate path and I am not using the ... > official business of Sender. ... Subject to applicable law, Merrill Lynch may monitor, ... >> than the country in which you are located. ...
    (perl.dbi.users)
  • RE: Perl waits for while to finish before printing ifonthesameline,why?(countdown prog)
    ... Perl waits for while to finish before printing ... or attachmentif any) are privileged and confidential material of MBT ... sender, except where the sender expressly, and with authority, states ... This e-mail message including attachment/, if any, is believed to be ...
    (perl.beginners)
  • RE: Distressing, possibly life threatening emails from free accounts (yahoo, hotmail
    ... Even if the sender is in the US, spoofing headers is relatively easy, so ... even if Yahoo cooperates in the investigation, ... Typically, log files are not kept very long, and only a law enforcement ... You need to get the original headers from the recipient of the message. ...
    (Security-Basics)
  • Re: Outlook 2003 email listing ALL previous posts on topic, etc.
    ... plus every earlier one sent by that sender. ... lists the address of every email on topic that preceeded the one received, plus every earlier sent by that sender." ... So are you talking about the original message getting quoted by the first respondent that forwarded or replied, and then that 2nd message again getting quoted by the next person that forwarded or replied, and so on which leaves a series of indented e-mails when each person quoted the content of the e-mail that they got along the entire chain of recipients? ... that quoted content with a subset of the headers for that original message, like From, To, Cc, Subject, and Date. ...
    (microsoft.public.outlook)
  • RE: Perl waits for while to finish before printingifonthesameline,why?(countdown prog)
    ... I have perl configured in Edit ... or attachmentif any) are privileged and confidential material of MBT ... sender, except where the sender expressly, and with authority, states ... This e-mail message including attachment/, if any, is believed to be ...
    (perl.beginners)