Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [fetchmail]

Fetchmail is a unix/unix-like utility used to retrieve emails from a remote server and deliver them to users

0
votes
1answer
24 views

Recover/reupload messages deleted by fetchmail

I used fetchmail to access my Hotmail/Outlook mailbox. It downloaded every message inside Inbox, but now that folder is empty at the server. Now I see that fetchmail deletes messages by default: -k ...
0
votes
1answer
29 views

fetchmail not honouring daemon time

I have fetchmail daemon set to 60 seconds in the fetchmailrc file. However it takes up to 8 minutes and sometimes even more to start fetching. Here is my fetchmailrc: set daemon 60 set postmaster "...
2
votes
1answer
46 views

fetchmail: mail gets lost for some accounts

I have a rather peculiar problem. I've been using a user cronjob calling fetchmail to receive mail from 6 IMAP accounts for about two months. It is set up to forward mail to procmail, which then sorts ...
0
votes
1answer
197 views

Problems setting up dbmail with postfix

Im trying to create my own mailserver using dbmail for email storage. I have configured dbmail to work with postfix following their setup guide http://www.dbmail.org/dokuwiki/doku.php/setup_postfix ...
1
vote
1answer
754 views

Forward/Redirect email fetched via fetchmail to gmail

I am on a mac using terminal. I am trying to redirect email from a work email to gmail (the work email only allows IMAP and gmail can only fetch from POP - hence the workaround). I have successfully ...
0
votes
2answers
1k views

Using procmail to forward to gmail

I am using fetchmail and procmail to forward email to a gmail account. I am using Mac Terminal. Here is my .fetchmailrc: set no bouncemail poll outlook.office365.com with protocol imap port 993 auth ...
3
votes
0answers
632 views

fetchmail mail folder

I configured fetchmail to fetch my mails per IMAP. After I start fetchmail everything is fine (see in debug-mode that mails are successfully downloaded). The Problem is: I expect so find my mails in $...
1
vote
0answers
197 views

Fetchmail fails to deliver mail locally due to enforced STARTTLS

I have setup a local mail server using postfix and dovecot. I now want fetchmail to get my mails from another server and deliver them locally. I am getting errors, however, since fetchmail does not ...
1
vote
2answers
308 views

Processing/sorting mail from a mailbox-file?

I got a mailbox-file ("Mboxrd") created by getmail, and I'd like to "process" it by sorting mail from various (groups of) senders, and move them to separate mailbox-files (I guess 3-5 for now). ...
1
vote
2answers
613 views

How do you use procmail mda to deliver files to be read by mh?

I'm using fetchmail to download email, and using procmail for delivery as the mda. I'd like them to be delivered for use with mh, but procmail seems to deliver them in a manner that mh doesn't ...
1
vote
0answers
136 views

fetchmail delivering mail to local mailbox sometimes, should go to an exchange server

This feels like a sendmail problem, but I have a feeling that some part of fetchmail is duplicating some of sendmail's behavior, because when it happens, and I reboot fetchmail, it stops happening - ...
0
votes
1answer
918 views

Fetchmail message “not flushed”

I'm running fetchmail 6.3.17 and when retrieving mail I often see this in the log: fetchmail: reading message user@do.ca@pop.where.mail.net:1 of 3 (50420 octets) not flushed fetchmail: reading ...
0
votes
1answer
47 views

centos6.4 fetchmail not downloading mail more than 5MB?

i just configured fetchmail in CentOS 6.4. by the help of this tutorial everything is working mail is downloading well. But it's not downloading mails with attachments more than 5MB(approx.). ...
1
vote
2answers
3k views

Downloading an attachment from Inbox using the command-line

Please help me figure out the right program to use to solve the following: Everyday I have a report emailed as a PDF attachment to my inbox. The subject is the same, and it is from the same email ...
1
vote
1answer
756 views

fetchmail sees mail but doesn't fetch it - persistent “temporary lookup failure”

I transferred my email setup to a new laptop, and fetchmail stopped fetching my mail. From what I can tell in the fetchmail log, it authorizes fine, sees that new emails are there, tries to fetch ...
1
vote
2answers
4k views

Fetchmail with local Postfix on Home-Server

a small question... I have a fully configured postfix server which have a few domains, few users, and much more. Then I have a smart host which receives all mails and send all mails. For example ...
1
vote
1answer
1k views

