From owner-freebsd-questions@freebsd.org Mon Jul 9 06:40:53 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 0A59E1024479 for ; Mon, 9 Jul 2018 06:40:53 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 68BD284595 for ; Mon, 9 Jul 2018 06:40:52 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([92.195.57.160]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.183]) with ESMTPA (Nemesis) id 0MQw3C-1fWTlP2cBy-00UHb5; Mon, 09 Jul 2018 08:35:29 +0200 Date: Mon, 9 Jul 2018 08:35:26 +0200 From: Polytropon To: Olivier Cc: mayuresh@kathe.in, freebsd-questions@freebsd.org Subject: Re: [commercial] sendmail setup request Message-Id: <20180709083526.c4b4924f.freebsd@edvax.de> In-Reply-To: References: <6e21b74531c2b6ca7ca89cfc37add6a2@kathe.in> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:CHxndl3gnrvwTX/56wEOykjRQwUV8qLB0wkq/9KQwiO9tAhUReX zkBkt64llcgF3g0b+b3Bk2hyaFr/EOj1xBh0FVDLfMqRzYCmaTe79QCLykvHsqPK42O8BEp H9axv0gZBVIM7VSqar+S8dYsR95uMMxX2m0YyVx+yeqWjhSEuFVuLVRYWHKP2KFX6NWF6O5 3du8hQUir5S02EHmQ6UmA== X-UI-Out-Filterresults: notjunk:1;V01:K0:2suJbt1FXxs=:Qb2/fwVwRVgJFGNGZTjBPV v/j2KMG9+Ur7atedDClGfqXGq78kogcTjMHYvrTOU92bfKQutILAjB+kzz7CVx8w23eFzh26F 4KhTFl0lhMdtgIGnEO7yFXGjGrpCd+6sqYY54aW+kERRyK+BgK9LxG6JXvU76sYEe91foe1vE XEtD6w69+DS8Eq70l7kpwtO3hYlYLL4L+YjXjW215LiRau9mZGulsGHfDsgamaO8pEwNicFK+ 7HW5suhItElZP356DngO9d1F4BJbH6iq2IiGaM1e+a6URUn5SGEyxikqyLVCdv0iFxCNCmnBK iqPVyg623VpHrPwKfDWoOCx12ACkHmFfIFFUgjaO3jM6Qyasw+Mj8dPEs9oNAV33htLFIlOvl DC+a6jNSOkkOxoUs3QSf6sbctVMUHSWdMURJjU6H4bgR8g1wEuxRT8RyS7c5yJQDp3mz5XEmb y4theqhlrOD0nkKboABWnCniCSSmUTmt9RdI3pYtHvIq66IoEJlya9BGAtiyt/HskVfbCn2BJ EDwXUXly5eRPw02OJX7BSDG4nnfSPsP1/O+PUjQUUDyyWVE7dmlfNStKhlOzmKCiQoKFS3wpQ 72k8xB9Q4kWW6NUbA1pX2VsbDqpkIZvZHg7k8REgAqAoX3k/FS8sq/GEz1NGCRXTOUoHyz1+9 m6UGD53O7N3tGQ3/E714cFk2nv/dBZBvAfMNR8y/OZzEvidJOLHWMRH6VKMYEGBJQY7X53jSP vvGgKpTUyvQD7cZ2 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: Mon, 09 Jul 2018 06:40:53 -0000 On Mon, 09 Jul 2018 12:40:05 +0700, Olivier wrote: > Mayuresh Kathe writes: > > > my goals are very basic and hence quite simple. > > i should be able to log into the freebsd instance as my username > > which would be the same as my email address (mayuresh@kathe.in) > > and use mailx to go through my emails. > > i don't need imap nor webmail. > > i know it must be a simple sendmail setup, but frankly, i'm not > > capable enough to understand the in-and-out of sendmail to be > > able to configure it to my requirement. > > If your needs are really limited to what you describe, you may consider > using fetchmail to get the mail from your current mail server (at your > registrar). Fetchmail should dump your mail on your FreeBSD system and > you will be able to use mailx. That way, you avoid all the problems of > setting up a machine intended to receive mail. The requirement included "storing message non-locally", 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. The advantage of fetchmail is that it puts the received messages into the system's mail spool where the locally (or remotely) logged-in users can get it from. It's stored in the mbox format which mail and mailx can handle natively. And fetchmail can be called via cron, or interactively when needed. > The configuration to send mail from your FreeBSD/mailx machine should be > quite simple (just a few lines to tell sendmail to push your outgoing > mail to the mail server at your registrar). Depending on the registrar or the ISP, two possibilities could be considered: a) use of a mail relay - in this case, a simple addition called SmartHost to the system's sendmail configuration usually is sufficient, but it depends on the ISP to provide such a facility; or b) use the local sendmail to "forward" the messages received locally to the regular SMTP "input" of the registrar. Both constructs have advantages and disadvantages. Again, mail and mailx can be used for this approach, as they send to (or via) local sendmail per default. However, there's a 3rd option which _might_ work: c) use the local sendmail to directly send the messages to the recipients. This option often fails, especially from dynamic IPs, or from static IPs within ISP ranges that are considered "dirty" because there is some "Windows" box in the ISP's address range that permanently spams the world. Summary: This whole construct would "mimic" IMAP. In an inconvenient manner. But it would work. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...