Questions tagged [fetchmail]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
1k 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
0answers
28 views

Mail Retrieve Software for Microsoft 365

As Microsoft 365 is moving to Oauth2, and Fetchmail didn't release a stable version supporting it (only an Alpha on the version 7, but not solid), my organization is looking for a IMAP mail retrieve ...
0
votes
1answer
25 views

What is the meaning of %F, %T, and %s in fetchmail's mda option?

Browsing through web pages around the World Wide Web, I often come across ~/.fetchmailrc examples such as: poll mail.example.com port 993 proto imap user "max123" password "...
0
votes
0answers
53 views

Can I store my fetchmail passwords in one (or more) gpg file?

About .msmtprc I use somethig as passwordeval "gpg -dq ~/.mutt/pwd.gpg" for each account. Is it possible to do something similar also for fetchmail? For two or more accounts?
1
vote
1answer
437 views

O365 attempting to use fetchmail to poll emails to local postfix/dovecot mails server

We currently have an application that uses IMAP/POP3 to access mail in O365; however, Microsoft has determined that they will no longer be allowing basic authentication. By do this, the application ...
2
votes
1answer
322 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 ...
16
votes
2answers
8k views

How to sync a local email storage 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 ...
0
votes
2answers
333 views

How do I setup email on FreeBSD? [closed]

I am new to handling things in a low level fashion and I am horrified at the lack of documentation for newbies who have had zero experience setting up MTAs, MDAs, etc. I simply need to connect to my ...
3
votes
1answer
664 views

What replaces /etc/services in openSUSE, and how

I am running openSUSE Linux, the Tumbleweed version. I discovered that it does not use an /etc/services file, though I do not know what is replacing it, or how it is done, and I do not have much ...
4
votes
5answers
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 ...
2
votes
1answer
2k 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 ...
1
vote
1answer
255 views

Procmail cyrillic conversion

I wrote a script for fetchmail to take mail from an account and pipe the messages to procmail for it to apply filters and save attachments. I used filter for Subject of the message, but I have ...
0
votes
1answer
60 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
98 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 "...
0
votes
2answers
2k 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 ...
2
votes
2answers
9k 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 ...
2
votes
1answer
80 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 ...
1
vote
2answers
2k 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 ...
2
votes
2answers
4k 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 ...
1
vote
1answer
261 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 ...
3
votes
0answers
2k 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
1answer
6k 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 ...
6
votes
1answer
11k 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 ...
0
votes
2answers
501 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 ...
1
vote
2answers
913 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). ...
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 ...
2
votes
1answer
3k 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
0answers
255 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
61 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
460 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 $ ...
-3
votes
1answer
185 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
1k 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
1answer
989 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
6k 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
2k 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
1k 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 ...
5
votes
2answers
3k 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 ...
1
vote
1answer
239 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
701 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 ...
3
votes
1answer
2k 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-...
3
votes
1answer
966 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?
1
vote
1answer
243 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
2k 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’...
3
votes
1answer
4k 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 ...
1
vote
1answer
1k 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 ...
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 ...
9
votes
2answers
8k 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
2k 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
1k 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 ...
2
votes
0answers
449 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 <...