From owner-freebsd-questions@freebsd.org Tue Jan 5 11:05:10 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 E694AA61E86 for ; Tue, 5 Jan 2016 11:05:09 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from mail-wm0-x22a.google.com (mail-wm0-x22a.google.com [IPv6:2a00:1450:400c:c09::22a]) (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 A6DF31B73 for ; Tue, 5 Jan 2016 11:05:09 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: by mail-wm0-x22a.google.com with SMTP id b14so23317415wmb.1 for ; Tue, 05 Jan 2016 03:05:09 -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; bh=8GdJO0QsB1/tEYwIptvzRsr6/pX0mAwDclwXpPFoWIo=; b=WQEsq3ZxjllV8LXSPAmHa3bGzV72m2S3tNxs/9lmmfU3SUqIBG6mabZOPIhMz+q3Hc JhKBlJ2Yr6jekJPTd0VpXS4+pw/JCCI7GRJ4GP6lOSMKYfkTKcvA0CIOHhwH/EbhyGGR qFJHz8B8GpcJWsyF4aUj166kbFNcVcpMwz/4uH0WxLC8b/A125eOPoNxwW08fBuB1550 gb8Tq973NrBI50viBTWiMvyUbzUpR3gH/HQskyRPGRvWmWYEczw0dJzdO1KmKBo3aWjF 8qCtW/d1eIKl3mtpPXVRix4P2uloqyB2oOxdGkJMFckS3/AHFwRAd3lfeMyN9yNBehAL /ioA== 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; bh=8GdJO0QsB1/tEYwIptvzRsr6/pX0mAwDclwXpPFoWIo=; b=bgEPzWuhOAP50yMzBhtwDW66G21Su6vo8cScmAj1ypz3OLuEzEDw4mnkEKuOPneC3J y4lf2BY8PYx4SIacppGKJs3qUF/AZQwDrAxzoe2zPDf5moOH4EjoO3TAzfb4h/Sj0oWk beJrBHpvMSyreRR2Qa6LNIgAj12SPKFoGiShr1UQk0DBuSgcl9i1fCm3tSkOS4eipaKt XeiIw+7/1YcQuNBixxwJ3LAmz1k712oW1Y6imnNyH4ogXyjN+KRrQRlEKLEhjgLWyEdm Xx+Qe13p7TlU9TzmYqmhD1OgnpFEzhooHeBMyj9rfrQ6rgNRQT3vLCvEnwF0Umiwe3+z S7hg== X-Gm-Message-State: ALoCoQks19mrtv2NngG4w5gPazo1x7moCqLXqD6B/q8v+QkjJ0EfqWUYdxcpL1Xz+AuDMnBOITO1MGU+POGRl72BqTkdHN8uRg== X-Received: by 10.194.9.98 with SMTP id y2mr39771048wja.105.1451991907885; Tue, 05 Jan 2016 03:05:07 -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 c203sm3009139wmd.5.2016.01.05.03.05.07 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Jan 2016 03:05:07 -0800 (PST) Date: Tue, 05 Jan 2016 03:05:07 -0800 (PST) X-Google-Original-Date: Tue, 5 Jan 2016 11:05:06 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 u05B56QV065180 for ; Tue, 5 Jan 2016 11:05:06 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 u05B56gg065179 for freebsd-questions@freebsd.org; Tue, 5 Jan 2016 11:05:06 GMT (envelope-from mexas) From: Anton Shterenlikht Message-Id: <201601051105.u05B56gg065179@mech-as222.men.bris.ac.uk> To: freebsd-questions@freebsd.org Subject: sendmail config help Reply-To: mexas@bris.ac.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 11:05:10 -0000 Hi I cannot figure out how to set up sendmail to receive mail. I've a server with a static IP. The server runs 9.3-RELEASE-p13 with default sendmail. I registered a domain name, say z.com, and set up DNS and MX. The server has user joe. I want email sent to joe@z.com to be delivered to joe's mailbox on my server. How do I configure sendmail for this? I've looked through a lot of (sometimes confusing or conflicting) docs, at sendmail.org, the FreeBSD handbook and many more online. Still not sure. The best I can get is: 553 5.3.5 z.com. config error: mail loops back to me (MX problem?) 554 5.3.5 Local configuration error My questions: 1. Do I even need MX for this simple setup? Some sources suggest that MX is need when multiple domains are involved. Here I have only a single domain on a single server, with a single IP. Do I still need MX? 2. Is virtual hosting relevant? I followed this guide: http://www.sendmail.com/sm/open_source/tips/virtual_hosting/ and set up /etc/mail/virtusertable as: joe@z.com joe and made a map of it with makemap hash virtusertable < virtusertable Is virtusertable relevant at all? 3. To test, I've been sending email to joe@z.com from a gmail account. I had to add: # cat /etc/mail/relay-domains google.com # To even get though the host. Othewise I was getting: 550 5.7.1 ... Relaying denied Thanks Anton