How to set a rule to forward email to perl script

Discussion in 'General' started by ametade, Aug 23, 2006.

  1. ametade

    ametade New Member

    Hi everybody,

    I want to forward all emails sent to some email account ([email protected]) to a perl script (/home/www/www.site.com/web/script.pl). I've tried to set the following forward rules at ispconfig email account advanced settings, none of them without success:
    Code:
    /home/www/www.site.com/web/script.pl
    Code:
    |/home/www/www.site.com/web/script.pl
    Code:
    [email protected]|/home/www/www.site.com/web/script.pl
    How can I do this? Is is possible? Help please.
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Go to the user's homedir. You'll find the file .forward there. Edit it and put

    Code:
    |/home/www/www.site.com/web/script.pl
    into it (remove everything else). But be aware: whenever you change one of this user's settings in ISPConfig, .forward will be overwritten!
     
  3. ametade

    ametade New Member

    It worked perfectly. Thanks!
     

Share This Page