From owner-freebsd-ports@freebsd.org Wed May 25 11:41:05 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DB2CDB49661 for ; Wed, 25 May 2016 11:41:05 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from msa1.earth.yoonka.com (yoonka.com [185.24.122.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "msa1.earth.yoonka.com", Issuer "msa1.earth.yoonka.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 86ED01BD9 for ; Wed, 25 May 2016 11:41:04 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from crayon2.yoonka.com (crayon2.yoonka.com [192.168.1.20]) (authenticated bits=0) by msa1.earth.yoonka.com (8.15.2/8.15.2) with ESMTPSA id u4PBevWJ029166 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Wed, 25 May 2016 11:40:57 GMT (envelope-from list1@gjunka.com) Subject: Re: mail/ssmtp: mailer.conf instruction in handbook differs from pkg-message To: freebsd-ports@freebsd.org References: <20160525125702.21cee03d@mephala.kappastar.com> From: Grzegorz Junka Message-ID: <4dc4b9ce-0cc9-ea88-0339-3eecb0a1f2af@gjunka.com> Date: Wed, 25 May 2016 11:40:57 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: <20160525125702.21cee03d@mephala.kappastar.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2016 11:41:06 -0000 /usr/libexec is for the sendmail that is in the base. If you installed from ports then this is what works for me: sendmail /usr/local/sbin/sendmail send-mail /usr/local/sbin/sendmail mailq /usr/local/sbin/sendmail newaliases /usr/local/sbin/sendmail hoststat /usr/local/sbin/sendmail purgestat /usr/local/sbin/sendmail Grzegorz On 25/05/2016 10:57, Marko Cupać wrote: > Hi, > > I have recently changed MTA on some hosts to mail/ssmtp, following > instruction from handbook: > > [https://www.freebsd.org/doc/handbook/mail-changingmta.html] > > Handbook instructs to put the following lines in mailer.conf: > > sendmail /usr/local/sbin/ssmtp > send-mail /usr/local/sbin/ssmtp > mailq /usr/libexec/sendmail/sendmail > newaliases /usr/libexec/sendmail/sendmail > hoststat /usr/libexec/sendmail/sendmail > purgestat /usr/libexec/sendmail/sendmail > > However, pkg-message of mail/ssmtp gives different instruction: > > ssmtp-2.64_1: > Always: > sSMTP has been installed successfully. > > To replace sendmail with ssmtp type "make replace" or change > your /etc/mail/mailer.conf to: > > sendmail /usr/local/sbin/ssmtp > send-mail /usr/local/sbin/ssmtp > mailq /usr/local/sbin/ssmtp > newaliases /usr/local/sbin/ssmtp > hoststat /usr/bin/true > purgestat /usr/bin/true > > Are they both correct, or one of them needs to be updated? > > Regards,