From owner-freebsd-questions@FreeBSD.ORG Tue Sep 22 23:27:08 2009 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 12AD61065672 for ; Tue, 22 Sep 2009 23:27:08 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from poseidon.ceid.upatras.gr (poseidon.ceid.upatras.gr [150.140.141.169]) by mx1.freebsd.org (Postfix) with ESMTP id 811068FC08 for ; Tue, 22 Sep 2009 23:27:07 +0000 (UTC) Received: from mail.ceid.upatras.gr (unknown [10.1.0.143]) by poseidon.ceid.upatras.gr (Postfix) with ESMTP id 5E5EDEB526B; Wed, 23 Sep 2009 02:27:06 +0300 (EEST) Received: from localhost (europa.ceid.upatras.gr [127.0.0.1]) by mail.ceid.upatras.gr (Postfix) with ESMTP id 4EC6B4512A; Wed, 23 Sep 2009 02:27:06 +0300 (EEST) X-Virus-Scanned: amavisd-new at ceid.upatras.gr Received: from mail.ceid.upatras.gr ([127.0.0.1]) by localhost (europa.ceid.upatras.gr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iKOF22hFgRW0; Wed, 23 Sep 2009 02:27:06 +0300 (EEST) Received: from kobe.laptop (adsl78-142.kln.forthnet.gr [77.49.125.142]) by mail.ceid.upatras.gr (Postfix) with ESMTP id F0C3A450C6; Wed, 23 Sep 2009 02:27:05 +0300 (EEST) Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.3/8.14.3) with ESMTP id n8MNR4cL068569 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 23 Sep 2009 02:27:05 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.3/8.14.3/Submit) id n8MNR4v5068568; Wed, 23 Sep 2009 02:27:04 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) From: Giorgos Keramidas To: Phusion References: Date: Wed, 23 Sep 2009 02:27:04 +0300 In-Reply-To: (Phusion's message of "Tue, 22 Sep 2009 12:37:27 -0500") Message-ID: <87skee4l2v.fsf@kobe.laptop> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Mark Willson , freebsd-questions@freebsd.org Subject: Re: Help configuring sendmail to send only using authorization to smart host 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: Tue, 22 Sep 2009 23:27:08 -0000 On Tue, 22 Sep 2009 12:37:27 -0500, Phusion wrote: > I recompiled sendmail and now get the following when running sendmail -d0.1 -bv. > I now have added the following to sendmail.mc. > > FEATURE(masquerade_envelope) > FEATURE(genericstable, `hash -o /etc/mail/genericstable') > GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains') > TRUST_AUTH_MECH(`LOGIN PLAIN')dnl > define(`confAUTH_MECHANISMS',`LOGIN PLAIN')dnl > FEATURE(authinfo, `hash -o /etc/mail/auth/authinfo') > define(`SMART_HOST', `mail.test.com') > define(`confCW_FILE', `-o /etc/mail/local-host-names') > dnl DAEMON_OPTIONS(`Name=IPv6, Family=inet6, Modifiers=O') > > I created /etc/mail/auth/authinfo and then did the makemaps to create > the hashd .db file. When trying to email outbound, I still get the > same error in the logs. > > ...relay=mail.test.com. [public_IP_address], dsn=5.6.0, stat=Data format error More about this later. > The /etc/mail/auth/authinfo file looks like the following. > > ---------------------------------------------------------------------------------------------------- > AuthInfo:mail.test.com "U:username@isp.com" "P:password" > ---------------------------------------------------------------------------------------------------- This looks ok. The ``dsn=5.6.0, stat=Data format error'' error code is described (along with other SMTP error codes) in RFC 1893 as: 5.X.X Permanent Failure A permanent failure is one which is not likely to be resolved by resending the message in the current form. Some change to the message or the destination must be made for successful delivery. X.6.X Message Content or Media Status The message content or media status codes report failures involving the content of the message. These codes report failures due to translation, transcoding, or otherwise unsupported message media. Message content or media issues are under the control of both the sender and the receiver, both of whom must support a common set of supported content-types. X.6.0 Other or undefined media error Something about the content of a message caused it to be considered undeliverable and the problem cannot be well expressed with any of the other provided detail codes. A few things to check are: * Can you resolve your own IP address correctly? * Can you resolve 'mail.test.com' correctly? * Can you connect to `mail.test.com' at port 25? * Can you connect to port 587 of `mail.test.com'? * Is `mail.test.com' the actual ISP mail server name? If not, please tell us its _real_ name, so we can also check if there are DNS or other problems. It may even be useful to show us tcpdump output obtained with: tcpdump -n -v -l -X -i em0 'host a.b.c.d && port 25' Where 'em0' is replaced by your outgoing interface, 'a.b.c.d' is replaced by the IP address of 'mail.test.com' and you have carefully edited the log file to _hide_ any occurrence of your password *only*.