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]
I think it may be one of the following:
574 Who developed the "avformat-59.dll" that comes with FFmpeg?
912 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
617 Uncaught (inpromise) Error on Electron: An object could not be cloned
610 GDB gets version error when attempting to debug with the Presense SDK (IDE)
© 2024 OneMinuteCode. All rights reserved.