Forward mail to a PHP script using procmail on Ubuntu -- 2
$30-250 USD
Completed
Posted almost 8 years ago
$30-250 USD
Paid on delivery
Greetings:
I'm trying to send all email on a user account to a PHP script, but can't quite get it to work.
The box is a Ubuntu 14 from Digital Ocean. From new, I did the following:
apt-get update
apt-get upgrade
apt-get install postfix php5-cli mailutils
adduser smurf
Using the installation wizard, I set postfix up as an "Internet site". If I login as user "smurf" and run the "mail" command, I can see test emails that I have sent from Gmail, etc. to the fully-qualified email address (I pointed an MX to this server's IP address and opened port 25 on the firewall).
My PHP script touches a file and tries to write the contents of STDIN to file. If I pipe it data, it works as expected.
From here, I've tried about 20 different forms of .procmail, .procmailrc, .forward, etc.; none of which work quite right. I think the problem is that I just haven't found the right combination of file names, script, permissions, etc. Every site has a little piece buried amount a ton of other information and I just haven't sifted through it.
I'm looking for step-by-step instructions on what to do next. If you are familiar with procmail, this is probably very easy... I just don't want to spend more hours trying to find the answer by accident when I can pay you for the solution :)
Can fix it for you and describe what I did and instructions for you, but need access to the server to check whats wrong, see log files and detect the problem.
Wont fix by telling what to do and you telling me the command output, it will take forever, will log in, fix it, and tell you what I did and the problem ok?
$35 USD in 1 day
0.0 (0 reviews)
0.0
0.0
3 freelancers are bidding on average $79 USD for this job
hi we are professional web developers from singapore, we work on all kinds of platforms like wordpress, drupal, joomla, magento, php, .net etc., we have a branch for photoshop and illustrator design works. we have office in India and Vietnam too, if you hire us we will help you as per your needs. thank you