From owner-freebsd-questions@FreeBSD.ORG Fri Oct 29 12:18:14 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 2E89B106564A for ; Fri, 29 Oct 2010 12:18:14 +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 BA0888FC12 for ; Fri, 29 Oct 2010 12:18:13 +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 1PBnuO-0006xj-Ur; Fri, 29 Oct 2010 13:18:12 +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 o9TCIC38031875 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Fri, 29 Oct 2010 13:18:12 +0100 Received: from vhoffman-macbooklocal.local (lon.namesco.net [195.7.254.102]) (authenticated bits=0) by unsane.co.uk (8.14.4/8.14.4) with ESMTP id o9TCIBbW092629 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Fri, 29 Oct 2010 13:18:11 +0100 (BST) (envelope-from vince@unsane.co.uk) Message-ID: <4CCABB82.9080504@unsane.co.uk> Date: Fri, 29 Oct 2010 13:18:10 +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: Christopher Illies References: <4CC98291.8000609@bah.homeip.net> , <4CC9E9A9.2090105@unsane.co.uk> In-Reply-To: X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "freebsd-questions@freebsd.org" 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 12:18:14 -0000 On 29/10/2010 11:19, Christopher Illies wrote: > > I added "U:smmsp" and "M:PLAIN" to my /etc/mail/auth/client-info file, but > that did not change anything. When I left out the square brackets around the > server name in that file, I got another error message in /val/log/maillog: > > Oct 29 12:05:22 muck sm-mta[42252]: o9TA5Mtt042250: to=, ctladdr= (1001/1001), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30466, relay=send.ki.se. [130.229.20.28], dsn=4.0.0, stat=Deferred: Name server: send.ki.se.: host name lookup failure > > <...> odd http://www.sendmail.org/~ca/email/sm-812.html#812AUTH has an example with no square brackets. Not sure why this would break it for you. >> (I also set up SSL separately as i'm using plain method but you seem to >> have that covered.) > Could you explain this a bit further, please? I am not clear on how this works. > Setting up SSL is done by compiling sendmail with sasl, isn't it? Or is there > something else to do? Also, the term "plain method" confuses me: This does > not refer to whether or not you are using ssl? > Sorry wrong terminology. That should have been plain mechanism not method. PLAIN mechanism mean that i'm sending the password/user in plain rather than using something like DIGEST-MD5 or any of the other possible mechanisms that can be listed in confAUTH_MECHANISMS in your sendmail .mc file to get a list of whats supported by your relay telnet to it on port 25 and issue an EHLO command. the supported mechanisms are listed following the AUTH keyword. for example for me (11:59:59 <~>) 1 $ telnet RELAY.ISP.net 25 Trying 213.xxx.xxx.53... Connected to RELAY.ISP.net. Escape character is '^]'. 220 RELAY.ISP.net ESMTP Sendmail 8.13.8/8.13.8; Fri, 29 Oct 2010 12:00:08 +0100 ehlo unsane.co.uk 250-RELAY.ISP.net Hello foo.ISP.net [195.x.x.102], pleased to meet you 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-8BITMIME 250-SIZE 250-DSN 250-ETRN 250-AUTH LOGIN PLAIN ---THIS ONE. 250-STARTTLS 250-DELIVERBY 250 HELP Ignore the ssl comment, I was obviously half asleep, the ssl config I have is for receiving mail over ssl (server side) not sending (client side) I have tried copying your steps for testing, dnl define(`SMART_HOST', `RELAY.ISP.net')dnl FEATURE(`authinfo',`hash /etc/mail/auth/client-info')dnl to ostracod.unsane.co.uk.mc (my machines mc file) [root@ostracod /etc/mail]# make all /usr/bin/m4 -D_CF_DIR_=/usr/local/share/sendmail/cf/ /usr/local/share/sendmail/cf/m4/cf.m4 ostracod.unsane.co.uk.mc > ostracod.unsane.co.uk.cf [root@ostracod /etc/mail]# make install install -m 444 ostracod.unsane.co.uk.cf /etc/mail/sendmail.cf install -m 444 ostracod.unsane.co.uk.submit.cf /etc/mail/submit.cf [root@ostracod /etc/mail]# then created /etc/mail/auth/client-info with [root@ostracod /etc/mail]# cat /etc/mail/auth/client-info AuthInfo:RELAY.ISP.net "U:smmsp" "I:USER" "P:PASSWORD" "M:PLAIN" and then makemap hash client-info Sorry to bother you with all these questions. Thats fine, what sendmail I do know will be forgotten if i dont use it.. hope these data-points help but it looks like a bit of a "works for me" without solving your issue. Vince > Christopher