Help w/Sendmail configuration

ebaycj

Diamond Member
Mar 9, 2002
5,418
0
0
Hi,

I'm trying to set up an email server with OpenBSD 3.7, and I'm having a few minor problems. I'm trying to use the version of sendmail that comes pre-installed (as i figured that'd be easiest, if there's something easier, let me know). I'm not completely out of it, as I HAVE set a similar box up before, but it was a while ago, on OpenBSD 2.9, and the config was much less complicated (at least it seemed that way).

anyway, here is my dilemma.
I have sendmail listening on port 25 to 0.0.0.0 (so i can connect from the internet)
If I send mail to 'emailtest@host.domain.com', (full host name) it works fine.
If I send mail to 'emailtest@[www.xxx.yyy.zzz]', (ip address) it works fine.
If I send mail to emailtest@domain.com (normal domain email) it doesn't work.
I DO have a valid MX record in DNS that is pointing at this server (it's external ip).

I'd appreciate any help (or if you could help me to install a different/better MTA, that would be great too !)

PM me if you need the config file..

Thanks,
ebaycj
 

ebaycj

Diamond Member
Mar 9, 2002
5,418
0
0
my /etc/mail/local-host-names looks like this (domain name changed to domain.com)
----------------------------------------------------------------------------------------------------

# $OpenBSD: local-host-names,v 1.1 2003/09/23 21:37:11 millert Exp $
#
# List additional hostnames that should be considered local (one per line).
# I.e., any hostname for which you wish mail to be accepted (and delivered).
# You do not need to include the system hostname, localhost, the name(s)
# associated with any active network interface or a CNAME that points to one
# of those names.
# This file is read only at startup or when sendmail(8) is sent SIGHUP.
#
domain.com
 

ebaycj

Diamond Member
Mar 9, 2002
5,418
0
0
that's the wierd thing, when i send an email to emailtest@domain.com, nothing shows up in /var/log/maillog. it's like the remote mail server (in this case i'm using comcast's server to send the mail out) doesn't even try to contact it. however the same remote server contacts it fine when i send to emailtest@host.domain.com. strange, huh?

Thanks for your help :)

ebaycj
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Could you try sending it through the OpenBSD machine to the OpenBSD machine? Or send it manually? There's gotta be an error around there somewhere. I've never really setup an email server though, so hopefully someone pokes their head in to help. :p
 

ebaycj

Diamond Member
Mar 9, 2002
5,418
0
0
Ok so i'm an idiot, it did turn out to be a DNS issue..
Thanks for your help, n0c, it's definitely appreciated !

ebaycj