Run php using a pipe in Postfix.

Asked 2 years ago, Updated 2 years ago, 68 views

Thank you for your help.

I set up the settings to run php using a pipe in Postfix.
Is there anything missing?
Professor, please
(I set it up in a different environment and it worked.)

Environment
Linux CentOS 6.6
Postfix 2.6.6

1.
Add program start pipe processing to master.cf.
For your information, I did the following

webmaster-test unix-n-pipe
  flags = User = vmailuser argv = /usr/bin/php-f/tmp/test.php$sender

2.
Add the email address that transport passes to the pipe.

webmaster@***.com webmaster-test

If I send an email to webmaster@***.com, /tmp/test.php will run, but it won't.

Jun 10 22:54:30 shcnwq postfix/smtpd [1624]: connect from www937.sakura.ne.jp [219.94.128.177]
Jun 10 22:54:30 shcnwq postfix/smtpd [1624]: A3077A4DB2: client=www937.sakura.ne.jp [219.94.128.177]
Jun 10 22:54:30 shcnwq postfix/cleanup [1637]: A3077A4DB2:message-id=<[email protected]>
Jun 10 22:54:30 shcnwq postfix/qmgr[1402]: A3077A4DB2:from=,size=1376,nrcpt=1(queue active)
Jun 10 22:54:30 shcnwq postfix/virtual [1639]: A3077A4DB2:to=,relay=virtual,delay=0.18,delays=0.15/0.03/0/0.01,dsn=2.0.0,status=sent(delivered to maildir)
Jun 10 22:54:30 shcnwq postfix/qmgr [1402]: A3077A4DB2: removed
Jun 10 22:54:30 shcnwq postfix/smtpd [1624]: disconnect from www937.sakura.ne.jp [219.94.128.177]

postfix

2022-09-30 20:48

1 Answers

I think it may be one of the following:


2022-09-30 20:48

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.