Re: Little help with Gmail and Mutt

看板FB_chat作者時間20年前 (2006/04/28 17:03), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
Benjamin Adams <adams.benjamin@gmail.com> 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 _______________________________________________ freebsd-chat@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-chat To unsubscribe, send any mail to "freebsd-chat-unsubscribe@freebsd.org"
文章代碼(AID): #14KTfE00 (FB_chat)
文章代碼(AID): #14KTfE00 (FB_chat)