From owner-freebsd-chat@FreeBSD.ORG Fri Apr 28 09:01:05 2006 Return-Path: X-Original-To: FreeBSD-Chat@freebsd.org Delivered-To: FreeBSD-Chat@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CBB9B16A402 for ; Fri, 28 Apr 2006 09:01:05 +0000 (UTC) (envelope-from loader@freebsdmall.com) Received: from mail.freebsdmall.com (69.50.233.168.ip.nectartech.com [69.50.233.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7468A43D46 for ; Fri, 28 Apr 2006 09:01:05 +0000 (GMT) (envelope-from loader@freebsdmall.com) Received: by mail.freebsdmall.com (Postfix, from userid 2136) id 0F87C6AB944; Fri, 28 Apr 2006 02:01:05 -0700 (PDT) X-Mailer: emacs 22.0.50.1 (via feedmail 8 I) From: loader To: Benjamin Adams References: <20060424235037.70ba6c5c.adams.benjamin@gmail.com> User-Agent: Emacs 22.0.50.1 on i386-unknown-freebsd6.0 X-GPG-Public-Key: http://www.freebsdmall.com/~loader/loader.asc X-GPG-Key-ID: 1024D/0277E075 X-GPG-Key-Fingerprint: F8A0 A354 5D97 B175 7FC9 15DC 0771 07CF 0277 E075 Date: Fri, 28 Apr 2006 17:00:58 +0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: FreeBSD-Chat@freebsd.org Subject: Re: Little help with Gmail and Mutt X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 09:01:05 -0000 Benjamin Adams wrote: > Can someone with gmail email me with an example of .muttrc > I'm trying to get mutt to work with my gmail account but no luck. % cd /usr/ports/mail/mutt-devel-lite % sudo make install clean mutt 1.4.x can't support Gmail's POPs well. .muttrc set pop_user=your_gmail_username set pop_pass=your_gmail_password set pop_host=pops://pop.gmail.com set sendmail="/usr/local/bin/msmtp" % cd /usr/ports/mail/msmtp either % sudo make WITH_GNUTLS=yes install clean or % sudo make WITH_OPENSSL=yes install clean should work for gmail .msmtprc account default host smtp.gmail.com from your_username@gmail.com tls on auth on port 587 user your_gmail_username password your_gmail_password That's it. Or maybe you could use security/stunnel to handle the SSL part, and then set everything like normal SMTP/POP in msmtp/mutt. stunnel.conf: client = yes debug = debug [gmail-pop3s] accept = 127.0.0.1:10110 connect = pop.gmail.com:995 [gmail-smtps] accept = 127.0.0.1:10025 connect = smtp.gmail.com:587 protocol = smtp % stunnel stunnel.conf Then you can set the SMTP/POP to localhost, this works for mutt 1.4.x, and older verions of msmtp (when WITH_GNUTLS is marked as broken) > I want to use postfix as the transfer protocol. The default value of sendmail in mutt is: /usr/sbin/sendmail -oem -oi If you setup postfix properly on your FreeBSD box, I think that default settings should work for you. And If you want to send emails via postfix, and only use mutt for reading mails. Maybe mail/fetchmail is a good choice for fetching email from Gmail's POPs server. Just add fetchmail as a cron job instead of waiting mutt to fetch emails everytime when you run login to the system. .fetchmailrc poll pop.gmail.com with proto pop3 port 995 \ user "your_gmail_username" there with password "your_gmail_passwd" is "your_local_account" here options fetchall ssl Regards, loader