summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/2011-September/008346.html
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-04-14 13:46:12 +0000
committerNicolas Vigier <boklm@mageia.org>2013-04-14 13:46:12 +0000
commit1be510f9529cb082f802408b472a77d074b394c0 (patch)
treeb175f9d5fcb107576dabc768e7bd04d4a3e491a0 /zarb-ml/mageia-dev/2011-September/008346.html
parentfa5098cf210b23ab4f419913e28af7b1b07dafb2 (diff)
downloadarchives-master.tar
archives-master.tar.gz
archives-master.tar.bz2
archives-master.tar.xz
archives-master.zip
Add zarb MLs html archivesHEADmaster
Diffstat (limited to 'zarb-ml/mageia-dev/2011-September/008346.html')
-rw-r--r--zarb-ml/mageia-dev/2011-September/008346.html192
1 files changed, 192 insertions, 0 deletions
diff --git a/zarb-ml/mageia-dev/2011-September/008346.html b/zarb-ml/mageia-dev/2011-September/008346.html
new file mode 100644
index 000000000..7fb7af6d9
--- /dev/null
+++ b/zarb-ml/mageia-dev/2011-September/008346.html
@@ -0,0 +1,192 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+ <HEAD>
+ <TITLE> [Mageia-dev] [RFC] msec (nail) can't send reports to local users accounts - require an MTA?
+ </TITLE>
+ <LINK REL="Index" HREF="index.html" >
+ <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20%5BRFC%5D%20msec%20%28nail%29%20can%27t%20send%20reports%20to%0A%20local%09users%20accounts%20-%20require%20an%20MTA%3F&In-Reply-To=%3C4E7CA1FB.2030900%40arcor.de%3E">
+ <META NAME="robots" CONTENT="index,nofollow">
+ <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
+ <LINK REL="Previous" HREF="008342.html">
+ <LINK REL="Next" HREF="008348.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <H1>[Mageia-dev] [RFC] msec (nail) can't send reports to local users accounts - require an MTA?</H1>
+ <B>Florian Hubold</B>
+ <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20%5BRFC%5D%20msec%20%28nail%29%20can%27t%20send%20reports%20to%0A%20local%09users%20accounts%20-%20require%20an%20MTA%3F&In-Reply-To=%3C4E7CA1FB.2030900%40arcor.de%3E"
+ TITLE="[Mageia-dev] [RFC] msec (nail) can't send reports to local users accounts - require an MTA?">doktor5000 at arcor.de
+ </A><BR>
+ <I>Fri Sep 23 17:12:59 CEST 2011</I>
+ <P><UL>
+ <LI>Previous message: <A HREF="008342.html">[Mageia-dev] [RFC] msec (nail) can't send reports to local users accounts - require an MTA?
+</A></li>
+ <LI>Next message: <A HREF="008348.html">[Mageia-dev] [RFC] msec (nail) can't send reports to local users accounts - require an MTA?
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#8346">[ date ]</a>
+ <a href="thread.html#8346">[ thread ]</a>
+ <a href="subject.html#8346">[ subject ]</a>
+ <a href="author.html#8346">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>Am 23.09.2011 15:32, schrieb Frank Griffin:
+&gt;<i> On 09/23/2011 06:49 AM, andre999 wrote:
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> Currently, entering a userid alone does not work. It has to be an email
+</I>&gt;&gt;<i> address.
+</I>&gt;&gt;<i> Note however that <A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">userid at localhost</A> _is_ an email address.
+</I>&gt;&gt;<i> We could change it to accept only a valid format email address or a valid
+</I>&gt;&gt;<i> userid, in the latter case msec adding the @localhost part. IIRC,
+</I>&gt;&gt;<i> @localhost must be in a certain config file, which is the case by default.
+</I>&gt;<i>
+</I>&gt;<i> If you're referring to the Security panel in Summary, you certainly *can*
+</I>&gt;<i> enter a userid. I regularly enter &quot;root&quot;, and then give &quot;root&quot; a .forward
+</I>&gt;<i> file to redirect from there.
+</I>&gt;<i>
+</I>&gt;<i> There seems to be some confusion between the functioning of an MUA and MTA.
+</I>&gt;<i> They function identically, except that the MUA uses SMTP on behalf of a
+</I>&gt;<i> single user and the MTA uses it on behalf of many users. Also, an MUA
+</I>&gt;<i> receives mail for its single user by polling an MTA, while an MTA typically
+</I>&gt;<i> listens for incoming connections from MUAs or other MTAs and receives
+</I>&gt;<i> unsolicited mail for its many users.
+</I>&gt;<i>
+</I>&gt;<i> Both of them use exactly the same SMTP exchange to hand mail off to an
+</I>&gt;<i> intermediate or final-destination MTA, and both of them need to be configured
+</I>&gt;<i> with the information necessary to open a socket connection to that receiving
+</I>&gt;<i> MTA.
+</I>&gt;<i>
+</I>&gt;<i> You only need an MTA on the sending system if the recipient is a user who
+</I>&gt;<i> uses the sending system as its MTA. Unfortunately, that includes the case of
+</I>&gt;<i> the user-to-user mail on the same system.
+</I>&gt;<i>
+</I>&gt;<i> So, regardless of what the RPMs require, msec really only needs an MUA that
+</I>&gt;<i> is properly configured to hand mail off to the desired MTA, which can be on
+</I>&gt;<i> another system entirely. The requirement for a local MTA only arises if you
+</I>&gt;<i> want users on your system to be able to receive mail, whether it's sent by
+</I>&gt;<i> msec or anything else.
+</I>&gt;<i>
+</I>&gt;<i> But in either case, you can't get around having to configure the MUA. If you
+</I>&gt;<i> don't, the default config is usually to target an MTA on localhost. And the
+</I>&gt;<i> default config for most MTAs when presented with a userid as an address is to
+</I>&gt;<i> rewrite the address to <A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">user at localhost</A> and deliver it locally. So yes, if you
+</I>&gt;<i> don't configure the MUA to use an off-host MTA, you will need an on-host
+</I>&gt;<i> (localhost) MTA. If you don't have one, the MUA's response is unpredictable;
+</I>&gt;<i> it may throw an error, or it may (if it has root access) put the mail in
+</I>&gt;<i> /dead.letter.
+</I>&gt;<i>
+</I>&gt;<i>
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> The best solution is to ensure that an MTA is always installed.
+</I>&gt;&gt;<i>
+</I>&gt;<i>
+</I>&gt;<i> I'd vote for that for simplicity, provided the default configuration made it
+</I>&gt;<i> usable only for local delivery to minimize security implications.
+</I>&gt;<i>
+</I>&gt;<i> However, I think there is a better solution. MTAs all simulate the sendmail
+</I>&gt;<i> API, and since sendmail is usable as an MUA as well, so are the various
+</I>&gt;<i> MTAs. Real MUAs aren't that uniform. Virtually all mail reader apps use
+</I>&gt;<i> their own internal MUAs to send mail, and have their own specific
+</I>&gt;<i> configuration mechanisms, e.g. thunderbird, seamonkey-mail, evolution.
+</I>&gt;<i>
+</I>&gt;<i> In fact:
+</I>&gt;<i> [<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">root at ftgme2</A> ftg]# rpm -q --whatrequires mail
+</I>&gt;<i> no package requires mail
+</I>&gt;<i> [<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">root at ftgme2</A> ftg]# rpm -q --whatrequires mailx
+</I>&gt;<i> msec-0.80.10-2.mga1
+</I>&gt;<i> [<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">root at ftgme2</A> ftg]# rpm -q --whatrequires nail
+</I>&gt;<i> lsb-core-noarch-4.1-9.mga2
+</I>&gt;<i> [<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">root at ftgme2</A> ftg]# rpm -q --whatrequires sendmail-command
+</I>&gt;<i> lsb-core-noarch-4.1-9.mga2
+</I>&gt;<i> [<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">root at ftgme2</A> ftg]# rpm -q --whatrequires mail-server
+</I>&gt;<i> no package requires mail-server
+</I>&gt;<i>
+</I>&gt;<i> So, it might be a lot cleaner if we just changed msec to do its own crippled
+</I>&gt;<i> send-only MUA activities, This is really a trivial programming exercise, as
+</I>&gt;<i> indicated by this comment block from a C program I wrote to do exactly this:
+</I>&gt;<i>
+</I>&gt;<i> ************************************************************
+</I>&gt;<i> The mail file contains SMTP commands with interspersed message
+</I>&gt;<i> data, as follows:
+</I>&gt;<i> HELO ...
+</I>&gt;<i> MAIL FROM:...
+</I>&gt;<i> RCPT TO:...
+</I>&gt;<i> (repeats for each recipient)
+</I>&gt;<i> DATA
+</I>&gt;<i> (mail headers and body)
+</I>&gt;<i> .
+</I>&gt;<i> QUIT
+</I>&gt;<i>
+</I>&gt;<i> We open a session to the remote host's port 25, and ship each
+</I>&gt;<i> of the SMTP commands, waiting for an acceptable response. The
+</I>&gt;<i> &quot;acceptable response&quot; to each SMTP command begins with three
+</I>&gt;<i> digits and ends with a CRLF. We examine only the three digits,
+</I>&gt;<i> although we record the rest of the text. The acceptable
+</I>&gt;<i> response for most commands is a &quot;250&quot;; for DATA, it is a &quot;354&quot;,
+</I>&gt;<i> and for QUIT it is a 221. We do not actually verify the
+</I>&gt;<i> responses, since mailservers may vary, but simply forge on
+</I>&gt;<i> unless we get an I/O error from the socket. The user should
+</I>&gt;<i> be able to diagnose any errors from the transcript.
+</I>&gt;<i> ***********************************************************
+</I>&gt;<i>
+</I>&gt;<i> That's if you do it from scratch; I have to think that perl already has
+</I>&gt;<i> library support for sending mail. Of course, you'd probably not want to
+</I>&gt;<i> hardcode port 25, and msec would need configuration which could be handled by
+</I>&gt;<i> having a disabled entry field for host/port that gets enabled if you fill in
+</I>&gt;<i> a mail recipient.
+</I>&gt;<i>
+</I>&gt;<i> If the host is missing, localhost, or the known host name of the local
+</I>&gt;<i> machine, you'd want additional checks that something providing mail-server is
+</I>&gt;<i> installed, and prompts to choose one if none is installed.
+</I>&gt;<i>
+</I>&gt;<i> Same support in msecgui, of course.
+</I>&gt;<i>
+</I>&gt;<i>
+</I>&gt;<i>
+</I>So, when it comes down to the 4 choices, can i sign you up for number 3?
+dma is a really small MTA, requires no configuration so far and if the
+user installs a full-blown MTA that one is used instead of dma.
+
+Or did you volunteer for the programming work on msec? ;)
+
+
+BTW: The discussion goes on and on, so far i have only 2 conflicting votes.
+We need to at least find a concensus.
+</PRE>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+<!--endarticle-->
+ <HR>
+ <P><UL>
+ <!--threads-->
+ <LI>Previous message: <A HREF="008342.html">[Mageia-dev] [RFC] msec (nail) can't send reports to local users accounts - require an MTA?
+</A></li>
+ <LI>Next message: <A HREF="008348.html">[Mageia-dev] [RFC] msec (nail) can't send reports to local users accounts - require an MTA?
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#8346">[ date ]</a>
+ <a href="thread.html#8346">[ thread ]</a>
+ <a href="subject.html#8346">[ subject ]</a>
+ <a href="author.html#8346">[ author ]</a>
+ </LI>
+ </UL>
+
+<hr>
+<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev
+mailing list</a><br>
+</body></html>