Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 05 Jan 2016 03:05:07 -0800 (PST)
From:      Anton Shterenlikht <>
Subject:   sendmail config help
Message-ID:  <>

Next in thread | Raw E-Mail | Index | Archive | Help

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 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

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
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 <>... Relaying denied



Want to link to this message? Use this URL: <>