Page is a not externally linkable
jdmelton - 11:50 am on Jul 2, 2008 (gmt 0)
Thanks for the reply. I looked at the Exim docs, but I just did not 'get it'. This is my first foray into email servers. I have been working with Linux since kernel 0.94 and have had exposure to just about everything else. Most of my work has been with embedded systems. Anyway, I ran across this: http://www.debianhelp.co.uk/postfix.htm It mentioned a satellite setup in Postfix that sounded like what I needed. So, I uninstalled Exim4 and installed Postfix. During the configuration I chose the satellite option and entered the Gmail domain (mail.mydomain.org) at the prompt for mydestination. Then I built and ran this command line script: And it worked. The were some issues with the From: and Reply-To: fields. At first I just used the from user name. For Gmail, I needed to use the user@mydomain.org form. So, using Postfix instead of Exim, I have solved part of the problem. The command line email works, but not from Apache/PHP. I am looking into that...
#!/usr/bin/php
<?php
mail("jdmelton@onedomain.com", "test - mailserver", "This is a test of mydomain.org command-line email from myserver via Gmail.\nPlease do not reply.", "From: me@mydomain.org"."\n"."Reply-To: me@mydomain.org"[smilestopper]);
?>