vim /etc/postfix/master.cf
Add the following
-o receive_override_options=no_address_mappings
Just below the
smtp inet n - - - - smtpd
Setup the recipient bcc
vim /etc/postfix/recipient_bcc
Add the following as appropriate
upload@tinoest.co.uk upload-script@localhost
Run postmap so postfix can read it.
postmap /etc/postfix/recipient_bcc
Setup the transport
vim /etc/postfix/transport
Add the following as appropriate
upload-script@localhost :
Run postmap so postfix can read it.
postmap /etc/postfix/transport
edit the main.cf
vim /etc/postfix/main.cf
Add the following:
recipient_bcc_maps = hash:/etc/postfix/recipient_bcc
transport_maps = hash:/etc/postfix/transport
Also ensure that localhost is in the mydestination list
Edit the /etc/aliases file
vim /etc/aliases
Add the following, to point to the relevant file you wish to parse the data
upload-script: "|/usr/bin/postfix-parse"
Then restart postfix
systemcntl restart postfix