シンプルなFetchmailの使い方

シンプルなFetchmailの使い方

を使用して電子メールの受信トレイをバックアップしようとしていますFetchmail。そのため、パッケージをインストールした後、 を作成しました.fetchmailrc:

poll SERVER_ADDRESS with proto POP3 and options no dns
user 'MY_ADDRESS' there with password 'MY_PASSWORD' is 'MY_CURRENT_ACCOUNT_USERNAME' here options ssl

その後、私は以下を開始しましたFetchmail:

$> fetchmail -vk

そして良い答えを得ました:

fetchmail: POP3> LIST 1
fetchmail: POP3< +OK 1 6533
fetchmail: POP3> RETR 1
fetchmail: POP3< +OK 6533 octets

問題は、Fetchmail電子メールの取得を完了するために MTA が必要であることです。

fetchmail: connection to localhost:smtp [127.0.0.1/25] failed: Connection refused.
fetchmail: SMTP connect to localhost failed
fetchmail: POP3> QUIT

そこで をインストールしPostfix、設定したところ、その後プロセスがフリーズしてしまいました。

Trying to connect to 127.0.0.1/25...connected.

以下は私のですmain.cf:

myhostname = sultan
inet_protocols = all
biff = no
mail_spool_directory = /var/mail
canonical_maps = hash:/etc/postfix/canonical
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_alias_domains = hash:/etc/postfix/virtual
relocated_maps = hash:/etc/postfix/relocated
transport_maps = hash:/etc/postfix/transport
sender_canonical_maps = hash:/etc/postfix/sender_canonical
masquerade_exceptions = root
masquerade_classes = envelope_sender, header_sender, header_recipient
masquerade_domains =
inet_interfaces = MY_IP 127.0.0.1 ::1
mydestination = $myhostname, localhost.$mydomain
defer_transports =
mynetworks = MY_IP
disable_dns_lookups = no
relayhost =
content_filter =
mailbox_command = /usr/bin/procmail
mailbox_transport =
strict_8bitmime = no
smtpd_sender_restrictions = check_sender_access hash:/etc/postfix/access,
                            permit_mynetworks,
                            reject_invalid_hostname,
                            reject_non_fqdn_hostname,
                            reject_non_fqdn_sender,
                            reject_unauth_pipelining,
                            reject_unknown_client,
                            reject_unknown_hostname,
                            reject_unknown_sender_domain
smtpd_client_restrictions =
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks,
                          reject_unknown_client,
                          reject_invalid_hostname,
                          reject_unauth_pipelining,
                          reject_unknown_hostname,

何か案が?

THX。

答え1

これを行うのは非常に簡単ですメールを受け取るSMTP サーバーなどは必要ありません。

getmail は、さまざまなメール サーバー上の 1 つ以上のメール アカウントからローカル マシンにメールを取得して、最小限の手間で読めるように設計されたメール リトリーバーです。getmail は、安全で、柔軟性があり、信頼性が高く、使いやすいように設計されています。getmail は、fetchmail などの他のメール リトリーバーを置き換えるように設計されています。

http://pyropus.ca/software/getmail/

getmailrc の設定例:

[retriever]
type = SimplePOP3SSLRetriever
server = pop3.example.com
username = account_name
password = my_mail_password

[destination]
type = Maildir
path = ~/Maildir/

関連情報