sendmail config help
mexas at bris.ac.uk
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 z.com,
and set up DNS and MX.
The server has user joe.
I want email sent to joe at 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
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 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 at z.com
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 z.com>... Relaying denied
More information about the freebsd-questions