Mailinglist Archive: opensuse (3518 mails)

< Previous Next >
Re: [opensuse] mailing from CLI
  • From: Adam Tauno Williams <adamtaunowilliams@xxxxxxxxx>
  • Date: Tue, 17 Apr 2007 08:34:15 -0400
  • Message-id: <1176813255.4994.13.camel@xxxxxxxxxxxxxxxxxxx>
> > 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.

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

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

> > One simplifying factor is that I need only to send an email-- don't have
> > to read any.
> > The remote server I'm using listens on port 993, uses SSL.
> Not good. 993 is the ImapS port, not an smtp port. Use a SMTP server to
> send the mail to.


-- 
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References