[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [SLUG] What's so great about qmail?
G'day,
On Sun, Jul 02, 2000 at 12:30:17PM +1000, David Fisher wrote:
> > On Sun, Jul 02, 2000 at 10:45:15AM +1000, David Fisher wrote:
> > > That made precisely no difference whatsoever. I still get the same
> > > messages from EXMH and fetchmail. Any further suggestions, folks?
> >
> > Well, are you sure that you've tweaked the right hosts.allow
> > file, corresponding to the tcp-env/inetd that you're using. In
> > my experience, there is wide variation in the specifics of these
> > things.
>
> Well, I'm totally confused now. How many hosts.allow files are there? I
> made the changes you suggested in /etc/hosts.allow - it's the only one I
> know.
How did you go about the install, some binary package or from source?
It might be an idea to understand the flow of mail once it's received:
1: An email is received and tcp_wrappers is initiated via inetd:
Make sure the /etc/hosts.allow file is configured
correctly (as shown before by David)
This will tell qmail to allow relaying or not.
2: Qmail starts to handle the mail:
It will check /var/qmail/rcpthosts (if you're not allowed to relay) to see
whether it should allow delivery of the mail.
It will check /var/qmail/locals to see whether to deliver local or remote.
NOTE: qmail may not be configured as above - sometimes it may not use
tcp_wrappers (tcpd). Take a look in /etc/inetd.conf for the
following lines:
tcp_wrappers (tcpd):
smtp stream tcp nowait qmaild /usr/sbin/tcpd /var/qmail/bin/tcp-env \
/var/qmail/bin/qmail-smtpd
*not* tcp_wrappers (tcp-env):
smtp stream tcp nowait qmaild /var/qmail/bin/tcp-env tcp-env \
/var/qmail/bin/qmail-smtpd
IF you're using straight tcp-env then the situation is similar to tcp_wrappers
(shown above) however step 1 is skipped. ie: You jump straight to step 2 and
assume relay is denied (so it checks /var/qmail/rcpthosts). This is a very
restrictive setup - really only to allow delivery of local mail...
I also suggest reading the doco that comes with the qmail distribution (all
the INSTALL* files and the FAQ).
Hope this helps ;)
Jason Nicholls
--------------------------------------------------------------------
Jason Nicholls icq: 11745841 email: <jason@nospam.mindsocket.com.au>
Proprietor mobile: 0417 410 811
Mind Socket [web services] http://www.mindsocket.com.au/
--------------------------------------------------------------------
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to slug-request@nospam.slug.org.au with
unsubscribe in the text