[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: forward



Hi Michael,
Yes I create virtual_host in table passwd.
Yes I create user alias.
I create tables via http://qmail-sql.digibel.be/layout.html and homedir for
user alias and test via http://qmail-sql.digibel.be/install.html
I check my tables and it's working good (don't save mail local if use
dotqmails) ;-)
I have the same owner of all users in database, I mean user test have the
same chown (and chmod too) as user brano. It's ok ?
I test control/locals or via database but it doesn't still work. I use two
qmail programs =>
root@[hidden /var/qmail/okeychat/control] # /var/qmail/okeychat/rc start
root@[hidden /var/qmail/okeychat/control] # /var/qmail/rc start
root@[hidden /var/qmail/okeychat/control] # ps ax | grep qmail
16607  p1  S      0:00.01 qmail-send
16608  p1  S      0:00.00 /usr/local/bin/tcpserver -dPR -u qmaild -g
qmaild -c50 195.72.14.141 smtp /var/qmail/
16609  p1  S      0:00.00 /var/qmail/okeychat/bin/splogger qmail
16610  p1  S      0:00.00 qmail-lspawn ./Maildir/
16611  p1  S      0:00.00 qmail-rspawn
16612  p1  S      0:00.00 qmail-clean
16615  p1  S      0:00.01 qmail-send
16616  p1  S      0:00.00 /usr/local/bin/tcpserver -dPR -u qmaild -g
qmaild -c50 195.72.14.140 smtp /var/qmail/
16617  p1  S      0:00.00 splogger qmail
16618  p1  S      0:00.00 qmail-lspawn ./Maildir/
16619  p1  S      0:00.00 qmail-rspawn
16620  p1  S      0:00.00 qmail-clean
root@[hidden /var/qmail/okeychat/control] # netstat -na | grep LISTEN | grep
.25
tcp4       0      0  195.72.14.140.25       *.*                    LISTEN
tcp4       0      0  195.72.14.141.25       *.*                    LISTEN
I change source code and recompile to be able run separate qmail process.

If I set control/locals and via database together qmail write error =>
May 27 17:25:21 hidden qmail: 1022513121.635162 new msg 22111
May 27 17:25:21 hidden qmail: 1022513121.636249 info msg 22111: bytes 201
from <brano@xxxxxxxxx> qp 16650 uid 0
May 27 17:25:21 hidden qmail: 1022513121.638787 starting delivery 3: msg
22111 to local brano@xxxxxxxxxxxxxxxx@okeychat.sk
May 27 17:25:21 hidden qmail: 1022513121.640097 status: local 1/10 remote
0/20
May 27 17:25:21 hidden qmail: 1022513121.656877 delivery 3: failure:
Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/

It doesn't recognize brano@xxxxxxxxxxx as email address but as alias to
address test@xxxxxxxxxxx ;-)
How can I fix it ? ;-)

Thanks

Brano from Slovakia


> (i'm not sure if qmail also checks whether the directory is writable).
Yes qmail check if directory is writable but only for others (not owner ;-)
If I set chmod 777 to Maildir qmail don't delivery mail because find +w to
all ;-)
But if I set u-w it's working good ;-) Qmail don't check user chmod.


----- Original Message -----
From: "Michael Devogelaere" <michael@xxxxxxxxxx>
To: "[brano]" <brano@xxxxxxxxxxx>
Cc: <qmail-sql@xxxxxxxxxx>
Sent: Monday, May 27, 2002 4:25 PM
Subject: Re: forward


> Hi Brano,
>
> Did you create the virtual_host in your passwd-table ? Did you create at
least
> the alias-user in that domain ? You have to create a readable
homedirectory
> for that user, even if you want only forwarding. This applies to every
user
> in the passwd-table: everybody needs a readable homedirectory. (i'm not
> sure if qmail also checks whether the directory is writable).
> Do you have a control/locals-file or are you using the database to this
> purpose ?
> (And you don't need the moreip-patch: your desired setup works with
qmail-sql
>  without additional patching).
>
> Regards,
> Michael.
> On Mon, May 27, 2002 at 04:00:55PM +0200, [brano] wrote:
> > Hi all,
> > my dotqmails =>
> >
> > mysql> select * from dotqmails where login = 'test';
> > +-------+--------------+-----------+-----------------+
> > | login | virtual_host | extension | dotqmail        |
> > +-------+--------------+-----------+-----------------+
> > | test  | okeychat.sk  |           | brano@xxxxxxxxx |
> > +-------+--------------+-----------+-----------------+
> > 1 row in set (0.00 sec)
> >
> > I remove only extension to forward mail
> > If pc2000.sk is local ip (another IP but at the same pc) qmail write
error (/var/log/maillog) =>
> >
> > May 27 15:49:29 hidden qmail: 1022507369.060801 delivery 35: failure:
Sorry._Although_I'm_listed_as_a_best-preference_MX_or_A_for_that_host,/it_is
n't_in_my_control/locals_file,_so_I_don't_treat_it_as_local._(#5.4.6)/
> >
> > How can I fix it ?
> > I found some qmail-1.03-moreipme-0.4.patch (patch and reinstall qmail)
and add me ips to moreipme but it still don't work.
> > And how can I forward mail without delivere it local ? (don't save to
local Maildir)
> > If I use /dev/null qmail write error =>
> > May 27 15:54:13 hidden qmail: 1022507653.894975 delivery 40: deferral:
Unable_to_switch_to_/dev/null:_not_a_directory._(#4.3.0)/
> >
> > I'd like to delivery some mail localy and some mails only forward (but
all users must be in mysql database)
> >
> > Thanks
> > Brano from Slovakia
> >
>