Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: PM on October 30, 2002, 08:35:40 PM

Title: Divert specific sender to admin?
Post by: PM on October 30, 2002, 08:35:40 PM
How can I set it up so that email from a specific sender, to any local recipient, instead gets diverted to the admin account?
Title: Re: Divert specific sender to admin?
Post by: Nathan Fowler on October 30, 2002, 09:17:46 PM
It is rather tricky, but you would have to write an external program or script to process the CONDREDIRECT function the .qmail file for each user, so upon delivery, it would forward to the single account you defined.

There may be another way, but that's the first that comes to mind.

Nathan
Title: Re: Divert specific sender to admin?
Post by: PM on October 30, 2002, 11:22:00 PM
Sounds fairly straightforward, but do I have to define the same rule for every users mail account? can't i just set it in the default rules that apply to every user?

Nathan Fowler wrote:
>
> It is rather tricky, but you would have to write an external
> program or script to process the CONDREDIRECT function the
> .qmail file for each user, so upon delivery, it would forward
> to the single account you defined.
>
> There may be another way, but that's the first that comes to
> mind.
>
> Nathan
Title: Re: Divert specific sender to admin?
Post by: Nathan Fowler on October 30, 2002, 11:29:04 PM
Nope, my research has found that there is not a global .qmail file, you must update it for each user. :(
Title: Re: Divert specific sender to admin?
Post by: PM on October 31, 2002, 01:29:28 AM
It is mentioned in each users .qmail file, a warning not to modify the user qmail directly, but the template.  I looked at the template and got a bit scared.Can I safely add the condredirect stuff to a users.qmail file or is it going to get overwritten next time I add a new user or something?

Nathan Fowler wrote:
>
> Nope, my research has found that there is not a global .qmail
> file, you must update it for each user. :(
Title: Re: Divert specific sender to admin?
Post by: stephen noble on October 31, 2002, 02:20:49 AM
>How can I set it up so that email from a specific sender, to any local recipient, >instead gets diverted to the admin account?

with dungog.net/sme > products  > email-filtering $50
you add a global procmail rule and apply it to all users
30seconds and its done

regards
stephen noble
dungog.net/sme