Re: [opensuse] mailing from CLI



On 04/17/2007 08:34 AM somebody named Adam Tauno Williams wrote:
I need to email from the command line a previously created file.

If you want to e-mail a file vs. just a message look at the "nail"
command, very handy.

Yeah. I was already there. See the paragraph below (from my original
post).



(The
finished working command will go into cron and so should be completely
programmatic.) Using Linux, There are a few open source apps that
should work: mail, mailx, and nail. Weirdness is that they all share
the same manpage. So maybe they all work exactly the same (???).
Or maybe I should say they all fail to work in the same way, because I
can't get anything to work at all or to give a helpful error message.
One complicating factor s that I don't want to set up a local mail

There is no reason not to setup the local MTA to use the central relay;
it will save you allot of grief.

I've set up sendmail a few times, so I know what's involved. As I said
in my original post, it isn't necessary and (for several reasons too
detailed to go into here) I don't want to do it.



server and according to the mail/mailx/nail manpage, I shouldn't have
to. (That much I can understand of the manpage.) I have a remote mail
(IMAPS/SSL) server which works perfectly fine with thunderbird.
This is wrong, the command line Tools all depend on Postfix/Sendmail to
provide the command line binary /usr/sbin/sendmail to put the mail into
the local Mailserver queue.
If you don't want that you should use mini_sendmail. That is a command
line tool to send an email directly to a remote smtp server.

Yast will setup postfix to do basic delivery to a central mail
repository; just run through the setup. There is no reason not to have
the local MTA configured. You do not need to accept connections.

Yeah, I know.


....


--
"Genius might be described as a supreme capacity for getting its
possessors into trouble of all kinds."
-- Samuel Butler
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages

  • Re: [opensuse] mailing from CLI
    ... If you want to e-mail a file vs. just a message look at the "nail" ... There is no reason not to setup the local MTA to use the central relay; ... provide the command line binary /usr/sbin/sendmail to put the mail into ... line tool to send an email directly to a remote smtp server. ...
    (SuSE)
  • Re: [PHP] SMTP vs mail()
    ... Script finished in 200ms (1000 emails delivered to local MTA). ... Delivery to target MTA over 100Mbit LAN took about 6s. ... That settles it then. ... The mailcommand will be more than fast enough for my needs. ...
    (php.general)
  • RE: [SLE] mail attachment from commandline
    ... > Again, nail is an invalid option for me, as this is a non-standard UNIX ... And the original mail and mailx command have dissapeared from the distro. ... support for MIME messages, POP3, and SMTP. ...
    (SuSE)
  • Re: how to install this?
    ... are many things that you can do at the command line that the GUI has no ... trying to stay within your parameters would a nail gun be ... modern and a hammer be primitive? ...
    (alt.os.linux.suse)
  • Re: Auditing Logons
    ... Yeah, I checked it immediately so maybe it hasn't had time ... I'll run the command and see what happens. ... confers no rights. ... >> I'm trying to audit logons to our domain but nothing is ...
    (microsoft.public.win2000.security)