On Wed, Nov 15, 2000 at 11:33:22AM -0200, Cleiton Luiz Siqueira wrote:
> Hi all,
>
> I just started using qmail 1.03 a week ago too, I have had some
Welcome!
> problems with it, and I've not found in the FAQ the solutions for
> these problems.
[snip authentication stuff...]
> My problems are with SMTP. I installed the "qmail-1_03.tgz"
> package in a FreeBSD 3.4 Box. When I send a message for a local user,
> this message doesn't get in the mailbox. And the qmail-send answer me
> that the mailbox doesn't exist, but the mailbox exist, and it is with
> the right permissions. I use qmail with maildir option.
Ok.
> The domain is in the locals, me and rcpthosts files.
> I've started pop3 and smtp in the inetd.conf file with the follow
> lines:
>
> pop3 stream tcp nowait root /var/qmail/bin/qmail-popup qmail-popup
> ab.com.br /bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir
> smtp stream tcp nowait qmaild /var/qmail/bin/tcp-env tcp-env
> /var/qmail/bin/qmail-smtpd
Ok, although tcpserver is recommended these days rather than inetd. I've
run qmail on FreeBSD 3.3, 3.4, 3.5 and 4.x with tcpserver and I prefer
that configuration.
> I use the shell script in the /usr/local/etc/rc.d/qmaild.sh with
> the follow lines:
>
> #!/bin/sh
>
> # Using splogger to send the log through syslog.
> # Using qmail-local to deliver messages to ~/Mailbox by default.
>
> exec env - PATH="/var/qmail/bin:$PATH" \
> qmail-start ./Maildir splogger qmail &
^^^^^^^^^
The first argument to qmail-start tells qmail how to deliver local mail.
In your case, you've said to deliver it to a mbox-style mailbox called
Maildir in the user's home directory, *not* a maildir.
If you add a trailing slash, like this: ./Maildir/, you are saying to
deliver to a maildir-style directory named Maildir in the users home
directory.
If your users have .qmail files in their home directories, they can
specify different delivery instructions. Otherwise, the default delivery
instruction from the qmail-start command-line is followed. If there is
no mbox file named $HOME/Maildir, then qmail is correct - the mailbox
doesn't exist. Add the slash at the end and see if that works better.
> Another thing is when I send a message from the local network to
> other domains, it answers me that these domains aren't in the
> rcpthosts files, but it's is very strange!!!
You need to enable selective relaying. See
http://web.infoave.net/~dsill/lwq.html#relaying
for information on how to configure this.
> Can you imagine if I put in the rcpthosts files whole the domains
> that exist in the Internet networking?
The rcpthosts file should contain only domains that you want to receive
mail *for*. NOT domains you want to send mail *to*. Again, to allow
other machines to use your qmail installation to send mail, you must
enable relaying for those machines. See above.
> I understood that the rcpthosts file is to avoid spam from the other
> networks, and not to filter the destination addresses.
> If you could help me about it I would thank.
>
>
> Regards Cleiton.
>
-thl