Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jun 2003 09:15:32 -0500
From:      "Mark Johnston" <mjohnston@skyweb.ca>
To:        <guilherme@nortenet.pt>
Cc:        freebsd-isp@freebsd.org
Subject:   Re: qmail not listening
Message-ID:  <003b01c33cb6$91ff06b0$be0fa8c0@MJOHNSTON>
In-Reply-To: <3efc3f74.3464.0@nortenet.pt>

next in thread | previous in thread | raw e-mail | index | archive | help
Guilherme Oliveira wrote:
> Thanks to people for the help.
> 
> My problem was that it was not working by inetd so I run with daemon
> tools and it's working now.
> 
> But I have 2 new problems:
> 
> 1- My customers will use microsoft outlook express with dinamic ip's.
So
> I can't configure rcpthost. The result will always be "553: relay
> denied".  Exists SMTP-after-POP with http://em.ca/~bruceg/relay-ctrl/
> but outlook express invert the process with POP-after-SMTP. No way !
Any
> suggestions ?

I'm afraid I'll have to pass on this one, apart from suggesting
authenticated SMTP and giving you these URLs:

http://www.cuni.cz/~vhor/qmail/smtpauth-en.html
http://www.nimh.org/dl/qmail-smtpd.c

You might want to use some kind of encryption if you're going to
authenticate SMTP, but if you're running POP3 in cleartext over the same
link, there's not much point.

> 2- my djbns is configured with 
> 
> .vianaonline.com:213.13.121.74:ns1.vianaonline.com.
> .vianaonline.com:213.13.121.75:ns2.vianaonline.com.
> =vianaonline.com:213.13.121.74
> +www.vianaonline.com:213.13.121.76
> @vianaonline.com:213.13.121.77
> 
> and my email server is configured behind natd with 192.168.1.2.  What
> happens is if I configure the email client with vianaonline.com as
email
> server it will connect to 213.13.121.74. Not 213.13.121.77 as it's
> configured.

You're confusing an MX record with an A record.  The third line creates
an A record for vianaonline.com of 213.13.121.74, and a PTR record for
74.121.13.213.in-addr.arpa to vianaonline.com.  The fifth line creates
an MX record for vianaonline.com for a.mx.vianaonline.com (a default
name supplied by tinydns), and an A record for a.mx.vianaonline.com to
213.13.121.77.

Converted to (what I consider to be) a more readable form, it would look
like the following - note I've skipped the SOA and PTR records.

vianaonline.com.        NS      ns1.vianaonline.com.
vianaonline.com.        NS      ns2.vianaonline.com.
ns1.vianaonline.com.    A       213.13.121.74
ns2.vianaonline.com.    A       213.13.121.75
vianaonline.com.        A       213.13.121.74
www.vianaonline.com.    A       213.13.121.76
vianaonline.com.        MX      a.mx.vianaonline.com.
a.mx.vianaonline.com.   A       213.13.121.77

An MX record is used only by mail servers that want to deliver mail
to your domain, not by clients.  When you put 'vianaonline.com' into
your clients as the SMTP server, they use the A record - which is
213.13.121.74.  I would do the following:

.vianaonline.com:213.13.121.74:ns1.vianaonline.com.
.vianaonline.com:213.13.121.75:ns2.vianaonline.com.
+vianaonline.com:213.13.121.74
+www.vianaonline.com:213.13.121.76
@vianaonline.com:213.13.121.77:mail.vianaonline.com

which would result in incoming mail being directed to
mail.vianaonline.com at 213.13.121.77.  You would use
mail.vianaonline.com in your mail clients as the SMTP server.  I have
changed your = line to a + in the assumption that you don't actually
have reverse DNS delegated from your ISP; if you do, you'll want to
create a number of other PTR records as well, for the other IPs.

As a side note, are you sure you want www.vianaonline.com and
vianaonline.com to point to two different machines?  Many web surfers
(incorrectly) assume they're equivalent.

See http://cr.yp.to/djbdns/tinydns-data.html for more details on the
tinydns data file.

HTH,
Mark



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?003b01c33cb6$91ff06b0$be0fa8c0>