Re: lynx send-mail from script ?
- From: Andrew Preater <preater+usenet@xxxxxxxxx>
- Date: 31 Dec 2005 14:29:11 GMT
* Enrique Perez-Terron <enrio@xxxxxxxxx>:
>>> I want to similarly send a set of pre-written emails via the
>>> same script. [...]
> [...]
> Most people don't have a domain, and if sendmail tries to
> contact the recipient's mail server directly, that mail server
> will normally refuse to accept the mail. This is a kind-of
> anti-spam accountability thing.
>
> A solution to this is to configure sendmail with a "smart
> host", which will be you ISP's smtp server. Then sendmail will
> relay all mails through that server, except when posting local
> mail, like when cron posts mail to root.
A smarthost is probably what the OP needs, but it doesn't require
a 'big' mailer like sendmail / postfix / exim.
A simple mailer such as ssmtp would do this trick. It's
sendmail-compliant so you can use it with mutt et al., all it
does it send mail through to your smarthost which could be your
ISPs server or another machine on your network. It can rewrite
the From and envelope for you too, but you might as well do that
in mutt.
> I had a quick look at the manpage for mutt/muttrc, and I could
> not find how to configure mutt to bypass sendmail and use my
> ISP's smtp server directly. I have used mutt in the past, but
> I don't remember if I had it submit mail through sendmail
It requires a sendmail-compliant mailer. The mutt team aren't
interested in adding smtp capability as mutt is meant as an MUA
not an MTA. You can use a tiny MTA with it, though.
> Strange, I have something in the back of my mind nagging that
> it is possible to send mail without first configuring sendmail.
> At a time I used pine, could it be it?
IIRC pine can do this. But then you'd be using pine (aaargh!)
rather than mutt.
If I've understood the OP correctly, what he wants is to get a
file referred to by a URL, then send this on to some recipients.
Assuming 'foo' is interested in the front page of gnu.org,
something like this would work:
$ elinks -dump www.gnu.org | mutt -s "GNU is good for you!" -f - \
foo@xxxxxxxxxxx
(I don't have lynx.) You need your MTA and mutt already
configured. Next step would be to read the URL(s) and
recipient(s) from a list in a file which he'd already written
offline.
--
Andrew Preater
.
- References:
- lynx send-mail from script ?
- From: news
- Re: lynx send-mail from script ?
- From: moma
- Re: lynx send-mail from script ?
- From: Enrique Perez-Terron
- lynx send-mail from script ?
- Prev by Date: How to copy .avi to DVD?
- Next by Date: Re: lynx send-mail from script ?
- Previous by thread: Re: lynx send-mail from script ?
- Next by thread: Re: lynx send-mail from script ?
- Index(es):
Relevant Pages
|