Mailimport of /var/mail/fetchmail does not work

Issue #1246 resolved
Dennis created an issue

Hello Janos,
the installation of piler works (i am using this installation guide: https://patrik.kernstock.net/2020/08/mailpiler-installation-guide/)
I have set up always BCC on the mailserver to archiv@example.com and get those emails with fethcmail on the piler VM.
Normally this works like a charm. But on 1 of the managed piler-Installations the import ignores the mails in /var/mail/fetchmail completely.

The fetchmail-file is now bigger than 500MB with all the fetched mails.

Can you help me please get this fixed?

Cheers
Dennis

Comments (5)

  1. Janos SUTO repo owner

    Hello Dennis, what piler version do you have, what command do you run, and what’s the error you get from pilerimport?

  2. Dennis reporter

    Hello Janos, i am using piler version 1.3.11, when running pilerimport -e /var/mail/fetchmail i get the following error:
    failed to import: /var/mail/fetchmail (id: 5000000062bd52ec0d98472c00fc505d9650)

    While trying to import directly via pop3 with pilerimport -K MAILSERVER -P 995 -u archiv@example.com -p PASSWORD -r -o
    i get this output:

    Cipher: TLS_AES_256_GCM_SHA384
    found 1 messages
    processed:       1 [100%]
    

    But nothing gets imported 😞

    Do you have any idea where i can look for more details, why nothing gets imported?

  3. Janos SUTO repo owner

    I think the fetchmail file is not an EML file, rather an mbox style file. If that’s the case, then run pilerimport -m /var/mail/fetchmail

    Also be sure that user piler can write the current directory ($PWD)

  4. Dennis reporter

    Hey Janos,
    thank you very much. The pilerimport -m got me in the right direction.
    After I tried it, I got permission denied. So I looked deeper at the permissions of /var/mail/fetchmail and recognized that the user piler had no rights on this file.
    After changing the right to read/write for piler I could import the file.
    Now I only have to add the import to pilers crontab and find a way to clear the content of the file periodically.

    Thank you very much!

    Cheers
    Dennis

  5. Log in to comment