From owner-freebsd-questions@freebsd.org Tue Jan 5 14:13:47 2016 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 B6EBFA61F2A for ; Tue, 5 Jan 2016 14:13:47 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from mail-wm0-x22e.google.com (mail-wm0-x22e.google.com [IPv6:2a00:1450:400c:c09::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 55BF31BE8 for ; Tue, 5 Jan 2016 14:13:47 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: by mail-wm0-x22e.google.com with SMTP id l65so24307320wmf.1 for ; Tue, 05 Jan 2016 06:13:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bris-ac-uk.20150623.gappssmtp.com; s=20150623; h=date:from:message-id:to:subject:reply-to:in-reply-to; bh=Os6g61z10n87uS6M6SuO/uN6BDX+cZHu1IUVm/8/baU=; b=wp6QtE0pPFK/h6tw6vJ95PS4XiFz2VUIt34TdFiqQMkTqpZZcUwKmcvHIhVTkUeTEA Nrn1Pex1CTVEZ88loTVs7xRjVr/iY0cjziKfKJc56k++/J4OlMzD2XABHNiTomsZ3224 Z25MGFoQbVV102uQ0vJDC6YG52Rh1BOw8zjoox6smJIryp9oHTjRub2bz0UtCbmkL8KH v3ZFbYyPBUfS7GdQSZWQU8t1PPk1VfjXn39q3uI72MoJP9LGggiOiXovRTbFvy4fI9Td UpQIEYDdAeAO4e8Yan0P79D6J19X7hg9OxMsWEyFgB1Akji62jqWDgGXQVmgquiC7Gjv i5uA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:message-id:to:subject:reply-to :in-reply-to; bh=Os6g61z10n87uS6M6SuO/uN6BDX+cZHu1IUVm/8/baU=; b=ZathHgk2HkEsu9M0mNUOKcb1Uf2nfSLaV8y1rwLbVDSTkJw+xI/0tjLmQoq1J7q9VE CRDALbxkDANtjZTZG5BMwfCes/AbWPKR4BR11P6OQqWt3n95QhfXSqC0bi/yzGObfPQB QM9NfmfVbrTnnZaFmY3ASl/LU/Zz7V/Lr/1IFbGQNCdLG0+gtlEk4rhxd2AKbsxbd1Dk wP9irjrkpJ4BkjCPoMwFrrnBEgTzi2iptZXWgGAkDfbRIeda/m16Q00H9rKHb6B3rfrA y5paotd90N6nieKU/T6XrKZ9ERNhMTR3LBsXTWdgvBCfKMIy2OgasquCeoeMS9u4wUb5 zr+A== X-Gm-Message-State: ALoCoQmixU0Y7L3Ufm8H47WcVhBVfDCLaTmKq8rUs7o/yF087HyTFy1heznXInzed8hrLkAxjMXhWUSUeHPhyGlrUXeuJ+HodQ== X-Received: by 10.28.228.87 with SMTP id b84mr4626585wmh.36.1452003225715; Tue, 05 Jan 2016 06:13:45 -0800 (PST) Received: from mech-as222.men.bris.ac.uk (mech-as222.men.bris.ac.uk. [137.222.170.4]) by smtp.gmail.com with ESMTPSA id ft4sm91016484wjb.37.2016.01.05.06.13.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Jan 2016 06:13:45 -0800 (PST) Date: Tue, 05 Jan 2016 06:13:45 -0800 (PST) X-Google-Original-Date: Tue, 5 Jan 2016 14:13:44 GMT Received: from mech-as222.men.bris.ac.uk (localhost [127.0.0.1]) by mech-as222.men.bris.ac.uk (8.15.2/8.15.2) with ESMTP id u05EDiQS065868; Tue, 5 Jan 2016 14:13:44 GMT (envelope-from mexas@mech-as222.men.bris.ac.uk) Received: (from mexas@localhost) by mech-as222.men.bris.ac.uk (8.15.2/8.15.2/Submit) id u05EDiRX065867; Tue, 5 Jan 2016 14:13:44 GMT (envelope-from mexas) From: Anton Shterenlikht Message-Id: <201601051413.u05EDiRX065867@mech-as222.men.bris.ac.uk> To: freebsd-questions@freebsd.org, m.seaman@infracaninophile.co.uk Subject: Re: sendmail config help Reply-To: mexas@bris.ac.uk In-Reply-To: <568BA91E.20208@infracaninophile.co.uk> 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: Tue, 05 Jan 2016 14:13:47 -0000 >From: Matthew Seaman > >On 2016/01/05 11:05, Anton Shterenlikht wrote: >> The best I can get is: >>=20 >> 553 5.3.5 z.com. config error: mail loops back to me (MX problem?) >> 554 5.3.5 Local configuration error > >This indicates that although the MX records in the DNS point to your >machine to handle the e-mail for z.com, the machine's sendmail >configuration doesn't state that it should handle the final delivery for >z.com messages. > >You need to add z.com to the file /etc/mail/local-host-names and then >bounce sendmail. What this does is add z.com to sendmail's class w -- >the list of addresses which this instance of sendmail 'owns.' Matthew, thank you, that solved the problem. >Personally, I'd name the mail server as 'smtp.z.com' and use an MX >record to direct the mail to it. That's pretty standard and it will >help avoid your messages getting classed as spam. Sorry, I don't understand this fully. After I set smtp.z.com in MX record, do I need to change anything on the server side for this to work? I naively thought that using smtp.z.com makes sense only if it refers to physically diffent host than z.com. Am I wrong? Sorry for taking your time. Perhaps you can point to a good background reading on this. I'm lost in multitude of advice on the net. Anton