foXServe 1.3
Smooth. Secure. Solid State. Silent. eXtraSmall.
@ KDEV 2007 Some Rights Reserved
How to enable a SMTP client/server, POSTOFFICE a full SENDMAIL replacement Postoffice is a simple SMTP mail server and client written by David Parson. This feature was included from release 1.3.4. This feature is available on foXServe, all you have to do is choose p from config menu as shown below After the installation, exit from config with (x) and launch from /mnt/flash/postoffice ./smtp_start.sh your SMTP server is enabled on localhost, and will relay mail sended only by your system. To test it you can launch: postoffice -fmyname@domain.tld destination@domain.tld <press enter> and type the text message to send then <enter> and ctrl+d keys to send the message. The full postoffice command line syntax is described on these manual page Postoffice is a FULL sendmail replacement so the SENDMAIL IS SUPPORTED!!! Additional sendmail compliant commands are: mailq - to list outgoing mails queue located in /var/spool/mqueue newaliases - to edit/build alias database: rebuilds the random access data base for the mail aliases file /etc/aliases. It must be run each time you edit /etc/aliases file. The sendmail syntax allow you to set subject CC: BCC: and headers: example: create a file named mail.txt in your /mnt/flash folder with this content: date: Thu, 22 Dec 2005 12:40:17 -0500 (EST) to: name@domain.tld cc: name1@domain.tld subject: type your subject from: myname@mydomain.tld Body of the message save and launch: sendmail -t < mail.txt Thanks to these feature you can benefit of mail() function inside php For example to compose a HTML formatted mail message you can use the following PHP script: <?php $body="<em>HTML</em> formatted <strong>Message</strong"; $headers = "From: info@example.com \r\n"; $headers.= "Content-Type: text/html; charset=ISO-8859-1 "; $headers .= "MIME-Version: 1.0 "; mail("kanta@example.com", "An HTML Message", $body, $headers); ?> Postoffice configuration file is located in /etc/postoffice.cf a lot of options are available on this manual page. To enable the SMTP server on startup you have just to follow the how to on this link: http://www.acmesystems.it/?id=57#10000 and use the following line instead of testprog.out /mnt/flash/postoffice/smstp_start.sh
|
||
Configuration files PATH postoffice configuration: /etc/postoffice.cf |
For more info go to postoffice website.
SMS MMS FoxBox the appliance based on foxserve for messaging management |
foXServe is Developed by KDEV a Davide Cantaluppi company and running on ACME SYSTEMS srl Hardware.
@ KDEV 2007 Some Rights Reserved
foXServe firmware is free
Download it now! |
LICENSES
Apache/1.3.37 Server
Copyright 2007 Kdev of Davide Cantaluppi Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
PHP 5.0.5
"This product includes PHP software, freely available from <http://www.php.net/software/>"
MOD_DAV
This product includes software developed by Greg Stein <gstein@lyra.org> for use in the mod_dav module for Apache (http://www.webdav.org/mod_dav/).