Re: [vchkpw] /var/qmail/alias/.qmail-user

2006-03-30 Thread John Simpson

On 2006-03-28, at 0606, Jimmy Stewpot wrote:


I have a server that is setup as having vpopmail installed to run  
all of the emails without having system accounts. I have got users  
on the system that have cronjobs running. If those users have a  
crontab that runs and has an error it will email [EMAIL PROTECTED]   
the hostname of the server does not have a virtual host setup in  
vpopmail but I have put aliases into /var/qmail/aliases/.qmail- 
username.


if the system user exists, you would need to create a .qmail file  
in the home directory of the user. /var/qmail/aliases only comes into  
play when the system userid does not exist.


I would have expected that to route the email over to the users  
vpopmail account however it does not work. Any sugestions? or am I  
missing something totally stupid?


most cron implementations support a MAILTO=[EMAIL PROTECTED] variable  
in the crontab file.


--
| John M. Simpson - KG4ZOW - Programmer At Large |
| http://www.jms1.net/   [EMAIL PROTECTED] |
--
| Mac OS X proves that it's easier to make UNIX  |
| pretty than it is to make Windows secure.  |
--




PGP.sig
Description: This is a digitally signed message part


[vchkpw] /var/qmail/alias/.qmail-user

2006-03-28 Thread Jimmy Stewpot

Hello,

I have a server that is setup as having vpopmail installed to run all of 
the emails without having system accounts. I have got users on the 
system that have cronjobs running. If those users have a crontab that 
runs and has an error it will email [EMAIL PROTECTED]  the hostname of the 
server does not have a virtual host setup in vpopmail but I have put 
aliases into /var/qmail/aliases/.qmail-username.


I would have expected that to route the email over to the users vpopmail 
account however it does not work. Any sugestions? or am I missing 
something totally stupid?


Regards,

Jimmy


Re: [vchkpw] /var/qmail/alias/.qmail-user

2006-03-28 Thread Tom Collins

On Mar 28, 2006, at 3:06 AM, Jimmy Stewpot wrote:
I would have expected that to route the email over to the users 
vpopmail account however it does not work. Any sugestions? or am I 
missing something totally stupid?


I did the following on my system to accomplish what you're looking for.

Put the server's fqdn (hostname) in /var/qmail/control/me (and locals 
and rcpthosts/morercpthosts).


Put the address to forward to in ~username/.qmail (the user's actual 
home directory).


This allows expert users to update the forwarding address if necessary.

If you want to continue trying files in ~qmail/alias, did you make sure 
they were owned by alias:qmail?  That might work...


--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/



Re: [vchkpw] /var/qmail/alias/.qmail-user~

2006-03-28 Thread Jeremy Kitchen
On Tuesday 28 March 2006 16:13, Tom Collins wrote:
 On Mar 28, 2006, at 3:06 AM, Jimmy Stewpot wrote:
  I would have expected that to route the email over to the users
  vpopmail account however it does not work. Any sugestions? or am I
  missing something totally stupid?

 I did the following on my system to accomplish what you're looking for.

 Put the server's fqdn (hostname) in /var/qmail/control/me (and locals
 and rcpthosts/morercpthosts).

 Put the address to forward to in ~username/.qmail (the user's actual
 home directory).

 This allows expert users to update the forwarding address if necessary.

 If you want to continue trying files in ~qmail/alias, did you make sure
 they were owned by alias:qmail?  That might work...

ownership of files in ~alias has nothing to do with his problem.

if 'joe' exists as a system user, qmail will deliver email addressed to joe... 
to joe.  ~alias is only consulted if the user 'joe' doesn't exist.

-Jeremy

-- 
Jeremy Kitchen ++ [EMAIL PROTECTED]

In the beginning was The Word and The Word was Content-type: text/plain
  -- The Word of Bob.

And the lord said unto John; Come forth and receive eternal life. John came
fifth and won a toaster.


pgpw10yPFhmxr.pgp
Description: PGP signature


Re: [vchkpw] /var/qmail/alias/.qmail-user~

2006-03-28 Thread Tom Collins

On Mar 28, 2006, at 4:59 PM, Jeremy Kitchen wrote:
if 'joe' exists as a system user, qmail will deliver email addressed 
to joe...

to joe.  ~alias is only consulted if the user 'joe' doesn't exist.


Are you sure about that?  I have a ~alias/.qmail-root file that seems 
to be forwarding email.  I do not have a ~root/.qmail file.


I also have one for another account so I get the output of its cron 
jobs.  Again. no ~user/.qmail file, just a ~alias/.qmail-user.


--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/



Re: [vchkpw] /var/qmail/alias/.qmail-user~

2006-03-28 Thread Jeremy Kitchen
On Tuesday 28 March 2006 17:56, Tom Collins wrote:
 On Mar 28, 2006, at 4:59 PM, Jeremy Kitchen wrote:
  if 'joe' exists as a system user, qmail will deliver email addressed
  to joe...
  to joe.  ~alias is only consulted if the user 'joe' doesn't exist.

 Are you sure about that?  I have a ~alias/.qmail-root file that seems
 to be forwarding email.  I do not have a ~root/.qmail file.

qmail will not deliver to users with uid of 0, or users who don't own their 
home directory.  For instance, if you have a 'bin' user on your system, its 
home directory is probably /bin, which is owned by root (and therefore, not 
bin), so emails to [EMAIL PROTECTED] will be delivered to 
~alias/.qmail-bin

'man qmail-getpw' describes this in full detail.

-Jeremy

-- 
Jeremy Kitchen ++ [EMAIL PROTECTED]

In the beginning was The Word and The Word was Content-type: text/plain
  -- The Word of Bob.

And the lord said unto John; Come forth and receive eternal life. John came
fifth and won a toaster.


pgpw9yI1RZy1U.pgp
Description: PGP signature