There are three programs that handle mail on a unix-like system: the MUA, the LDA and the MTA. The Mail User Agent (MUA) formats message in a standard format like MIME. From the command line you usually use mailx. The Local Delivery Agent (LDA) stores incooming messages i.e. puts them in /var/spool/mail/ in mbox format or $HOME/Maildir in Maildir format. Mail.local, procmail or maildrop are examples of an LDA. The Mail Transport Agent (MTA) is what accepts or sends mail. Sendmail, postfix and qmail are examples of MTAs. Every unix or unik-like system I have ever used has some version of sendmail installed on it, and most are preconfigured. I don't do linux, but generally speaking you use the same program to send out mail as you do to receive it. If you don't want to run an MTA, just put the following as a cron job for root: 0 * * * * [ -x /usr/lib/sendmail ] && /usr/lib/sendmail -q Which will run once an hour and flush any "stuck" messages. The machine will not accept any incomming mail. Of course, this assumes that sendmail is set up correctly i.e. you can send mail from the machine. If not, go to www.sendmail.org for more information. The only other thing you need to do is either generate a preformated mail message and pass it to the MTA, or use an MUA so you can send any outgoing messages. Aaron Michael.Semling@swisscom.com wrote:
Hi N!
If you really need an SMTP server running, I can highly recommend postfix.
Otherwise, set up the mailhost correctly and use the mailx programm.
e.g. for an empty message
mailx -v -s test_email John.Doe@mailinglist.net </dev/null
-v to see all the messages.
But maybe I misunderstood your question and you just want to read the mails?
Generally the mails are stored under /var/mail/<user>, you can easily read them be entering the command “mail”
You’ll see the mail list. Just type the number and you have the content.
Regards,
Michael
-----Original Message----- *From:* netsec novice [mailto:netsec9@hotmail.com] *Sent:* Dienstag, 7. Januar 2003 22:03 *To:* syslog-ng@lists.balabit.hu *Subject:* [syslog-ng]sending mail
I am a linux newbie - sorry. I already have an SMTP server on my network. Can I use mail from within syslog-ng to send messages to my account for alerting purposes without configuring a full blown mail server on my linux box? I don't know if there is a default SMTP client on linux (SuSE 8.1) or how to configure it.
any help is appreciated
N
------------------------------------------------------------------------
The new MSN 8 is here: Try it free* for 2 months <http://g.msn.com/8HMEEN/2018>
_______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html