BreadCrumbs: Postfix

Postfix

From Luke Jackson

(Difference between revisions)
Jump to: navigation, search
Revision as of 20:53, 13 January 2011 (edit)
Ljackson (Talk | contribs)
(Command To Know)
← Previous diff
Revision as of 20:53, 13 January 2011 (edit)
Ljackson (Talk | contribs)
(Postfix Script (PHP))
Next diff →
Line 30: Line 30:
=== Postfix Script (PHP) === === Postfix Script (PHP) ===
-<code>+<noformat>
<?php <?php
$data = file_get_contents("php://stdin"); $data = file_get_contents("php://stdin");
?> ?>
-<code>+<noformat>
* http://jeroensmeets.net/setup-postfix-to-forward-incoming-email-to-php/ * 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)

<noformat> <?php

 $data = file_get_contents("php://stdin");

?> <noformat>

Personal tools