sendmail config help

Anton Shterenlikht mexas at
Tue Jan 5 11:05:10 UTC 2016


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,
and set up DNS and MX.

The server has user joe.

I want email sent to joe at 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, the FreeBSD
handbook and many more online. Still not sure.

The best I can get is:

553 5.3.5 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:

and set up /etc/mail/virtusertable as:

joe at	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 at
from a gmail account. I had to add:

# cat /etc/mail/relay-domains

To even get though the host.
Othewise I was getting:

550 5.7.1 <joe at>... Relaying denied



More information about the freebsd-questions mailing list