From: Matt Singerman on
Hi all,

I am treying to configure a new FreeBSD machine to work as an IMAP
server. I've never done this before, so please bear with me.

I am using Cyrus for the IMAP part of it, but I understand that
sendmail is what actually receives the email. My issue is, emails sent
to the server don't show up. I have an "out-of-the-box" configuration,
meaning of course that I haven't done anything to it. I am fairly sure
that it is a sendmail issue, and not a networking issue, because when I
try to telnet to the machine (port 25), I get a connection refused
error.

How does one configure sendmail to properly receive emails? Resumably
this is something pathetically simple, but please try not to chuckle
too much :)

Thanks in advance,

Matt

From: Matt Singerman on
A follow-up to this:

If I am on the server and telnet to 127.0.0.1 25, I can get in. If I
try to telnet to its actual I address (from the server or elsewhere), I
get a connection refused. I am going to go over my FreeBSD
configuration to try and find this. If anyone knows just exactly what
I'm looking for, I'd appreciate the help.

Thanks,

Matt

From: Matt Singerman on
a-HA. Found the problem. Can now telnet to the port. I now have a
COMPLETELY DIFFERENT PROBLEM, though. Of course.

Now when I send mail, I get a bouceback:

Delivery to the following recipient failed permanently:

msingerman(a)141.161.111.78

Technical details of permanent failure:
PERM_FAILURE: SMTP Error (state 9): 553 5.1.2
<matt.singerman(a)gmail.com>... Unrecognized host name gmail.com.

I may know how to fix this one, but if anyone wants to chime in, feel
free to interrupt my monologue :)

From: Claus Aßmann on
Matt Singerman wrote:

> msingerman(a)141.161.111.78

That's not a valid e-mail address.
msingerman@[141.161.111.78] might be...

> <matt.singerman(a)gmail.com>... Unrecognized host name gmail.com.

You have a broken mc/cf file (without MAILER(`smtp')).

Maybe you should start with the file(s) that come with FreeBSD,
and modify them only while reading cf/README. Before you change
something make sure you save the "good" configuration.

--
Note: please read the netiquette before posting. I will almost never
reply to top-postings which include a full copy of the previous
article(s) at the end because it's annoying, shows that the poster
is too lazy to trim his article, and it's wasting my time.
From: Matt Singerman on
Hello,

Thanks for your help. I have been trying to go through the README
file, but frankly, sendmail is a very complicated beast. To try and
make things easier, I have temporarily assigned a FQDN to this server.
I have also added the MAILER(smtp) line to my sendmail.mc file and
recompiled it. I am now receiving a different bouceback error message:

The original message was received at Sun, 3 Jul 2005 09:23:16 -0400
(EDT)
from wproxy.gmail.com [64.233.184.195]

----- The following addresses had permanent fatal errors -----
<msingerman(a)newimap.ncemch.org>
(reason: 550 5.7.1 <msingerman(a)newimap.ncemch.org>... Relaying
denied)

----- Transcript of session follows -----
.... while talking to newimap.ncemch.org.:
>>> DATA
<<< 550 5.7.1 <msingerman(a)newimap.ncemch.org>... Relaying denied
550 5.1.1 <msingerman(a)newimap.ncemch.org>... User unknown
<<< 503 5.0.0 Need RCPT (recipient)

--j63DNRPs000137.1120397007/gaia.ncemch.org
Content-Type: message/delivery-status

Reporting-MTA: dns; gaia.ncemch.org
Received-From-MTA: DNS; wproxy.gmail.com
Arrival-Date: Sun, 3 Jul 2005 09:23:16 -0400 (EDT)

Final-Recipient: RFC822; msingerman(a)newimap.ncemch.org
Action: failed
Status: 5.7.1
Remote-MTA: DNS; newimap.ncemch.org
Diagnostic-Code: SMTP; 550 5.7.1 <msingerman(a)newimap.ncemch.org>...
Relaying denied
Last-Attempt-Date: Sun, 3 Jul 2005 09:23:27 -0400 (EDT)

(gaia.ncemch.org is the master SMTP server for ncemch.org)

I am a bit lost as to what is causing this, though -- is it really a
relaying error, or is this about a connection between newimap and gaia?

Thanks asgain for all your help,

Matt