[HCoop-Help] Need help with domtool setting to relay mail to Google Apps

Srikanth Sastry sastry at hcoop.net
Thu Jun 10 18:53:34 EDT 2010

I am not sure if my domtool config is wrong, but I am seeing some issues 
with receiving emails on my Google Apps hosted account.

I want email sent to the domain sastry.name to be handled by Google 
Apps. My domtool config for the domain is as follows:
om "sastry.name" where
   DocumentRoot = home "public_html/sastry.name";
   HandleMail = false;
   dnsMail 1 "aspmx.l.google.com";
   dnsMail 20 "alt1.aspmx.l.google.com";
   dnsMail 20 "alt2.aspmx.l.google.com";
   dnsMail 30 "aspmx2.googlemail.com";
   dnsMail 30 "aspmx3.googlemail.com";
   dnsMail 30 "aspmx4.googlemail.com";
   dnsMail 30 "aspmx5.googlemail.com";
   (* dnsMail 100 "mail.hcoop.net";*)
   (* The MX records for mail to be handled by google *)

   dnsAlias "mail" "ghs.google.com";
   (* redirect mail.sastry.name to google hosted email interface *)

   dnsAlias "portal" "ghs.google.com";
   (* redirect portal.sastry.name to google hosted frontpage *)

   (* SPF record to help avoid being classified as spam *)
     dnsDefaultText "v=spf1 include:_spf.google.com ~all";

   (* simpleWeb "srikanth" "public_html/srikanth.sastry"; *)
   simpleWeb "shankar" "public_html/shankar.sastry";

   wordPress "sridhara" where
     DocumentRoot = home "public_html/sridhara.sastry";
   web "srikanth" where
     DocumentRoot = home "public_html/srikanth.sastry";
     location "/" with
       rewriteCond "%{REQUEST_URI}" "^(/component/option,com)" 
[cond_nocase, ornext];
       rewriteCond "%{REQUEST_URI}" "(/|\.htm|\.php|\.html|/[^.]*)$" 
       rewriteCond "%{REQUEST_FILENAME}" "!-f" [];
       rewriteCond "%{REQUEST_FILENAME}" "!-d" [];
       rewriteRule "(.*)" "index.php" [last];
     location "/photos" with
         rewriteCond "%{REQUEST_FILENAME}" "!-f" [];
         rewriteCond "%{REQUEST_FILENAME}" "!-d" [];
         rewriteRule "/photos/." "/photos/index.php" [last];

However, when I run "domtool-admin describe sastry.name", I still see 
mail.hcoop.net in the MX records for sastry.name. here's the relevant 
DNS zonefile contents:

sastry.name.    172800    IN    NS    ns1.hcoop.net.
sastry.name.    172800    IN    NS    ns2.hcoop.net.
sastry.name.    172800    IN    A
sastry.name.    172800    IN    MX    1    mail.hcoop.net.
www.sastry.name.    172800    IN    A
sastry.name.    172800    IN    MX    1    aspmx.l.google.com.
sastry.name.    172800    IN    MX    20    alt1.aspmx.l.google.com.
sastry.name.    172800    IN    MX    20    alt2.aspmx.l.google.com.
sastry.name.    172800    IN    MX    30    aspmx2.googlemail.com.
sastry.name.    172800    IN    MX    30    aspmx3.googlemail.com.
sastry.name.    172800    IN    MX    30    aspmx4.googlemail.com.
sastry.name.    172800    IN    MX    30    aspmx5.googlemail.com.
mail.sastry.name.    172800    IN    CNAME    ghs.google.com.
portal.sastry.name.    172800    IN    CNAME    ghs.google.com.
sastry.name.    172800    IN    TXT    "v=spf1 include:_spf.google.com ~all"
shankar.sastry.name.    172800    IN    A
sridhara.sastry.name.    172800    IN    A
srikanth.sastry.name.    172800    IN    A

Default e-mail alias:

*@sastry.name: sastry at localhost

E-mail relaying is on.

Strangely, I am able to send emails to email addresses at sastry.name 
except that all emails sent from a gmail address are not being 
delivered! Is there something wrong/missing from my domtool config?


More information about the HCoop-Help mailing list