Re: [exim] How to put .forward file commands in exim4.conf

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Heiko Schlittermann
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [exim] How to put .forward file commands in exim4.conf
Erley Barbosa da Silva <erleydoc@???> (Fr 02 Dez 2005 16:54:48 CET):
> I am beginner Exim user.
>
> I do not have linux account for my virtuals users and
> I can not create forward file for my virtuals users.
>
> How to put this .forward commands (below) in my
> exim4.conf ?


Create a directory structure for your virtual users
and let exim lookup the forward file there. It doesn't have to be
a "home directory" in the meaning of a unix system account.

    /home/virtual/forwards/user1
                           user2
                           user3
.... and so on.  user1... beiing the forward file.


And a router in your exim.conf:

    virtualforward:
        driver = redirect
        file = /home/virtual/forwards/$locaal_part
        .... and so on (as you can copy from userforward-Router
        in the standard config)


> # content of the .foward file
> if $h_subject: contains "test" then save
> .maildir/.testFolder.testSubfolder/
> elif $h_from: is "not@???" then save
> .maildir/.SPAM/
> endif


But, this looks like you have some directories for your users, haven't
you? Or what is .maildir? Is it in the users home dir?


    Best regards from Dresden
    Viele Grüße aus Dresden
    Heiko Schlittermann
-- 
 SCHLITTERMANN.de ---------------------------- internet & unix support -
 Heiko Schlittermann HS12-RIPE -----------------------------------------
 gnupg encrypted messages are welcome - key ID: 48D0359B ---------------
 gnupg fingerprint: 3061 CFBF 2D88 F034 E8D2  7E92 EE4E AC98 48D0 359B -