pipe to file

Piping all mail to file in plesk 8.2

  1. Edit "/var/qmail/mailnames/{domain.tld}/.qmail-default"
  2. Remove any lines in the file and add the pipe to file:
    | /var/www/vhosts/{domain.tld}/file.php
  3. Change the file permission to be executable and owned by the correct user/group of the site, specially if you are executing under safe_mode.
    $ chmod 755 /var/www/vhosts/{domain.tld}/file.php
  4. Check to make sure that "/var/qmail/control/rejectnonexist" does not have the corresponding domain listed there.
  5. Restart qmail.

Syndicate content
Comment