Tenon Intersystems Please see text links at bottom of page for navigation Please see text links at bottom of page for navigation
Please see text links at bottom of page for navigation Please see text links at bottom of page for navigation
Please see text links at bottom of page for navigation
Google
Search this site:



Post.Office : Questions about Features : Running Scripts with Post.Office back to FAQ
Question:I have some Perl scripts and PHP scripts that rely on 'sendmail'. How can I use Post.Office as a sendmail replacement with these scripts?
Answer:Post.Office has its version of "sendmail" in the directory called /usr/sbin. That means that for any scripts that you have that call sendmail, you need to make sure the path says:
/usr/sbin/sendmail. You might be using scripts that have the pre-set path of /usr/bin/sendmail and this is what needs to be changed to /usr/sbin/sendmail.

In addition, you will need to set up Post.Office to allow relay from the machine you are running the script from.

Log in to Post.Office via the web browser to Port 9090. Click on System Configuration and go to Restrict Mail Relaying. Set up the form so that it says:


X Restrict Relay Mail Except As Indicated Below:
X Allow Relay From the Following IP Addresses:
127.0.0.1

...

If Relay Mail is Restricted as Specified Above,
Allow Relay to
X No Domain Except those Listed Below:
X Local Mail Domains
X Additional Domains (if needed).



You will need to add the IP address of where the script is running to the Allow Relay From the Following IP Addresses box. If your script is running on the same machine as Post.Office, then you need to add it as 127.0.0.1. If you don't know what IP address you need to add, you can look in your /var/spool/post.office/log/post.office.log file (after running a test by trying to send out a message on your script) and seeing what the IP is when you get a Relay Denied message.
last updated 19.05.2004
Powered by FAQEngine V4.07.4 ©2001-2005 Bösch EDV-Consulting