Re: lynx send-mail from script ?



* 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
.



Relevant Pages

  • RE: Sendmail - IMAP-UW - Cyrus-SASL2 - SMTPAUTH problems
    ... away from the server arena. ... We run SMTP AUTH but we don't run SSL SMTP. ... e-mail clients that can't handle SSL SMTP. ... Sendmail - IMAP-UW - Cyrus-SASL2 - SMTPAUTH problems ...
    (freebsd-questions)
  • Re: Solaris 8 - Configuring sendmail relay (NoAuth inbound -> SSL outbound)
    ... OK, I'm the OP, and I dug up AT&T's news server settings.... ... basic sendmail setup so I'm grateful for having made as much progress ... SSL connection to the relay. ... Connection reset by local ...
    (comp.mail.sendmail)
  • Re: Another Queue Question
    ... days with their Linux Sendmail server. ... The server is used for inbound email only and its directed to either ... The version of Sendmail is 3.0.6, this was a corporate image so I'm ... If queue is processed without porblems than start a few more ...
    (comp.mail.sendmail)
  • Re: Reasons behind defaulting atd and sendmail
    ... You could, but what I meant was that sendmail could have a GUI config tool that took the same information as you provide a GUI MUA. ... You can bypass it completely if you configure your MUA to use some other server and don't use any traditional unix style mail. ... However, in the traditional unix mail scheme, senders like cron, logwatch, and an assortment of other tools don't have individual configuration for mail delivery. ...
    (Fedora)
  • Re: how do I see security logs without turning on sendmail?
    ... telnet localhost ... No, I don't get the sendmail prompt, because there is no sendmail running. ... main e-mail server, were we get reports of scripts. ...
    (freebsd-questions)