ilk once fetchmail i kurup sonra home dizinde .fetchmailrc yaratip icine:
poll pop.gmail.com with proto POP3 and options no dns
user 'linuxlala@gmail.com' is 'linuxlala' here options ssl
bu dosyayi olusturduktan sonra fetchmail -vk ile fetchmailin duzgun calisip calismadigini test etmek gerekli. Eger ekranda fetchmail'in maillerinizi aldigina dair yazilar goruyorsaniz, hersey yolunda demektir.
daha sonra mutt u kurup gene home dizinde bir tane .muttrc olusturmak gerekli.
Bu dosyayi yarattiktan sonra icine de sunlari yazin:
# My email address
set pop_user="username@gmail.com"
# My email account password
set pop_pass="password"
# Too many email headers make reading a message difficult
ignore *
unignore From: To: Cc: Subject: Date: #Only these are shown in the header
#To ensure that mutt does not put
#'username@localhost.localdomain in From
set from="username@gmail.com"
set use_from=yes
set envelope_from="yes"
#The text editor I want to use to write emails
#The default is nano
set editor=vi
bunlari yaptiktan sonra, mutt ile gmaildeki maillerinizi alabilirsiniz.
Mutt sadece bir MUA (mail user agent) oldugu icin native olarak mail gondermeyi
desteklemez. (muttng diye bir mutt fork u var, o destekliyor).
Google'in SMTP sunucusunu kullanarak mail gondermek icin de, msmtp isimli programi kurmak
gerekli. Bu programi kurduktan sonra home dizinizde .msmtprc diye bir dosya acip icine:
defaults
tls on
#Gmail
account gmail
host smtp.gmail.com
from john@gmail.com
auth on
user john@gmail.com
password 1234
port 587
account default : gmail
girerseniz mail gondermenin yarsini bitmis olacak. Geriye kalan tek sey
mutt a msmtp kullanmasini soylemek. onun icinde .muttrc ye
set sendmail="/usr/bin/msmtp"
set use_from=yes
set from=john@isp.com
set envelope_from=yes
yazmak yeterli olacaktir. Artik mutt ile gmail hesabinizidaki postalari okuyup, yeni posta gonderebilirsiniz.
Hiç yorum yok:
Yorum Gönder