From owner-freebsd-questions@freebsd.org Wed Jul 11 02:36:30 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6F11F10256E9 for ; Wed, 11 Jul 2018 02:36:30 +0000 (UTC) (envelope-from Olivier.Nicole@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (mail.cs.ait.ac.th [192.41.170.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7D3D077EA0 for ; Wed, 11 Jul 2018 02:36:28 +0000 (UTC) (envelope-from Olivier.Nicole@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (localhost [127.0.0.1]) by mail.cs.ait.ac.th (Postfix) with ESMTP id CC35661F86; Wed, 11 Jul 2018 09:36:23 +0700 (+07) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cs.ait.ac.th; h= content-type:content-type:mime-version:message-id:date:date :in-reply-to:subject:subject:from:from:received:received :received; s=selector1; t=1531276583; x=1533090984; bh=/6kedT/Ai lzeNS5kp3N8KXderZ1BuPDDheB5vgDU14s=; b=UH5yR9z0b5Vn1HzS4UM3Xfesn uM2VEJ1eyK65MHSsZUW6+jEg+h4mYqUeqsjtTf6dhv5j78lHp0bwuqmfd1EKF9qB m44sIIqMrDPPEXPialK7b/VgmegGR80PRbwZ+SmKYtPxinEq7B1vdwCGUZOVQ/N9 rJhvYo09BBMSUiEKHY= X-Virus-Scanned: amavisd-new at cs.ait.ac.th Received: from mail.cs.ait.ac.th ([127.0.0.1]) by mail.cs.ait.ac.th (mail.cs.ait.ac.th [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id kGxZpeWPmU5m; Wed, 11 Jul 2018 09:36:23 +0700 (+07) Received: from banyan.cs.ait.ac.th (banyan.cs.ait.ac.th [192.41.170.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.cs.ait.ac.th (Postfix) with ESMTPS id 2594461F83; Wed, 11 Jul 2018 09:36:23 +0700 (+07) Received: (from on@localhost) by banyan.cs.ait.ac.th (8.15.2/8.15.2/Submit) id w6B2aMW9067429; Wed, 11 Jul 2018 09:36:22 +0700 (ICT) (envelope-from on@banyan.cs.ait.ac.th) From: Olivier To: RW Cc: freebsd-questions@freebsd.org Subject: Re: [commercial] sendmail setup request In-Reply-To: <20180710184032.55346a5d@gumby.homeunix.com> (message from RW via freebsd-questions on Tue, 10 Jul 2018 18:40:32 +0100) Date: Wed, 11 Jul 2018 09:36:22 +0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jul 2018 02:36:30 -0000 RW via freebsd-questions writes: > On Mon, 9 Jul 2018 08:35:26 +0200 > Polytropon wrote: > > > >> but fetchmail can "copy" messages, i. e., leave them on the server, >> and upon invocation, only load the unread messages). Check >> "man fetchmail" for the keep / nokeep keyword. > > It's already been clarified that the fetchmail instance would also be > remote, so this doesn't apply to the OP, but for the record, getmail > handles the above better. That is not exacteky what I understood. I think that all the OP wants a way to "use mailx on his mailbiox". Because mailx does not rely on a network protocol, but rather only works on a mbox file local to the machine where mailx command is used, he needs a way to get the messages to the machine where he will be using the command mailx. One way to do that would be to setup the machine as a mail server, but it is a huge task (even if the OP is not interested in setting up IMAP or webmail). One other way is to keep the original server working and fetch the mail from that server to the machine that will be used for mailx. One of the way being fetchmail, I don't know getmail, it may well do the same job: reading mail with IMAP and dumping it into a mbox file. My feeling is that setting the fetch/getmail way acheives the goal of the OP (being able to read mail with mailx) while being many orders of magnitude simpler than having to learn sendmail. Best regards, Olivier > With IMAP fetchmail handles 'download and leave on server' through the > IMAP '/SEEN' flag, it downloads unread mail, marking everything it > downloads as read. This has two obvious flaws, anything you read > online wont get downloaded, and anything that's downloaded gets marked > as read on the server. > > getmail keeps track of what it's downloaded using timestamped > UID+UIDVALIDITY pairs, so: > > 1. it downloads reliably > > 2. it wont mark your IMAP mail as read (unless you want it to) > > 3. it supports an option to delete server-side mail N days > after download. > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > --