Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Oct 2001 18:18:57 -0700
From:      "Drew Tomlinson" <drew@mykitchentable.net>
To:        <john@day-light.com>, <isp@freebsd.org>
Subject:   Re: Bad Network Config? - Mail Refused
Message-ID:  <01d201c15385$086b73a0$0301a8c0@bigdaddy>
References:  <001001c15352$340ee6a0$1505010a@daylight.net>

next in thread | previous in thread | raw e-mail | index | archive | help
----- Original Message -----
From: "John Brooks" <john@day-light.com>
To: <isp@freebsd.org>
Sent: Friday, October 12, 2001 12:15 PM
Subject: RE: Bad Network Config? - Mail Refused


> once you made the telnet connection to port 25, try manually sending
> mail
>
> helo blacksheep
> mail from: drew@mykitchentable.net
> rcpt to: valid_user_on_system
> data
> this is a test
> .
> quit
>
> you should get a 220 response at connection, a 250 reponse for most
> commands, a 354 response for "data", and a 221 response at
termination

It works:

blacksheep# telnet blacklamb.mykitchentable.net 25
Trying 192.168.1.4...
Connected to blacklamb.
Escape character is '^]'.
220 blacklamb.mykitchentable.net ESMTP Postfix
helo blacksheep
250 blacklamb.mykitchentable.net
mail from: root
250 Ok
rcpt to: drew
250 Ok
data
354 End data with <CR><LF>.<CR><LF>
this is a test
.
250 Ok: queued as 5AF6BEE623
quit
221 Bye
Connection closed by foreign host.

>
> if that works check in /var/mail/ to see if mail ended up in the
mailbox

I'm using Maildir format and received the mail in my IMAP client.

> did you make sure that root is aliased to a valid user?

I think so.  We're talking about the "from" box (blacksheep), right?
I have this entry in my alias file on blacksheep and have run
newaliases:

root:   drew@mykitchentable.net

The attempt here is to redirect all mail to root (daily cron jobs) on
the firewall (blacksheep) to my mail server (blacklamb) where I get
the rest of my mail.  It worked fine when I was building the firewall
and only using one NIC (ed0 192.168.1.2).  When I enabled the firewall
as a gateway and put it between my ADSL modem/router (the ADSL box
does NAT) to pass traffic between my private network (ed0) and the
Internet (ed1 192.168.10.2) is when I started getting the connection
refused messages.

> check /usr/local/etc/postfix/main.cf and make sure you've set it up
> properly. some things to look at:
>
> myhostname
default

> mydomain
default

> myorigin
myorigin = $mydomain

> mydestination
mydestination = $myhostname, localhost.$mydomain, $mydomain

> mynetworks
mynetworks = 192.168.0.0/16, 127.0.0.0/8

> alias_database
On the mail server (blacklamb), I have these two entries:

root:   my.logon
drew:   my.logon

So mostly it is a default setup.  This setup receives mail from
everywhere except my firewall.  And from your telnet suggestion above,
apparently it even accepts "manual" mail from my firewall.  Now I'm
really stumped.

> try setting "disable_dns_lookups = yes" to eliminate it being a dns
> issue

I added:
disable_dns_lookups = yes
and then issued postfix reload.  Same problem.

> personally I'd run postfix on both boxes.

I may try it as a last resort.  I just wanted to keep the firewall
"standard" as it's not doing anything more than sending it's internal
messages to root.

Thanks for your help!  I'd appreciate any other suggestions you may
have.

Drew

> -----Original Message-----
> From: owner-freebsd-isp@FreeBSD.ORG
> [mailto:owner-freebsd-isp@FreeBSD.ORG]On Behalf Of Drew Tomlinson
> Sent: Friday, October 12, 2001 1:40 PM
> To: john@day-light.com; isp@freebsd.org
> Subject: Re: Bad Network Config? - Mail Refused
>
>
> ---- Original Message -----
> From: "John Brooks" <john@day-light.com>
> To: <isp@freebsd.org>
> Sent: Friday, October 12, 2001 10:54 AM
> Subject: RE: Bad Network Config? - Mail Refused
>
>
> > did you try telneting from the firewall to port 25 on the server?
> that
> > should show you where things are breaking down
>
> No but now I have. :)  That works fine.
>
> blacksheep# telnet blacklamb.mykitchentable.net 25
> Trying 192.168.1.4...
> Connected to blacklamb.
> Escape character is '^]'.
> 220 blacklamb.mykitchentable.net ESMTP Postfix
>
> So I guess I have a config problem with Postfix?  Any ideas where to
> look?
>
> Thanks,
>
> Drew
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-isp" in the body of the message
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-isp" in the body of the message
>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01d201c15385$086b73a0$0301a8c0>