Hey there, I think I understand your (worked around) problem...
From [EMAIL PROTECTED] Sat Aug 23 14:49:55 2008 Subject: Re: From address when using mail command Actually this was not my problem. My server is mail and web host for several small sites. I will say that the link below would have been really great to have when I was setting up sendmail. I really struggled to find any site with a complete, yet simple explanation of how to get things going. m4 works quite easily once you know how, but I really had to browse for hours to get the simple answer how to use it. Richard Toohey sent me a message suggesting an obvious answer I should have thought of, since I use it in cgi scripts anyway. Just to use sendmail directly, since mail is really just an incomplete way of accessing sendmail. I would call this more of a workaround than a solution, though it could solve the problem perfectly well for you. For me, there are actually feature in mail(1) that I use which would make sendmail inconvenient for me. If the server you are using really does service mail, then things are even easier to work with. If I understand your situation, you are saying that your local hostname is different than the main domain for which the server receives and relays mail. Generally, this is easy to work by a simple MASQUERADING setting. If you know that all mail (except local) that you want to send out should come from the main domain (whose MX records presumably point to the hostname of your server) then you just have to setup up a few MASQUERADING statements in your mc file, maybe do some settings like local_no_masquerade and you are set. Then you should be able to use just about any mail client that relies on sendmail in any similar fashion as does mail(1). I think this is probably the more robust solution, but you're free to do it with raw sendmail if you life, which is actually a solution much the same way that the GUI mail clients do (they pipe in the full headers to sendmail and give the user the option to change the From address). Aaron