fetchmail: fetch sent mail to sent folder, or fetch to a target folder

How can I configure fetchmail to fetch a folder to a specific target folder? Or at least not fetch to inbox? If it would fetch from sent to sent (or any folder to the same folder name) I'd be happy ...
2
votes
1answer
692 views

Displaying emails with mutt

After being able to retrieve emails from an IMAP account on a remote mail server using fetchmail and POSTFIX as an MTA, I am able to see the emails in the spool folder /var/spool/mail/ghassan in a ...
1
vote
1answer
178 views

Encode literal percent in fetchmail's mda option

I want to download emails without any processing, without procmail. I'm trying to configure fetchmail like this: mda "/bin/sh -c 'cat > INBOX/new/$(date +%s_%N)'" But it resulted in a file named "...
3
votes
2answers
482 views

Can't find emails retrieved by fetchmail

So I set up fetchmail to retrieve emails with IMAP from a remote mail server, I was able to run it. How can I know that it found any emails or not since I did send test emails to the account being ...
0
votes
1answer
826 views

Download big imap directory to maildir

I search a solution to download (for archiving) a large mail directory via imap from a mail-server and stores all mails in a local maildir. I need a robust solution, which repeatedly tries if time-...
1
vote
2answers
366 views

fetchmail doesn't get mail from provider

somehow can't get fetchmail to work properly... it wont get email from provider but it connects to properly # Configuration created Tue Feb 10 10:18:32 2015 by fetchmailconf 1.52 $Revision: 4636 $ ...
0
votes
2answers
348 views

Checking if a mail has arrived, if not then alert

I am using fetchmail in combination with procmail for mail filtering on CentOS where my mail contains various log messages. They serve me so I could search through my mail(logs) for error strings. So ...
-3
votes
1answer
159 views

Fetchmail doesn't recognize my procmail binary

My problem: after running fetchmail I get this error: /Users/User/.fetchmailrc:7: syntax error at -d My .fetchmailrc file looks like this: set daemon 300 set nobouncemail set invisible poll pop....
3
votes
1answer
804 views

Does fetchmail support SSL or TLS when using SMTP to forward email?

I am trying to forward emails that are fetched with fetchmail to another SMTP host, which enforces STARTTLS. I could not find a way to enable TLS in fetchmail. Is this possible at all? If so, how?
2
votes
2answers
3k views

How can I forward emails from a POP3 account to another SMTP or IMAP account?

I have an email address that I can access via POP3, but which I rarely use. Though it receives quite a bit of email. I cannot use a forwarding feature for this account. Yet I want to forward ...
2
votes
1answer
2k views

Problem extracting email attachment using munpack

I have fetchmail running perfectly to fetch emails from Gmail, and then I am using procmail to store them in $HOME/Mail/Inbox. In my .procmailrc, I added this code which pipes to munpack to extract ...
1
vote
1answer
221 views

Unix Fetchmail Utility: date on which email was received

I've successfully configured fetchmail and I'm able to download messages from the mail server but I'm not sure how to get the date on which a particular email was received. I need this date for ...
2
votes
1answer
1k views

Use /etc/init.d/fetchmail with the personnal ~/.fetchmailrc

Now, I have two users in my system using fetchmail with a personal ~/.fetchmailrc and syncing there mails with the command fetchmail -kv --uidl -m '\''/usr/bin/procmail -d %T'\ (In a cron but this isn’...
1
vote
1answer
986 views

Checking mail and running a script without downloading

I'm writing a script to run certain processing activities (mainly moving some data files to another machine where they can backed up), but I only know when to trigger the copy when a mail is delivered ...
5
votes
1answer
8k views

How to download all the e-mail messages from POP3 server to a single text file with mailx?

I would like to download all the e-mails in my old e-mail server. It uses POP3 and I'm interested in e-mails in "Inbox" and "Sent" folders. Once I have downloaded all the messages, I would like to ...
3
votes
1answer
3k views

extracting attachments from mail that is coming to my postfix inbox

How do I extract attachments from mails arriving at my postfix mailbox and preferably send the content of the attachment to another email account? I am interested in being able to acquire/read the ...
16
votes
2answers
6k views

local email storage syncing to imap - mutt-friendly

