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

Re: [cobalt-users] Re: E-mail setup / catch-all address - procmail ...



Steve Werby wrote:

> "Johan Pretorius" <johan@xxxxxxxxxx> wrote:
> > Steve,
> >
> > Thank you for the reply - I'm new to the Cobalt server, not to
> > Unix as such ;-)  But I need to brush up on my Apache/sendmail
> > skills - sendmail.org, here I come!
> >
> > Do you mind forwarding me the .forward and procmail solutions? Is the
> > latter a sendmail replacement?
>
> A .forward file forwards email to other email addresses and is placed in the
> user's home directory.  I almost never use them so I can't recall offhand if
> you need to put email addresses one per line or on the same line separated
> by commas, but a quick test on your end should tell you which method works.
>

.forward files use both/either/or/and  you can have all users (local/ecternal) email addresss seperated by a comma and a space or a comma and a tab (which ever you prefer).  And you can place the user on a seperate line if you wish.  Bothe work just fine.
ie
    \USER_ACCOUNT, fwd_to_email@xxxxxxxxxx, 2nd_fwd_to_email@xxxxxxxxxx, \3RD_USER_ACCOUNT
or
    \USER_ACCOUNT,
    fwd_to_email@xxxxxxxxxx,
    2nd_fwd_to_email@xxxxxxxxxx,
    \3RD_USER_ACCOUNT

Standard ftp permissions work just fin with this, although you SHOULD ensure that it is ftp'd (or created) and owned by the USER in question, and NOT admin / root, as they make it sick!

>
> <snip>

> The first step is to create a file called .procmailrc and put it
> in the user's home directory.  Make it chmod 644 and chown'ed to the user.

644, will cause problems on both the Raq3/4 I know for sure,
a better solution is to
    chmod 2711 /home/sites/siteX/users/THEUSER
And ensure it is owned by the user obviously (as stated above)
a -rw-r--r-- on the procmailrc file works fine, and keeps the permissions quite tight too

This works just nicely, and breaks nothing that I have found, and as a bonus enables the users "web" directory to still be world visiable to the net ie http://somdomain.com/~user/


> <snip>

--
Regards,
Kul
Kul's Free Scripts/Recipies: http://freebies.omega-isp.com/