vhcs2 debian etch procmail mail forward

Discussion in 'Server Operation' started by mbunal, Sep 23, 2008.

  1. mbunal

    mbunal New Member

    hi all

    How can I forward a message but still leave a copy on the server?

    i must use .procmailrc file:

    Code:
    	:0c
    	! [email protected]
    but where i create that file and what is other parameters for vhcs?

    can u help me?

    cherss,
    Baris.
    ________
    Wiki Vaporizer
     
    Last edited: Sep 8, 2011
  2. falko

    falko Super Moderator Howtoforge Staff

    You must create it in the user's home directory.

    Take a look at
    Code:
    man procmailex
    to see some procmail examples.
     
  3. mbunal

    mbunal New Member

    please tell me, where is the user's home directory for vhcs2?
    ________
    Vaporizer Volcano
     
    Last edited: Sep 8, 2011
  4. falko

    falko Super Moderator Howtoforge Staff

    You can find out a user's home directory by taking a look at /etc/passwd.
     
  5. mbunal

    mbunal New Member

    it did not work.

    my passwd looks like:

    vu7106:x:7106:7106:virtual-user:/var/www/chroot/virtual/exmaple.com:/bin/false
    ________
    RubieROSE
     
    Last edited: Sep 8, 2011
  6. falko

    falko Super Moderator Howtoforge Staff

    vu7106's home directory is /var/www/chroot/virtual/exmaple.com, so you must place the .procmailrc file there.
     

Share This Page