From owner-freebsd-questions@freebsd.org Fri Dec 14 20:00:43 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 49D10130BC6E for ; Fri, 14 Dec 2018 20:00:43 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.131]) (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 477408EE16 for ; Fri, 14 Dec 2018 20:00:42 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([92.193.252.129]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.167]) with ESMTPA (Nemesis) id 1Mzhzd-1hKn200NQf-00vdF5; Fri, 14 Dec 2018 21:00:33 +0100 Date: Fri, 14 Dec 2018 21:00:32 +0100 From: Polytropon To: mayuresh@kathe.in Cc: freebsd-questions@freebsd.org Subject: Re: [commercial] sendmail : single user scenario : setup : anyone interested? Message-Id: <20181214210032.3ec280bd.freebsd@edvax.de> In-Reply-To: <3e77a5220992e58488f87beac9e9b050@kathe.in> References: <3e77a5220992e58488f87beac9e9b050@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:12/mlXumNxQ6iBwELJUqYpDqi0sio2ocY4dR3XZZdq1+bQgNbTV ux5ERBHDX3mcPpIH2sQMpd8ANemY6HWUt/ZIaWpxiIGpnXhq8nO9aIpGL/7VryOnV9W0Efh +xgeaoQ+NHT2nDvPSLj+eMZCuBj6CFVL0L9n4F16kmKOCn5LHoZLsZZN5dbiWEhXdGiTeL1 t8kLH1l5w8Uc2nmaMziDA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:JvDBPCfoses=:AGzIDiMT9WQjxHVwm/EogS m05HJsQ/NvMPU7Qi2O2E23PvxyWtpvi307EDCdfzPPTigXW9Y2utO38wyG8bPwNkrgdp1z6sz hUOc451gW4oMFJ8WUr/DqUo3ezYV3QErheIFzCAYNdl3XzyyQnv7s8pFpz6IvBDjUzZZgtVrC nCi+i5kIwHZ1sMQ0IxTIVMzhe66nYRc/6bSUnwmRBU3y4HkFbV3g3O4bcUSJlHm34OZZ6fgzo Oh34kGeHlHOmiXatqlpJW4lWm9l/Mmf5ZgW0nFyRODKGB9bnBUtTg4FS0LV/B6SQeBYyHcEDh gpP/jFQ0kvE/fpWaasH9tgm8wpEK5cbpwZimsGMNusjkAoN1FrHzBc6X36Kuwsxulj1DRUo3S T87gSM239I0wcqlYz8RTOg6QjfKvIb1eupluLR4i8LSI3NUWXJ+AshrUqhdvnxOigpF6Q8Q+N 0iAneOW1RQPF952Lf/uD37B5AnyiklzeAnNQ0yP6+zjgE/5LorIviSotfghjCtJRbrIb9a3vr Bkp4P4m5VMyL0Sd3Orp2gLz/8Y1LCDU++QwIuXlrX1fT4QuNErhHfXDsNH5LeMKlNIQ9WXs6W u02nT/OHBpyrw2XloLD6OZaO+VllZGZWcRIbtuzJysiXpWUFpPEWOyr05aXfxAr7XxgTxgXC6 5mTgCe/T0IFSOprUzFNA/iH6CDluCkCy8cS1q7guARnHkkeKL5Khgq0XEfJ4KzQmPdGV2GNdd YOTcmccp9BYmZDUPDs0mH0vDwE57Hf6tQZGDX3artA6Dj7JqhjA1v8LdaD8= X-Rspamd-Queue-Id: 477408EE16 X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [4.43 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; MV_CASE(0.50)[]; IP_SCORE(-0.03)[ipnet: 212.227.0.0/16(-0.47), asn: 8560(0.33), country: DE(-0.01)]; TO_DN_NONE(0.00)[]; HAS_ORG_HEADER(0.00)[]; MX_GOOD(-0.01)[mx00.schlund.de,mx01.schlund.de]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.67)[-0.667,0]; RECEIVED_SPAMHAUS_PBL(0.00)[129.252.193.92.zen.spamhaus.org : 127.0.0.10]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; SUBJECT_ENDS_QUESTION(1.00)[]; ARC_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.83)[0.826,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.92)[0.915,0]; MID_CONTAINS_FROM(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[131.126.227.212.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_LAST(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Dec 2018 20:00:43 -0000 On Fri, 14 Dec 2018 11:31:41 +0000, Mayuresh Kathe wrote: > hello, i have tried but failed to set up my personal mailing system > under freebsd. > i am currently on freebsd-12 amd64 and solicit aid from interested > people in configuring my sendmail. > i am comfortable using mailx and am planning to use fetchmail to get > mail off my pop3 mail host. If you're using your ISP (I assume) for taking care of your mailbox, you don't actually need to deal with sendmail on your side. From what I understand you want to do, this looks like too much work at the wrong construction site. ;-) For receiving mail, fetchmail is very easy to use - POP3. Creating a matching .fetchmailrc entry is not a big deal, it's typically something like poll pop.example.com proto POP3 user bob pass trustno1 fetchall flush ssl See "man fetchmail" for the options you might need (or want to leave out, depending on your requirements). For sending mail, you can install a text mode MUA like pine or alpine. You can then go ahead and configure your SMTP access for your ISP, comparable to what you did for POP3. Then you can send from within the MUA without involving sendmail. However, _if_ you want to use sendmail, it could be possible that your ISP provides a mail relay which sendmail can use. You should first verify that your ISP does actually offer such a service, and if it requires you do be on a specific subnet (commonly the ISP's adress range). If this is all okay, you plan for the following: 1. local MUA (mailx, alpine, sylpheed, Thunderbird, whatever you want to use) hands message to local sendmail instance 2. sendmail connects to ISP's mail relay 3. sendmail sends messages over 4. ISP's mail relay will care for further delivery tasks In order to add that functionality to sendmail, you need to add the line define(`SMART_HOST', `mx.example.com') to your host's .mc file, and then "make install". You can find example code in /etc/mail, as well as further instructions in /etc/mail/Makefile's comment header. But as I said, it's probably far easier to choose a MUA that fits your needs and requirements, and just configure SMTP for that MUA. I suggest you have a look at alpine. If you don't like its built-in editor (nano), you can use an external one. Other text mode MUAs are for example mutt and sup. Additional inspiration here: https://www.freebsd.org/doc/handbook/mail-agents.html https://www.freebsd.org/doc/handbook/mail.html -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...