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

Re: Found the problem -- Re: trouble with alias



--- Michael Devogelaere <michael.devogelaere@xxxxxxxxxx> wrote:
> Hi,
> 
> This is the intended behaviour. The parameter only affects
> qmail-smtpd and
> won't affect local deliveries since they get in the queue through 
> qmail-inject. 
> Qmail-smtpd runs as user 'qmaild'. In general this user cannot check
> the
> existance of .qmail-files since it doesn't have access to all
> directories.
> So it won't check whether .qmail-webmaster exists or not. It will
> only
> check in the database if a user 'webmaster' exists or an alias
> 'alias-default' or 'alias-webmaster' or 'alias-webmaster-default'. If

does it look for 'alias-webmaster' in the passwd table AND
dotqmail-table?

> none
> of these exist, it assumes the user doesn't exist and won't accept
> the mail.
> This happens only if you _explicitely_ set allow_recipients_from_db
> to "yes".
> 
> This feature will work much better on your server if you stop using
> .qmail-files and use the dotqmails-table. In fact: this feature is
> useless if 
> you don't use a dotqmails-table. You only  need to put  your
> /var/qmail/alias/.qmail* files in the database: users can still have
> their
> own .qmail-files. 
> 
> Regards,
> Michael.
> 
> 
> On Mon, Jan 13, 2003 at 12:18:26AM -0800, Caffeinate The World wrote:
> > The key to the problem seems to be this param in
> > /var/qmail/control/sqlserver: allowed_recipients_from_db
> > 
> > Asssuming alias is defined for mydomain.com and I've setup in
> alias'
> > home dir .qmail-webmaster, if 
> > 
> >     allowed_recipients_from_db yes
> > 
> > mail to webmaster@xxxxxxxxxxxx will only be received when sent from
> a
> > host in my subnet or under mydomain.com. If mail is sent to
> > webmaster@xxxxxxxxxxxx from an external source like Yahoo or
> Hotmail,
> > no errors, no logs will be given, and no mail will be received by
> > webmaster.
> > 
> > If I changed 
> > 
> >     allowed_recipients_from_db no
> > 
> > then mail is received by webmaster just fine from hosts in my
> subnet
> > AND from external mail servers (Yahoo or Hotmail).
> > 
> > Is this the intended behavior and if so, why does it work for
> "local"
> > hosts and not external hosts when set to 'yes'.
> > 
> > P.S. I've already read the description at:
> > 
> >   http://qmail-sql.digibel.be/sqlserver.html
> > 
> > but am still confused by what the above param does.
> > 
> > --- Caffeinate The World <mochaexpress@xxxxxxxxx> wrote:
> > > 
> > > --- Caffeinate The World <mochaexpress@xxxxxxxxx> wrote:
> > > > i seem to be able to send mail to webmaster@xxxxxxxxxxxx from
> the
> > > > server where qmail-sql is running but not from a remote site
> like
> > > > yahoo.com or hotmail.com to webmaster@xxxxxxxxxxxxx
> > > > 
> > > > i do have a catch all alias in my sql table for mydomain.com.
> i've
> > > > also
> > > > verified this with:
> > > > 
> > > > # ./qmail-getpw webmaster mydomain.com
> > > > alias10021002/var/qmail/alias-webmaster0#
> > > 
> > > I didn't look at this very closely. Why is the above
> alias-webmaster?
> > > Shouldn't it look at /var/qmail/alias/.qmail-webmaster like how
> qmail
> > > originally was designed? this one seems to be looking at
> > > .../alias-webmaster/{dot-qmail-files}.
> > > 
> > > > it seems to be working.
> > > > 
> > > > when sending mail from a remote host like yahoo or hotmail
> (i'ven't
> > > > any
> > > > access from another system) to webmaster@xxxxxxxxxxxx it
> doesn't
> > > even
> > > > show up in the mail log.
> > > > 
> > > > my alias worked fine til i moved to qmail-sql. one thing i had
> to
> > > do
> > > > was in the ~alias/.qmail-webmaster file i changed from a local
> > > user:
> > > > 
> > > >   melocal
> > > > 
> > > > to 
> > > > 
> > > >   melocal@xxxxxxxxxxxx
> > > > 
> > > > because i don't have melocal realservername.mydomain.com listed
> in
> > > > the
> > > > sql table.
> > > > 
> > > > any thoughts?
> > > > 
> > > > __________________________________________________
> > > > Do you Yahoo!?
> > > > Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> > > > http://mailplus.yahoo.com
> > > 
> > > 
> > > __________________________________________________
> > > Do you Yahoo!?
> > > Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> > > http://mailplus.yahoo.com
> > 
> > 
> > __________________________________________________
> > Do you Yahoo!?
> > Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> > http://mailplus.yahoo.com
> > 
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com