> after a further dig into the setup, i am happy that the mail is handling
> the virtualdomains correctly, if i send an email to tim, it goes into the
> logs as dbmail-tim, this sahould then go via the .qmail in the dbmail home
> dir and pass it to dbmail-smtp, but i am fairly sure that this is not
> happening, qmail is trying to handle the email without passing it to
> dbmail-stmp, which means it is not going via the .qmail file in dbmails
> home dir.
>
> Now excuse the stupid questions (i have always used sendmail), but i
> cannot see how wmail knows to use dbmails .qmail file when the email is
> not addressed to dbmail but to dbmail-<name>. Can anyone elighten me on
> this point ?

Have you followed the qmail install info? (see below) if you've placed the
'domain:user' reference within /var/qmail/control/virtualdomains qmail
should
forward all email from that domain to the specificied user. In your case the
dbmail user.

also don't forget to tell qmail to accept email from that
domain /var/qmail/control/rcpthosts

<snip install doc - qmail>

 -- MTA installation for qmail -(thanks to Edward Allen)-

 Add your domain to /var/qmail/control/rcpthosts.  My
 file looks like:

 /var/qmail/control/rcpthosts:
 squeakerbill.com

 Next, add your domain:dbmail_user_name to /var/qmail/control/virtualdomains
 My file looks like:

 /var/qmail/control/virtualdomains:
 squeakerbill.com:dbmail

 Make sure the file /var/qmail/control/locals exists and is empty!

 Now create a file in the dbmail home directory called .qmail:

  ~dbmail/.qmail:
 |/usr/local/sbin/dbmail-smtp -d ${RECIPIENT:7}

 The pipe tells qmail to pipe the email through a command.  The ${RECIPIEN
 T:7} takes the Environement Variable $RECIPIENT and chops off the first
 seven characters.  This is needed because the value of RECIPIENT is
 dbmail-the_email_address.  If your dbmail user is not dbmail, you'll need
 to change the 7 to the number of characters in your dbmail users's name
plus
 one.  The other approach, I guess, would just be to add a dbmail alias of
 the form [EMAIL PROTECTED] for each user...

 It's that simple.  If you have any questions about qmail and dbmail, I'll
 try to answer them.  Keep in mind that I am new to dbmail.

</snip install doc - qmail>


Hope this helps,

Simon

Reply via email to