Date: Tue, 05 Jan 2016 03:05:07 -0800 (PST) From: Anton Shterenlikht <mexas@bris.ac.uk> To: freebsd-questions@freebsd.org Subject: sendmail config help Message-ID: <201601051105.u05B56gg065179@mech-as222.men.bris.ac.uk>
next in thread | raw e-mail | index | archive | help
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 <joe@z.com>... Relaying denied Thanks Anton
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601051105.u05B56gg065179>