Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've just set up sendmail to send emails from from within PHP ( is my domain and I have google apps mail set up on it). The problem is, when I read the mail I receive, it says ""... this is what resolves to ( -> -> [my dynamic ip address, changeable]). I'd like to have it show up as however, so does anyone know how to do that?

BTW, I'm setting the from: header to, but it still shows as (this also means it falls into my spam folder!)

  • Joe
share|improve this question
Why would it get marked as spam for that? – grawity Mar 9 '11 at 9:47
or perhaps it's because the subject and/or body were near enough blank... but it was marked as spam! – Javawag Mar 10 '11 at 1:07
up vote 2 down vote accepted

You want to use the MASQUERADE_AS feature in your file:


Make sure is listed as a local domain (although you presumably already do that).

You may also need FEATURE(`allmasquerade') and/or FEATURE(`masquerade_envelope'), depending on your setup; see the sendmail documentation for more information.

share|improve this answer
this makes sense, trying it now :D – Javawag Mar 10 '11 at 1:08
hey, that's only gone and worked! thanks a lot for your help! – Javawag Mar 10 '11 at 1:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .