Ask Email Pipe On Virtualmin

9 posts / 0 new
Last post
#1 Wed, 02/06/2013 - 00:53
anfidz

Ask Email Pipe On Virtualmin

I want to create a email pipe. But It is not work.

This my configuration: name mailbox: help@domain.com /home/username/domains/sub.domain.com/public_html/api/pipe.php

Why if Iam test a email to help@domain.com, I not get anything data. Please help me.

Thank you

Wed, 02/06/2013 - 10:51
andreychek

Howdy,

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?

-Eric

Sat, 02/16/2013 - 16:57 (Reply to #2)
anfidz

Dear Eric, I get this my logs

Feb  7 07:45:35 ser1 postfix/smtpd[4666]: connect from mail-vc0-f169.google.com[209.85.220.169]
Feb  7 07:45:35 ser1 postfix/smtpd[4666]: E72D79E7: client=mail-vc0-f169.google.com[209.85.220.169]
Feb  7 07:45:35 ser1 postfix/cleanup[4670]: E72D79E7: message-id=<CAA=hzTTgV1Ccwwf0G9cS8pMqNb_860_bp4oadjJCF7P5g7N5+g@mail.gmail.com>
Feb  7 07:45:36 ser1 postfix/qmgr[20044]: E72D79E7: from=<domain@gmail.com>, size=1855, nrcpt=1 (queue active)
Feb  7 07:45:36 ser1 local[4672]: fatal: execvp /home/domain/domains/support.domain.com/public_html/api/pipe.php: Permission denied
Feb  7 07:45:36 ser1 postfix/local[4671]: E72D79E7: to=<help-domain.com@ser1.domain.com>, orig_to=<help@domain.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[4666]: disconnect from mail-vc0-f169.google.com[209.85.220.169]

can you help me?

Sat, 02/16/2013 - 16:55 (Reply to #3)
anfidz

sorry double post

Wed, 02/06/2013 - 20:33
tpnsolutions
tpnsolutions's picture

Hi,

Is the script permissions set to "755" so that it can execute?

Best Regards,
Peter Knowles
TPN Solutions

E: pknowles@tpnsolutions.com
P: 604-782-9342
W: http://www.tpnsolutions.com
Best Regards,
Peter Knowles | TPN Solutions
Email: pknowles@tpnsolutions.com | Skype: tpnassist
Wed, 02/06/2013 - 23:15 (Reply to #5)
anfidz

I have changed to "777" still cant run.

thank you

Thu, 02/07/2013 - 08:19
andreychek

Howdy,

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.

-Eric

Thu, 02/07/2013 - 09:06 (Reply to #7)
anfidz

Dear Eric,

I had to change that to 755.

I use virtualmin. Could you explain more mean? sorry I'm a beginner.

thank you

Sat, 04/20/2013 - 05:20
remibruggeman

Eric, are you suggesting to install usermin here? I am facing the exact same issue Anfidz is facing.

Thanks!

Topic locked