From owner-freebsd-questions@freebsd.org Mon Jun 29 06:50:36 2015 Return-Path: Delivered-To: freebsd-questions@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 BF07398E58D for ; Mon, 29 Jun 2015 06:50:36 +0000 (UTC) (envelope-from b.heidotting@web.de) Received: from mout.web.de (mout.web.de [212.227.15.4]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.web.de", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 62C871175 for ; Mon, 29 Jun 2015 06:50:36 +0000 (UTC) (envelope-from b.heidotting@web.de) Received: from vm1.naber.dom ([212.185.81.140]) by smtp.web.de (mrweb003) with ESMTPSA (Nemesis) id 0Lfzwp-1YhXfv3rzv-00pcEE; Mon, 29 Jun 2015 08:25:45 +0200 Received: from vm1.naber.dom (localhost [127.0.0.1]) by vm1.naber.dom (8.14.9/8.14.9) with ESMTP id t5T6PhBN001628 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 29 Jun 2015 08:25:43 +0200 (CEST) (envelope-from bhd@vm1.naber.dom) Received: (from bhd@localhost) by vm1.naber.dom (8.14.9/8.14.9/Submit) id t5T6Pe4n001627; Mon, 29 Jun 2015 08:25:40 +0200 (CEST) (envelope-from bhd) Date: Mon, 29 Jun 2015 08:25:40 +0200 From: =?iso-8859-1?Q?Bj=F6rn?= Heidotting To: naddy@mips.inka.de Cc: freebsd-questions@freebsd.org Subject: Re: Sendmail: SMTP auth and smart host? Message-ID: <20150629062540.GA1359@fbsdvm1.naber.dom> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Provags-ID: V03:K0:IrMq5DE1E/NwWyUH4BTBuhuyfG6ltQ/9Q7mP4R3G0ZfmOqXGQXW g8rLoXhhVbglTMn8T4J0l8+t1diiXJRWlkTqRAebFos5mtBBRDjVAxqCJqpsRjfx8lxXvxl gv9+sLFn1ztxAq/5aMRW0XBsXjIus/4z5V8lrlt+GEfBkM1OjsLJAbfAqYzgAjnACZ+wrS7 DfrFy5n2fkrct29dTBtWw== X-UI-Out-Filterresults: notjunk:1;V01:K0:K4H4evF+ySo=:tmOPOO5fucgyHk5VcJH87m Sb+/YGby+Wn2RbjqBnceWDMdGAA1imnewfM8rH5E0YGF8jCOoRsTFcbFlds6uBfFPB4jFDqT7 DtG/i21Grf/hHh7XHjpdKrcQxZhHAnGYUjhtU+a3swcZ2PbqKtqoE0e14uE9khiLHNsS6bO6q FzKiEZI7HiA316B6ioEn3nyVMjpc0beYGeUeoR1seoWbuBr8O6GqkjJAnzf/4TD0hME/dMqNx ApuViDxyYA4WVsqu9QZiT0Hci7S3Ee5NsDGRnSWJ0z8U4FF5iGu3+SMYlZ3fRtPzRHQU3+YNV mfXWb1tuUQ4H0oe419IlFz0SWY4r9OCg4Zi+ZBF0yODUFnQl+9Ig8HF67fYjxrO+OzkNohsLE e1rQlIwbeGWxH+6J77PmrFDOjwuVmRmDItMsHruX4J5h0B2n84n2tllzRB/7dgbezt/6+hF2P cfjb6VJHW0xE//MncArY+dd/gY0byA5n/ex+Gwv943uxcYqt/XsRzdkT2ccQnUlbPedx0Is+N mHVIIvUuMRjCKfL5CSaiVJ7EskyFg8XZSP8OTngmWyeIkp+w9vStuhaN98d0v0lOMMkDXIyLd jikZeP0tPB2hgadI0KiDmk7jeuwr4Vfy4GjbCle87O46Jdzd80h3neGUj+3GM/r8gJ3sIbbpn tYUST/bTNfWVO5Bl6MwKa4qRrJAN6FCdT5O7Sb6nfNNsMkg== X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jun 2015 06:50:36 -0000 Do you have support for SMTP-AUTH compiled into sendmail? Check with: sendmail -d0.1 -bv postmaster | grep -i sasl I also have the following in my .mc file: FEATURE(`authinfo', `hash /etc/mail/auth/client-info')dnl Regards, Bj=F6rn Heidotting On Sun, 28. Jun 20:36, Christian Weisgerber wrote: > I'm trying to add a very standard piece of configuration to my sendmail > setup: Send all mail to a smart host and use SMTP client authentication > for talking to the smart host. >=20 > There are many examples, howtos, tutorials, etc. about this all over the > net, e.g. > https://www.dnsexit.com/support/mailrelay/sendmail.html >=20 > Define the smart host, set the authentication information in the > access database, and sendmail will automagically use it for SMTP > AUTH. >=20 > Alas, the magic doesn't happen: >=20 > ------------------------------------------------------------------------ > naddy@unix-ag.uni-kl.de... Connecting to [127.0.0.1] via relay... > 220 lorvorc.mips.inka.de ESMTP Sendmail 8.14.9/8.14.9; Sun, 28 Jun 2015 2= 2:01:07 +0200 (CEST) > >>> EHLO lorvorc.mips.inka.de > 250-lorvorc.mips.inka.de Hello localhost [127.0.0.1], pleased to meet you > 250-ENHANCEDSTATUSCODES > 250-PIPELINING > 250-EXPN > 250-VERB > 250-8BITMIME > 250-SIZE > 250-DSN > 250-ETRN > 250-DELIVERBY > 250 HELP > >>> VERB > 250 2.0.0 Verbose mode > >>> MAIL From: SIZE=3D27 > 250 2.1.0 ... Sender ok > >>> RCPT To: > >>> DATA > 250 2.1.5 ... Recipient ok > 354 Enter mail, end with "." on a line by itself > >>> . > 050 ... Connecting to mail.inka.de. via relay... > 050 220 mail.inka.de ESMTP Exim - mail ready at Sun, 28 Jun 2015 22:01:07= +0200 > 050 >>> EHLO lorvorc.mips.inka.de > 050 250-mail.inka.de Hello dslb-188-104-157-230.188.104.pools.vodafone-ip= =2Ede [188.104.157.230] > 050 250-SIZE 67108864 > 050 250-8BITMIME > 050 250-PIPELINING > 050 250-STARTTLS > 050 250 HELP > 050 >>> STARTTLS > 050 220 TLS go ahead > 050 >>> EHLO lorvorc.mips.inka.de > 050 250-mail.inka.de Hello dslb-188-104-157-230.188.104.pools.vodafone-ip= =2Ede [188.104.157.230] > 050 250-SIZE 67108864 > 050 250-8BITMIME > 050 250-PIPELINING > 050 250-AUTH PLAIN LOGIN > 050 250 HELP > 050 >>> MAIL From: SIZE=3D382 > 050 250 OK > 050 >>> RCPT To: > 050 >>> DATA > 050 550 relay not permitted > 050 503-All RCPT commands were rejected with this error: > 050 503-relay not permitted > 050 503 Valid RCPT command must precede DATA > 050 >>> RSET > 050 250 Reset OK > 050 ... Connecting to local... > 050 ... Sent > 250 2.0.0 t5SK17H8027901 Message accepted for delivery > naddy@unix-ag.uni-kl.de... Sent (t5SK17H8027901 Message accepted for deli= very) > Closing connection to [127.0.0.1] > >>> QUIT > 221 2.0.0 lorvorc.mips.inka.de closing connection > ------------------------------------------------------------------------ >=20 > As the -v output shows, sendmail simply never attempts to use client > authentication. _Something_ must be wrong or missing, but I don't > see it. >=20 > sendmail.mc: > ------------------------------------------------------------------------ > OSTYPE(freebsd6) > MASQUERADE_AS(`mips.inka.de') > FEATURE(accept_unresolvable_domains) > FEATURE(access_db) > FEATURE(allmasquerade) > FEATURE(masquerade_envelope) > FEATURE(local_procmail) > FEATURE(use_cw_file) > define(`ALIAS_FILE', `/etc/mail/aliases,-o /etc/mail/aliases.newsgate') > define(`LUSER_RELAY', `local:dev-null') > define(`SMART_HOST', `[mail.inka.de]') > define(`UUCP_MAILER_MAX', 0) > DAEMON_OPTIONS(`Name=3DIPv4, Family=3Dinet') > DAEMON_OPTIONS(`Name=3DIPv6, Family=3Dinet6') > MAILER(local) > MAILER(smtp) > MAILER(../../../../local/share/sendmail/bsmtp) > MAILER(uucp) > ------------------------------------------------------------------------ >=20 > access database: > ------------------------------------------------------------------------ > AuthInfo:mail.inka.de "U:xxxx" "I:xxxx" "P:yyyy" "M:PLAIN" > ------------------------------------------------------------------------ >=20 >=20 > (Meanwhile I'm sending this by UUCP... because it works.) > --=20 > Christian "naddy" Weisgerber naddy@mips.inka.de > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg"