Created Thursday 28 November 2013

  1. Site:

Rewrite recipient address of incoming mail in postfix:

  1. + Added to /etc/postfix/
    remote_header_rewrite_domain = domain.invalid
recipient_canonical_maps = hash:/etc/postfix/canonical
+ Created file:
    touch /etc/postfix/canonical
+ Contents in /etc/postfix/canonical:
+ Commands after:
    postmap /etc/postfix/canonical
    postfix reload
Add user for postfix and WHMCS:
  1. + Create user billing:
adduser billing
+ Add following lines to /etc/postfix/canonical
+ Run:
postmap /etc/postfix/canonical
postfix reload
+ Add following line to /etc/aliases
billing: "| php -q /var/www/whmcs/pipe/pipe.php"
OR (to set default permissions for file creation)
billing: "| (umask 022; php -q /var/www/whmcs/pipe/pipe.php)"
+ Run:
postalias /etc/aliases