在fc12中配置fetchmail来收Gmail邮件 - fun - fun

在fc12中配置fetchmail来收Gmail邮件

abelard posted @ 2011年3月09日 14:36 in 杂坛 , 2972 阅读

在google上搜了两个满意的参考文档:

1 Gmail POP3 with Fetchmail

Configuring your incoming email client for Gmail: fetchmail

先按照第一个上说的操作,开始几步都没有问题,就是到:

$ fetchmail -d0 -vk pop.gmail.com

得到下面的错误:(该文档上说的验证我也做了,不知道为什么)

fetchmail: 6.3.17 querying pop.gmail.com (protocol POP3) at Wed 09 Mar 2011 11:48:49 AM CST: poll started
Trying to connect to 72.14.213.109/995...connected.
fetchmail: Server certificate verification error: unable to get local issuer certificate
fetchmail: This means that the root signing certificate (issued for /C=US/O=Google Inc/CN=Google Internet Authority) is not in the trusted CA certificate locations, or that c_rehash needs to be run on the certificate directory. For details, please see the documentation of --sslcertpath and --sslcertfile in the manual page.
3077859036:error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed:s3_clnt.c:1060:
fetchmail: SSL connection failed.
fetchmail: socket error while fetching from pengcz.nwpu@gmail.com@pop.gmail.com
fetchmail: 6.3.17 querying pop.gmail.com (protocol POP3) at Wed 09 Mar 2011 11:48:52 AM CST: poll completed
fetchmail: Query status=2 (SOCKET)
fetchmail: normal termination, status 2

后来改用第二个方法:

1.首先按上面说的启用POP转发功能

2. 在按第一种方法创建的/home/abelard/.certs/目录下,使用这里的第3步:获取pem文件和执行c_rehash命令

3. 跳到文档的第5步,创建.fetchmailrc

set postmaster "abelard"
# set polling time (5 minutes)
set daemon 600

poll pop.gmail.com with proto POP3
   user 'pengcz.nwpu@gmail.com' there with password
   '83677408' is abelard here 
  options ssl sslcertck sslcertpath /home/abelard/.certs/

4. 执行第6步

fetchmail -d0 -v pop.gmail.com

来收邮件了,收到的邮件在linux的用户邮箱中,如我的邮件在/var/mail/abelard文件中,可以使用mutt来看邮件了(mutt默认就会显示当前用户的邮件)

5. 遗留的问题:怎么设置让收到的邮件存到自己指定的问件中呢? 一旦重装系统,担心忘记备份/var/mail/abelard

Avatar_small
TN EB online payment 说:
2022年8月05日 21:06

Tamil Nadu Electric Board was formally formed in 1957. It has now got over 300 Lakhs customers in the state. The company provides electricity to every consumer in the state through their different line and power rules. As per the usage of the electricity, TN EB online payment the TNEB does generate electricity bill for your provided electric meter. The bill generates every month by an executor of TNEB, who visits and scans the electric meter through their billing machine. The charges may differ for every 100 units used. Mostly the price does increase as you increase using the 100 unit’s slab. As per the regulation, the payment of Tamil Nadu Electric Board must pay in the same month. It is before the due date to have hassle-free connection.

Avatar_small
Rythu Bharosa 说:
2022年10月27日 21:48

Andhra Pradesh state considers farming as the primary income producer. The state government values all farming activities and offers financial help and incentives to farmers. Most farming schemes are developed to help small and marginal farmers in the state. Rythu Bharosa The state government established the YSR Rythu Bharosa scheme under Chief Minister Jagan Mohan Reddy on 15th October 2019. The scheme’s primary aim is to assist AP farmers with funds to boost their farming activities. This has improved the farming and economic status of AP state.

Avatar_small
seo service UK 说:
2024年1月14日 17:41

Hey there! I’m at work browsing your blog from my new iphone! Just wanted to say I love reading your blog and look forward to all your posts! Carry on the outstanding work


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter
Host by is-Programmer.com | Power by Chito 1.3.3 beta | © 2007 LinuxGem | Design by Matthew "Agent Spork" McGee