Questions tagged [fetchmail]
Fetchmail is a unix/unix-like utility used to retrieve emails from a remote server and deliver them to users
60
questions
0
votes
1
answer
152
views
Fetchmail won't run as daemon
I have fetchmail set up to grab emails from a Google account. If I set fetchmailrc ownership to root:root and run fetchmail -vvv --nodetach --nosyslog -f /etc/fetchmailrc, it gets the emails as ...
0
votes
0
answers
91
views
Fetchmail not writing to log
I'm setting up fetchmail for use with Request Tracker on a RHEL 8 server. It's not working and I'm unable to troubleshoot because it doesn't appear to be writing to /var/log/syslog or /var/log/...
0
votes
1
answer
255
views
How to use fetchmail with procmail (or maildrop) on a server running sendmail?
I have Amazon Linux instances in AWS EC2. They run sendmail to communicate with each other, and send outgoing mail through a SMARTHOST that is a commercial email provider. No MX records are pointing ...
0
votes
0
answers
35
views
mutt disallows deletion of message with error "Mailbox is read-only" in windows subsystem for linux (WSL)
MAIL in .bashrc is set thus:
MAIL=/var/spool/mail/Tryer && export MAIL
fetchmail and mutt commands work fine and display any new message received. However, on trying to delete a message in ...
1
vote
2
answers
126
views
procmail returning with exit code 0 even if it can't read its config file: How to prevent?
I am dealing with procmail the first time, so I apologize if the following question is stupid. Before I put procmail in production, I am doing a few basic tests. One of them yielded a totally ...
0
votes
1
answer
62
views
Installing fetchmail - Not found in current repositories
Background
This is probably very basic for someone, but I can not figure this out for the life of me. I wish to simply install fetchmail onto my raspberry pi. Using the command sudo apt-get install ...
0
votes
0
answers
357
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 ...
1
vote
1
answer
226
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 "...
1
vote
1
answer
2k
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 ...
0
votes
2
answers
758
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 ...
5
votes
1
answer
2k
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 ...
1
vote
1
answer
454
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
1
answer
106
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
1
answer
259
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
1
answer
149
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
1
answer
343
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 ...
2
votes
1
answer
3k
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
2
answers
3k
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
0
answers
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 $...
2
votes
1
answer
598
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 ...
2
votes
2
answers
1k
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
2
answers
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 ...
1
vote
0
answers
371
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
1
answer
73
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.).
...
3
votes
2
answers
12k
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
1
answer
1k
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
2
answers
7k
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
1
answer
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
1
answer
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 ...
1
vote
1
answer
273
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
2
answers
921
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 ...
5
votes
2
answers
3k
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
2
answers
581
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
2
answers
659
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
1
answer
199
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
1
answer
1k
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
2
answers
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 ...
2
votes
1
answer
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
1
answer
323
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
1
answer
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’...
1
vote
1
answer
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 ...
7
votes
1
answer
12k
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
1
answer
5k
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
2
answers
10k
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 ...
10
votes
2
answers
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
1
answer
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
0
answers
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 ...
3
votes
2
answers
2k
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
0
answers
583
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
1
answer
4k
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 ...