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 joe@javawag.com from within PHP (javawag.com 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 "joe@javawag.dyndns.org"... this is what javawag.com resolves to (javawag.com -> javawag.dyndns.org -> [my dynamic ip address, changeable]). I'd like to have it show up as javawag.com however, so does anyone know how to do that?

BTW, I'm setting the from: header to joe@javawag.com, but it still shows as joe@javawag.dyndns.org (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 sendmail.mc file:

MASQUERADE_AS(`javawag.com')

Make sure javawag.com 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 .