From owner-freebsd-questions@FreeBSD.ORG Fri Oct 29 01:07:22 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5CEAE106566B for ; Fri, 29 Oct 2010 01:07:22 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from smtp.hosts.co.uk (smtp.hosts.co.uk [85.233.160.19]) by mx1.freebsd.org (Postfix) with ESMTP id E96838FC16 for ; Fri, 29 Oct 2010 01:07:21 +0000 (UTC) Received: from [213.246.108.53] (helo=kyanite.namesco.net) by smtp.hosts.co.uk with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1PBZvu-0001Lx-3g for freebsd-questions@freebsd.org; Thu, 28 Oct 2010 22:22:50 +0100 Received: from unsane.co.uk (www.unsane.co.uk [85.233.185.162]) (authenticated bits=0) by kyanite.namesco.net (8.13.8/8.13.8) with ESMTP id o9SLMnVM023328 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Thu, 28 Oct 2010 22:22:49 +0100 Received: from vhoffman-macbooklocal.local ([10.10.10.191]) (authenticated bits=0) by unsane.co.uk (8.14.4/8.14.4) with ESMTP id o9SLMnIG054667 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Thu, 28 Oct 2010 22:22:49 +0100 (BST) (envelope-from vince@unsane.co.uk) Message-ID: <4CC9E9A9.2090105@unsane.co.uk> Date: Thu, 28 Oct 2010 22:22:49 +0100 From: Vincent Hoffman User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.11) Gecko/20101013 Thunderbird/3.1.5 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: , <4CC98291.8000609@bah.homeip.net> In-Reply-To: X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: Sendmail as client via smarthost and ssl X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Oct 2010 01:07:22 -0000 On 28/10/2010 15:25, Christopher Illies wrote: >> 2010-10-28 14:49, Christopher Illies: >>> To send email from my computer at work I need to send through a >>> smarthost. In the past I had added the line: >>> >>> define(`SMART_HOST', `[smpt.ki.se]') >> Brackets are only needed for ipaddresses. >> >> What happens when you remove the brackets, like so >> define(`SMART_HOST', `your.mail.server') > Nothing changes. I get the same error messages as with > the brackets. > I'm a bit late here, but... All I had to do for was add AuthInfo:relay.isp.net "U:smmsp" "I:username" "P:PassWord" "M:PLAIN" to /etc/mail/access and the smarthost directive. I assume from your config this would go in /etc/mail/auth/client-info >From /usr/share/sendmail/cf/README Providing SMTP AUTH Data when sendmail acts as Client ----------------------------------------------------- If sendmail acts as client, it needs some information how to authenticate against another MTA. This information can be provided by the ruleset authinfo or by the option DefaultAuthInfo. The authinfo ruleset looks up {server_name} using the tag AuthInfo: in the access map. If no entry is found, {server_addr} is looked up in the same way and finally just the tag AuthInfo: to provide default values. Note: searches for domain parts or IP nets are only performed if the access map is used; if the authinfo feature is used then only up to three lookups are performed (two exact matches, one default). (I also set up SSL separately as i'm using plain method but you seem to have that covered.) Hope thats useful to you. Vince > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"