
을(를) 사용하여 이메일 받은 편지함을 백업하려고 합니다 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,
어떤 아이디어?
고마워.
답변1
이 작업을 수행하는 것이 훨씬 더 쉽습니다.메일을 받다smtp 서버 등이 필요하지 않습니다.
getmail은 최소한의 번거로움 없이 읽을 수 있도록 다양한 메일 서버에 있는 하나 이상의 메일 계정에서 로컬 컴퓨터로 메일을 가져올 수 있도록 설계된 메일 검색기입니다. 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/