Re: mail forwarding: alias

2000-06-11 Thread Jenny Holmberg

Zhiliang Hu [EMAIL PROTECTED] writes:

 There is one more instance: system alias for root works, ignoring
 the account ~root ... is there an exception?

From INSTALL.alias:

* root. Under qmail, root never receives mail. Your system may
generate mail messages to root every night; if you don't have an
alias for root, those messages will bounce. (They'll end up
double-bouncing to the postmaster.) Set up an alias for root in
~alias/.qmail-root.

/Jenny

-- 
"I live in the heart of the machine. We are one." 



mail forwarding: alias

2000-06-08 Thread Zhiliang Hu


I have following mail forwarding set up in /var/qmail/alias/:

(1) postmaster -  mail
listmaster -  mail - admin1, admin2, ...
list-admin -  mail

(2)  webmaster -  web
 www-admin -  web  - admin1, admin2, ...
   www -  web

All the forwarding indicated by "-" is made in /var/qmail/alias/
(individual .qmail-*** files of course); "mail" and "web" are
two regular user accounts, were setup almost identically.

Now the problem is, while mails through "mail" could be distributed
to "admin1, admin2, ...", mails through "web" were all deposited
into its incoming mail box, as if "web - admin1, admin2,..." alias
didn't exist.

I have checked/compared everything I could think of without getting
a clue what is happening.  Could you give some suggestions?

Zhiliang





Re: mail forwarding: alias

2000-06-08 Thread Chris Johnson

On Thu, Jun 08, 2000 at 12:20:49PM -0500, Zhiliang Hu wrote:
 I have following mail forwarding set up in /var/qmail/alias/:
 
 (1) postmaster -  mail
 listmaster -  mail - admin1, admin2, ...
 list-admin -  mail
 
 (2)  webmaster -  web
  www-admin -  web  - admin1, admin2, ...
www -  web
 
 All the forwarding indicated by "-" is made in /var/qmail/alias/
 (individual .qmail-*** files of course); "mail" and "web" are
 two regular user accounts, were setup almost identically.
 
 Now the problem is, while mails through "mail" could be distributed
 to "admin1, admin2, ...", mails through "web" were all deposited
 into its incoming mail box, as if "web - admin1, admin2,..." alias
 didn't exist.

Could you just post the actual contents of the various .qmail-* files? I, for
one, don't know what " www-admin -  web  - admin1, admin2, ..." means.

Chris




Re: mail forwarding: alias

2000-06-08 Thread Zhiliang Hu


Ok, here they are:
  File  Content
--  ---
/var/qmail/alias/.qmail-postmaster  mail
/var/qmail/alias/.qmail-listmaster  mail
/var/qmail/alias/.qmail-list-admin  mail
/var/qmail/alias/.qmail-webmaster   web
/var/qmail/alias/.qmail-www-admin   web
/var/qmail/alias/.qmail-www web

/var/qmail/alias/.qmail-mailuser1
/var/qmail/alias/.qmail-web user1
--  ---

 Date: Thu, 8 Jun 2000 13:31:30 -0400
 From: Chris Johnson [EMAIL PROTECTED]
 To: Zhiliang Hu [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: Re: mail forwarding: alias
 
 On Thu, Jun 08, 2000 at 12:20:49PM -0500, Zhiliang Hu wrote:
  I have following mail forwarding set up in /var/qmail/alias/:
  
  (1) postmaster -  mail
  listmaster -  mail - admin1, admin2, ...
  list-admin -  mail
  
  (2)  webmaster -  web
   www-admin -  web  - admin1, admin2, ...
 www -  web
  
  All the forwarding indicated by "-" is made in /var/qmail/alias/
  (individual .qmail-*** files of course); "mail" and "web" are
  two regular user accounts, were setup almost identically.
  
  Now the problem is, while mails through "mail" could be distributed
  to "admin1, admin2, ...", mails through "web" were all deposited
  into its incoming mail box, as if "web - admin1, admin2,..." alias
  didn't exist.
 
 Could you just post the actual contents of the various .qmail-* files? I, for
 one, don't know what " www-admin -  web  - admin1, admin2, ..." means.
 
 Chris
 






Re: mail forwarding: alias

2000-06-08 Thread Chris Johnson

On Thu, Jun 08, 2000 at 01:29:53PM -0500, Zhiliang Hu wrote:
 
 Ok, here they are:
   File  Content
 --  ---
 /var/qmail/alias/.qmail-postmaster  mail
 /var/qmail/alias/.qmail-listmaster  mail
 /var/qmail/alias/.qmail-list-admin  mail
 /var/qmail/alias/.qmail-webmaster   web
 /var/qmail/alias/.qmail-www-admin   web
 /var/qmail/alias/.qmail-www web
 
 /var/qmail/alias/.qmail-mailuser1
 /var/qmail/alias/.qmail-web user1
 --  ---

You said that "mail" and "web" are regular user accounts. If that's the case,
then ~alias/.qmail-mail and ~alias/.qmail-web will never be consulted.

Chris

  Date: Thu, 8 Jun 2000 13:31:30 -0400
  From: Chris Johnson [EMAIL PROTECTED]
  To: Zhiliang Hu [EMAIL PROTECTED]
  Cc: [EMAIL PROTECTED]
  Subject: Re: mail forwarding: alias
  
  On Thu, Jun 08, 2000 at 12:20:49PM -0500, Zhiliang Hu wrote:
   I have following mail forwarding set up in /var/qmail/alias/:
   
   (1) postmaster -  mail
   listmaster -  mail - admin1, admin2, ...
   list-admin -  mail
   
   (2)  webmaster -  web
www-admin -  web  - admin1, admin2, ...
  www -  web
   
   All the forwarding indicated by "-" is made in /var/qmail/alias/
   (individual .qmail-*** files of course); "mail" and "web" are
   two regular user accounts, were setup almost identically.
   
   Now the problem is, while mails through "mail" could be distributed
   to "admin1, admin2, ...", mails through "web" were all deposited
   into its incoming mail box, as if "web - admin1, admin2,..." alias
   didn't exist.
  
  Could you just post the actual contents of the various .qmail-* files? I, for
  one, don't know what " www-admin -  web  - admin1, admin2, ..." means.
  
  Chris



Re: mail forwarding: alias

2000-06-08 Thread Zhiliang Hu


 You said that "mail" and "web" are regular user accounts. If that's the case,
 then ~alias/.qmail-mail and ~alias/.qmail-web will never be consulted.

 You mean in qmail the user account precedes system alias?
 (in sendmail it is opposite).

 But why one alias, ~alias/.qmail-mail, works fine?  That was where
 I got confused and started to ask ... ;-)

 For your further information, none of the two accounts were setup
 for mails. i.e. no ~/.qmail whatsoever, no ~/Mail, no ~/Mailbox ..)

 Zhiliang