Summary My problem: I want to read email offline with my choice of client (mutt), but I want actions like moving emails, etc. to be kept in two-way snc with an imap server. My question: Is there a ...
7
votes
2answers
6k views

How to stop Fetchmail marking messages as read

When fetchmail checks my IMAP inbox, it downloads any unread messages and removes the message 'unread' flag on the mail server. Is there a way to have fetchmail download new messages without marking ...
4
votes
1answer
1k views

Modify an incoming mail from text/plain to text/html

I'm using mutt to process my mail. There is one sender which declares the wrong content type. The mail arrives with Content-Type: multipart/alternative; boundary=--… and has two parts. They are ...
1
vote
0answers
933 views

Running fetchmail with Socks proxy

I checked the manual of fetchmail, all it mentioned was SOCKS_CONF, but what is the format of that config file? And how do I know if my fetchmail is configured with --with-socks, fetchmail -V doesn't ...
3
votes
1answer
892 views

Make fetchmail leave mail on server for a specified period of time?

I know that fetchmail can be configured to leave mail on the server (usually done with the keep uidl keyword combination), but is there a way to configure it to leave mail on the server for a ...
2
votes
0answers
356 views

fetchmail to log complete messages AND pass to mda

I couldn't seem to tell from the fetchmail man page or http://www.catb.org/~esr/fetchmail/fetchmail-man.html#7 whether --bsmtp <filename>.bsmtp.log, applied from cli/cronjob, and --mda <...
2
votes
1answer
3k views

Error with fetchmail and SSL certificates

I have a problem configuring my mail client on my Mac OS 10.6.8. These were the steps I did: # touch ~/.fetchmailrc I edited the file and created the contents: poll pop.gmail.com with proto POP3 ...
2
votes
2answers
709 views

add “check if fetchmail is running” to this script

while ! postqueue -p | grep -q empty; do sleep 1 done killall wvdial this script checks if my mail queue is empty, then disconnects my modem. now i would like to add also a checking to fetchmail if ...
3
votes
4answers
3k views

Why can't I echo the password to fetchmail?

I'm trying to configure a fetchmail. Before I deal with the syntax of fetchmailrc ( I discovered that the level of bugginess of a problem is synergistic with the number of different aspects of the ...
3
votes
2answers
9k views

How to specify the inbox for fetchmail?

I'm setting up a system calling fetchmail from the commandline and specifying that the mail be stored in a specific file which is not /var/spool/mail/$USERNAME.
3
votes
2answers
2k views

Fetchmail move fetched mail to backup folder

At the moment, I have my .fetchmailrc configured to keep a copy on the mailserver. However, it would be nice to move these copies to an imap folder on the server. I believe this would not be possible ...
1
vote
1answer
5k views

how to configure mutt as email client in Linux for a remote microsoft exchange server?

I have a Windows XP laptop that has MS Outlook 2007. I didn't have to do anything to set it up. I connected my laptop to office network and it picked up all settings by itself. Now I want to dump this ...
3
votes
3answers
2k views

How to fetch and process mail in order to execute commands?

I administer a home server, and sometimes when I'm out, I need to execute some simple commands on the server. 3G + SSH is not an option because it's too expensive from my phone (here in Argentina). It ...
3
votes
1answer
670 views

Fetching email automatically then reading it locally

My email is kept on a remote server and accessible from anywhere by IMAP. What I'd like is a mail client that will periodically sync that remote mail to my laptop in the backgroun, so that when I ...
3
votes
1answer
3k views

Does fetchmail support these IMAP features? If so, how?

I'm studying and learning about how mail is handled in linux systems, and one thing has become a source of confusion for me. On my iPhone, via IMAP, I can mark a message in my Gmail inbox as read, or ...
5
votes
1answer
1k views

Connecting fetchmail (or another MRA) to Exchange

I currently use fetchmail as my MRA, using IMAP to connect to my office's Exchange 2007 server. Unfortunately, IT is disabling POP3 and IMAP access soon. Does fetchmail support connecting to Exchange ...
5
votes
2answers
2k views

fetchmail without an mda

I would like to retrieve mail from a server using fetchmail and have it deposit it directly into an mailbox/repository and not hand it off to a mda. Is this possible? How? In the alternate, is there ...