|I have a web server running apache/php/mysql for web and |postfix/courier |for mail. using the PEAR php code for sending mail my server can |successfully send mail from a php script as long as the recipient is a |local domain. (I can pick up the mail remotely using pop3). | |If I try to send to a non-local domain I get an error about relaying |(see below for php output of successful send and failed send).
|The box is running (i386) generic with raidframe, OpenBSD3.4, Postfix, |Courier IMAP, Apache. | |SMTP -> FROM SERVER: 454 : Relay access denied SMTP -> ERROR: RCPT not |accepted from server: 454 : Relay access denied SMTP -> get_lines(): |$data was "" SMTP -> get_lines(): $str is "250 Ok " SMTP -> |get_lines(): |$data is "250 Ok " SMTP -> FROM SERVER: 250 Ok Message could |not be sent. Add the sender's address to postfix mynetworks parameter: main.cf: mynetworks = 127.0.0.0/8 [::1]/128 10.0.0.1/32 Ben.