I've tried the MASQUERADE_AS(`host.domain') before and I tried again and it still comes up with the server domain name in the from section.  I also tried making the following changes in <a href="http://sendmail.mc">sendmail.mc
</a>:<br><br>- changed:  dnl MASQUERADE_DOMAIN(<a href="http://mydomainalias.com">mydomainalias.com</a>)dnl<br>  to:         MASQUERADE_DOMAIN(host.domain)dnl<br>- changed:  dnl FEATURE(masquerade_envelope)dnl<br>  to:        FEATURE(masquerade_envelope)dnl
<br><br>The result is still the same.  I can see the server name in the from address.<br><br>I don't know if it matters, but I have the /etc/hosts file where I put the ip address of the server and the name of the server.  Should that be changed or removed from that file?
<br><br>I also tried the mail -s subject -v dest_email@address and the masquerade name does not show up at all.<br><br>I have been doing the make -C /etc/mail every time I make a change.  (Just in case you thought I forgot to do that.)
<br><br>Also, I don't know how to get it to trust apache.  I've been doing all of my tests at the command line.  I still can't mail through apache.<br><br>----------------------------<br><br><div><span class="gmail_quote">
On 11/2/06, <b class="gmail_sendername">Les Mikesell</b> <<a href="mailto:les@futuresource.com">les@futuresource.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Thu, 2006-11-02 at 18:04, jones yeates wrote:<br>> Hi,<br>><br>> I apologize if this is the wrong place to be asking this.  I've been<br>> searching on the web for answers and I can't seem to find any.  A<br>
> friend told me about this list serve and thought I'd give it a try.<br>><br>> I had php,mysql and apache running on a Windows box last year and I<br>> have just changed it to a Linux box this year.  Everything works
<br>> except for my abiity to send mail that I have generated through my php<br>> script.<br>><br>> I do not want my Linux server to act as a mail server.  There is one<br>> in my school board and I would like to just send mail through there.
<br>> I noticed that in Linux I have to send it to a program that will<br>> re-route the message appropriately.  I was also able to have a<br>> different domain name appear in the e-mail's subject section, so that
<br>> the kids could not track it back to my server.<br>><br>> So basically what I would like is:<br>> - send e-mails through php/apache<br>> - not have the server's domain name appear in the "from" part of the
<br>> e-mail or even in the subject<br>> - have a different domain name appear in the e-mail message<br>> - just relay all messages to the school board's mail server<br>> - I don't want to use the mail server feature on my server other than
<br>> to forward e-mails to the school board's mail server<br>><br>> I have installed Fedora Core 5<br>> - php 5.1.4<br>> - mysql 5.0.22<br>> - apache 2.2.2<br>> - sendmail<br>><br>> I have entered:  define('confTRUSTED_USERS','apache'); into the
<br>> <a href="http://sendmail.mc">sendmail.mc</a> file and tried to do a make -C /etc/mail and it doesn't<br>> seem to work.  If it is working there is a huge delay (for days).<br>><br>> I can get mail or mailx to send messages but not through apache.
<br>><br>> Does anyone know how to set this up?<br><br>If you set:<br>define(`SMART_HOST',`your.forwarding.server')<br>in <a href="http://sendmail.mc">sendmail.mc</a> it will forward outbound messages through<br>the designated server, and
<br>MASQUERADE_AS(`host.domain')<br>will rewrite the headers on outbound mail to the<br>specified name.<br><br>You should be able to see the messages logged in<br>/var/log/maillog - if the web app is handing them to<br>sendmail.
<br><br>--<br>  Les Mikesell<br>   <a href="mailto:les@futuresource.com">les@futuresource.com</a><br><br><br>_______________________________________________<br>K12OSN mailing list<br><a href="mailto:K12OSN@redhat.com">K12OSN@redhat.com
</a><br><a href="https://www.redhat.com/mailman/listinfo/k12osn">https://www.redhat.com/mailman/listinfo/k12osn</a><br>For more info see <<a href="http://www.k12os.org">http://www.k12os.org</a>><br></blockquote></div>
<br>