From owner-freebsd-questions@FreeBSD.ORG Fri Mar 29 18:33:05 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 4AA2EA10 for ; Fri, 29 Mar 2013 18:33:05 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirg.bris.ac.uk (dirg.bris.ac.uk [137.222.10.102]) by mx1.freebsd.org (Postfix) with ESMTP id 0E2B2346 for ; Fri, 29 Mar 2013 18:33:04 +0000 (UTC) Received: from irix.bris.ac.uk ([137.222.10.39] helo=ncs.bris.ac.uk) by dirg.bris.ac.uk with esmtp (Exim 4.72) (envelope-from ) id 1ULe6N-0004zx-VO for freebsd-questions@freebsd.org; Fri, 29 Mar 2013 18:32:58 +0000 Received: from cpc2-aztw9-0-0-cust169.18-1.cable.virginmedia.com ([77.97.103.170] helo=zzz.men.bris.ac.uk) by ncs.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1ULe6N-0002zD-Nb for freebsd-questions@freebsd.org; Fri, 29 Mar 2013 18:32:35 +0000 Received: from zzz.men.bris.ac.uk (localhost [127.0.0.1]) by zzz.men.bris.ac.uk (8.14.6/8.14.6) with ESMTP id r2TIWYv7035724 for ; Fri, 29 Mar 2013 18:32:34 GMT (envelope-from mexas@zzz.men.bris.ac.uk) Received: (from mexas@localhost) by zzz.men.bris.ac.uk (8.14.6/8.14.6/Submit) id r2TIWYPW035723 for freebsd-questions@freebsd.org; Fri, 29 Mar 2013 18:32:34 GMT (envelope-from mexas) Date: Fri, 29 Mar 2013 18:32:34 GMT From: Anton Shterenlikht Message-Id: <201303291832.r2TIWYPW035723@zzz.men.bris.ac.uk> To: freebsd-questions@freebsd.org Subject: Operation timed out with smtp.gmail.com - please help X-Spam-Score: -4.2 X-Spam-Level: ---- X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: mexas@bristol.ac.uk List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Mar 2013 18:33:05 -0000 Please help debug sendmail / smtp.gmail config. My University just switched to gmail (dickheads) and I'm trying to figure out how to set it up. It used to work ok with the University smtp auth server. Now I get in /var/log/maillog: sm-mta[72300]: r2TI0vQc072134: to=, ctladdr= (1001/1001), delay=00:20:01, xdelay=00:00:00, mailer=relay, pri=210424, relay=smtp.gmail.com, dsn=4.0.0, stat=Deferred: Operation timed out with smtp.gmail.com I switched the firewall off completely. I have: # cat /etc/mail/auth/client-info AuthInfo:smtp.gmail.com "U:root" "I:mexas@bristol.ac.uk" "P:xxxxx" # and this in /etc/mail/freebsd.mc: define(`confAUTH_MECHANISMS', `GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl define(`SMART_HOST', `smtp.gmail.com')dnl I rebuilt (run make under /etc/mail. This just renames freebsd.mc to .mc, and freebsd.submit.mc to .submit.mc) and restarted sendmail. I also use: MASQUERADE_AS(`bristol.ac.uk') MASQUERADE_DOMAIN(`bristol.ac.uk') to use the university domain instead of may xxxx.men.bris.ac.uk, which is not acceptable. What else am I missing? Thanks Anton