Fetch email from a remote server to a local user mailbox

Q. How do I fetch email from a remote server to a local user mailbox (localhost or desktop Linux system) ?

A. You need to use simple program called fetchmail. It is an utility which retrieves email from remote mailservers and delivers it to the local mail server or MTA. The fetchmail utility supports following common mail-retrieval protocols:
POP3
IMAP4
POP2 etc

You need to create a .fetchmailrc file in your home directory i.e. /home/you/.fetchmailrc and setup permission to 644.


🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 5 comments so far... add one


CategoryList of Unix and Linux commands
Disk space analyzersdf duf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Modern utilitiesbat exa
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg glances gtop jobs killall kill pidof pstree pwdx time vtop
Searchingag grep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
5 comments… add one
  • Chandrakant Dec 18, 2007 @ 10:33

    i want to configure of redhat linux server and configure so pleas help me how to configure web server and mail server and samba server ftp & telnet & scp & ssh & squide proxy & firewall with ip table and more so pleas help me and send me document off this particular topik

  • Manan patel Apr 8, 2008 @ 1:25

    How can i open file with .laf extensions in
    linux and windows?what application requires for it?

  • vinay Mar 31, 2009 @ 15:38

    I need to fetch my gmail inbox or any other inbox to my system (web site) ? Can you help me ?

  • Vivek Nov 11, 2010 @ 13:32

    hello

    I am able to fetch the mails from remote server and able to deliver to local mail-box.
    But i am unable deliver bcc emails

    Please Help Me
    Vivek

  • Anshul Mar 31, 2011 @ 11:49

    hi,

    can someone please suggest any alternative for fetchmail, i’m using fetchmail with catchall account on my hosting but its giving problem in fetching mail like delivering mails of one user to another or not fetching mails with bcc headers

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum