From owner-freebsd-questions@freebsd.org Thu Jan 25 15:54:38 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 C294CEB77B5 for ; Thu, 25 Jan 2018 15:54:38 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: from kicp.uchicago.edu (kicp.uchicago.edu [128.135.20.70]) by mx1.freebsd.org (Postfix) with ESMTP id 9594B83AC0 for ; Thu, 25 Jan 2018 15:54:38 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: from point.uchicago.edu (point.uchicago.edu [128.135.52.6]) by kicp.uchicago.edu (Postfix) with ESMTP id E073871803F for ; Thu, 25 Jan 2018 09:54:31 -0600 (CST) Subject: Re: Exim authentication under FreeBSD To: freebsd-questions@freebsd.org References: <20180125141451.GB919@lena.kiev> From: Valeri Galtsev Message-ID: <817aa206-27bf-f46a-fb27-72943aa42d8e@kicp.uchicago.edu> Date: Thu, 25 Jan 2018 09:54:31 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20180125141451.GB919@lena.kiev> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jan 2018 15:54:39 -0000 On 01/25/18 08:14, Lena@lena.kiev.ua wrote: >> From: Frank Leonhardt >> >> How do people do outgoing SMTP user-account authentication using Exim? >> >> I'm talking about traditional user accounts (/etc/passwd) here, not >> glorious LDAP or SQL database virtual users. If you've not come across >> this little problem-ette, Exim does not ever run as root and therefore >> can't check /etc/master.passwd like sendmail/saslauthd can. Do you run IMAP/POP server? If yes, which one? > > I run a POP3 server (port mail/popa3d) on the same machine > and use obsolete removed port security/pam_pop3 with Exim's > server_condition = ${if pam{ > and /etc/pam.d/exim : > > auth required /usr/local/lib/pam_pop3.so hostname=localhost info pwprompt=Password: timeout=5 > account required pam_permit.so My case, alas, is not exactly as yours. I run postfix (not exim) and dovecot, and I use dovecot's ability to authenticate against passwd files (I do no authentication on port 25, and do no relay on port 25, but SSL encrypted port 465 relays for authenticated users). Valeri ++++++++++++++++++++++++++++++++++++++++ Valeri Galtsev Sr System Administrator Department of Astronomy and Astrophysics Kavli Institute for Cosmological Physics University of Chicago Phone: 773-702-4247 ++++++++++++++++++++++++++++++++++++++++