Supprimer un message
cauet
Bon, ca ne va pas aussi simplement que je pourrais l'imaginer.
sms: |/usr/bin/php5 /home/smsaction/automation/mailtosms.php
Erreur (par retour mail):
<sms@mail.smsaction.be>: cannot append message to file
/home/smsaction/automation/mailtosms.php: file is executable
si je fais:
sms: |/home/smsaction/automation/mailtosms.php
avec #!/usr/bin/php5 en tête de script.
Aucun retour mail mais ceci en log:
May 1 23:47:04 ns1 postfix/qmgr[20968]: AE30C7E17: from=<mickael@xxxx.be>, size=1273, nrcpt=1 (queue active)
May 1 23:47:05 ns1 local[21201]: fatal: execvp /home/smsaction/automation/mailtosms.php: No such file or directory
May 1 23:47:05 ns1 postfix/qmgr[20968]: 875B47D42: removed
May 1 23:47:05 ns1 postfix/local[21200]: AE30C7E17: to=<sms@mail.smsaction.be>, relay=local, delay=0.32, delays=0.29/0.01/0/0.02, dsn=4.3.0, status=deferred (temporary failure. Command output: local: fatal: execvp /home/smsaction/automation/mailtosms.php: No such file or directory )
May 1 23:47:05 ns1 postfix/smtpd[21195]: disconnect from ulysse.talessa.com[85.234.192.2]
Idée?
Niveau code, on s'en fou un peu mais voilà pour le moment:
#!/usr/bin/php5
<?php
$stdin = fopen('php://stdin', 'r');
mail("mickael@xxxxxx.be", "Reception SMS", "retour -->".$stdin);
?>
sms: |/usr/bin/php5 /home/smsaction/automation/mailtosms.php
Erreur (par retour mail):
<sms@mail.smsaction.be>: cannot append message to file
/home/smsaction/automation/mailtosms.php: file is executable
si je fais:
sms: |/home/smsaction/automation/mailtosms.php
avec #!/usr/bin/php5 en tête de script.
Aucun retour mail mais ceci en log:
May 1 23:47:04 ns1 postfix/qmgr[20968]: AE30C7E17: from=<mickael@xxxx.be>, size=1273, nrcpt=1 (queue active)
May 1 23:47:05 ns1 local[21201]: fatal: execvp /home/smsaction/automation/mailtosms.php: No such file or directory
May 1 23:47:05 ns1 postfix/qmgr[20968]: 875B47D42: removed
May 1 23:47:05 ns1 postfix/local[21200]: AE30C7E17: to=<sms@mail.smsaction.be>, relay=local, delay=0.32, delays=0.29/0.01/0/0.02, dsn=4.3.0, status=deferred (temporary failure. Command output: local: fatal: execvp /home/smsaction/automation/mailtosms.php: No such file or directory )
May 1 23:47:05 ns1 postfix/smtpd[21195]: disconnect from ulysse.talessa.com[85.234.192.2]
Idée?
Niveau code, on s'en fou un peu mais voilà pour le moment:
#!/usr/bin/php5
<?php
$stdin = fopen('php://stdin', 'r');
mail("mickael@xxxxxx.be", "Reception SMS", "retour -->".$stdin);
?>