Re: mail forwarding: alias

2000-06-08 Thread Chris Johnson

On Thu, Jun 08, 2000 at 03:18:32PM -0500, Zhiliang Hu wrote:
 
  You said that "mail" and "web" are regular user accounts. If that's the case,
  then ~alias/.qmail-mail and ~alias/.qmail-web will never be consulted.
 
  You mean in qmail the user account precedes system alias?
  (in sendmail it is opposite).

Yep. See /var/qmail/doc/PIC.local2alias. alias will get control of mail only if
a user account doesn't exist.

  But why one alias, ~alias/.qmail-mail, works fine?  That was where
  I got confused and started to ask ... ;-)

I don't know, and couldn't tell you without looking at your whole setup. But if
there's an account called "mail" and there's nothing in users/assign that says
otherwise, ~alias/.qmail-mail won't do anything. If it works in your case, then
something isn't exactly as you described.

Chris



Re: mail forwarding: alias

2000-06-08 Thread Zhiliang Hu


Thank Chris!

There is one more instance: system alias for root works, ignoring
the account ~root ... is there an exception?

Zhiliang

   You mean in qmail the user account precedes system alias?
   (in sendmail it is opposite).
 
 Yep. See /var/qmail/doc/PIC.local2alias. alias will get control of mail only if
 a user account doesn't exist.




Re: mail forwarding: alias

2000-06-08 Thread Charles Cazabon

Chris Johnson [EMAIL PROTECTED] wrote:
 
Yep. See /var/qmail/doc/PIC.local2alias. alias will get control of mail only
if a user account doesn't exist.
 
  But why one alias, ~alias/.qmail-mail, works fine?  That was where I got
  confused and started to ask ... ;-)
 
 I don't know, and couldn't tell you without looking at your whole setup. But
 if there's an account called "mail" and there's nothing in users/assign that
 says otherwise, ~alias/.qmail-mail won't do anything. If it works in your
 case, then something isn't exactly as you described.

I could be wrong, but it might be because something about those "regular
accounts" is funny, and qmail doesn't consider it a valid account.  The
rules qmail-getpw uses are (from the manpage):

  qmail-getpw considers an account in /etc/passwd  to  be  a user  if (1) the
  account  has  a  nonzero  uid, (2) the account's home directory exists (and is
  visible to  qmail- getpw),  and  (3)  the  account  owns  its home directory.
  qmail-getpw ignores  account  names  containing  uppercase letters

So if "mail" or "web" has a non-existent home directory, or one they don't
own, the ~alias/.qmail- files might work for those accounts.

Charles
-- 
--- Charles
Cazabon[EMAIL PROTECTED] GPL'ed software
available at:  http://www.qcc.sk.ca/~charlesc/software/ Any opinions expressed
are just that -- my opinions.
---



Re: mail forwarding: alias

2000-06-08 Thread clemensF

 Charles Cazabon:

   But why one alias, ~alias/.qmail-mail, works fine?  That was where I got
   confused and started to ask ... ;-)
  
  I don't know, and couldn't tell you without looking at your whole setup. But

excusee moi, je suis hercule poirot!  je pens que les accounts `mail' et
`user1' sont identical, et `user1' est =root=!  oui!

c'est le seulement way les deuz could work!

hercule `clemens' poirot