BreadCrumbs: Postfix
Postfix
From Luke Jackson
(Difference between revisions)
Revision as of 05:07, 14 May 2009 (edit) Ljackson (Talk | contribs) (→Deferred: Connection refused by [127.0.0.1]) ← Previous diff |
Revision as of 20:53, 13 January 2011 (edit) Ljackson (Talk | contribs) (→Command To Know) Next diff → |
||
Line 27: | Line 27: | ||
cat /var/log/mail.log | cat /var/log/mail.log | ||
/etc/init.d/postfix reload | /etc/init.d/postfix reload | ||
+ | |||
+ | === Postfix Script (PHP) === | ||
+ | |||
+ | <code> | ||
+ | <?php | ||
+ | $data = file_get_contents("php://stdin"); | ||
+ | ?> | ||
+ | <code> | ||
+ | |||
+ | * http://jeroensmeets.net/setup-postfix-to-forward-incoming-email-to-php/ | ||
[[Category:Linux]] | [[Category:Linux]] |
Revision as of 20:53, 13 January 2011
Contents |
FAQ
Deferred: Connection refused by [127.0.0.1]
Please uninstall sendmail and then restart Postfix.
/etc/mail/access
# Check the /usr/share/doc/sendmail/README.cf file for a description # of the format of this file. (search for access_db in that file) # The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc # package. # # by default we allow relaying from localhost... localhost.localdomain RELAY localhost RELAY 127.0.0.1 RELAY mail.server.ext RELAY
Command To Know
postfix flush postmap mailq cat /var/log/mail.log /etc/init.d/postfix reload
Postfix Script (PHP)
<?php
$data = file_get_contents("php://stdin");
?> <code>