Re: How to specify fake mail sender from mailx
From: ANdre H (NOTMe_at_ailleur.com)
Date: 03/31/04
- Next message: Tapani Tarvainen: "Re: How to specify fake mail sender from mailx"
- Previous message: Manu: "bashrc or sh"
- In reply to: Todd: "Re: How to specify fake mail sender from mailx"
- Next in thread: Tapani Tarvainen: "Re: How to specify fake mail sender from mailx"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Tapani Tarvainen: "Re: How to specify fake mail sender from mailx"
- Previous message: Manu: "bashrc or sh"
- In reply to: Todd: "Re: How to specify fake mail sender from mailx"
- Next in thread: Tapani Tarvainen: "Re: How to specify fake mail sender from mailx"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|