I want to create a email pipe. But It is not work.
This my configuration:
name mailbox: firstname.lastname@example.org
Why if Iam test a email to email@example.com, I not get anything data.
Please help me.
Take a peek at your email logs – the Postfix log is either /var/log/maillog or /var/log/mail.log, and the procmail log is /var/log/procmail.log.
Do you see any errors in any of those logs?
Is the script permissions set to “755” so that it can execute?
I have changed to “777” still cant run.
According to the errors in your logs, you are seeing a permissions issue – but it doesn’t need to be “777”, that script can be “755”.
However, the issue is that whenever scripts are executed by Postfix, they’re executed as the user “nobody”.
So what you’d need to do is make sure that the directories leading up to your script are accessible by that user.
Alternatively, if you use Usermin to perform the “feed to program”, rather than doing that through Virtualmin – that performs the feed to program a different way (using the users procmailrc, rather than directly in Postfix ) – and that would avoid the permission issue you’re seeing.
I had to change that to 755.
I use virtualmin. Could you explain more mean? sorry I’m a beginner.
Dear Eric, I get this my logs
Feb 7 07:45:35 ser1 postfix/smtpd: connect from mail-vc0-f169.google.com[220.127.116.11]
Feb 7 07:45:35 ser1 postfix/smtpd: E72D79E7: client=mail-vc0-f169.google.com[18.104.22.168]
Feb 7 07:45:35 ser1 postfix/cleanup: E72D79E7: message-id=CAA=hzTTgV1Ccwwf0G9cS8pMqNb_860_bp4oadjJCF7P5g7N5firstname.lastname@example.org
Feb 7 07:45:36 ser1 postfix/qmgr: E72D79E7: email@example.com, size=1855, nrcpt=1 (queue active)
Feb 7 07:45:36 ser1 local: fatal: execvp /home/domain/domains/support.domain.com/public_html/api/pipe.php: Permission denied
Feb 7 07:45:36 ser1 postfix/local: E72D79E7: firstname.lastname@example.org, email@example.com, relay=local, delay=0.11, delays=0.08/0.01/0/0.02, dsn=4.3.0, status=deferred (temporary failure. Command output: local: fatal: execvp /home/domain/domains/support.domain.com/public_html/api/pipe.php: Permission denied )
Feb 7 07:45:36 ser1 postfix/smtpd: disconnect from mail-vc0-f169.google.com[22.214.171.124]
can you help me?
Eric, are you suggesting to install usermin here?
I am facing the exact same issue Anfidz is facing.