Mail forwarding configuration

Issue #421 resolved
Mark Clarke created an issue

Hi there,

I am a bit lost as to how the mail forwarding from postfix should be set up. I had set up an account on dovecot and got postfix to copy piler@domain.tld on all incoming/outgoing emails. However I can see where to configure mail piler to pull from this account? After reading the docs again it seems i need to get the mail forwarded to an smtp server listening on piler itself? lsof does not show any mail server listening on the piler box and I am not sure if I am supposed to install a new postfix server with a back end store of some kind or if I could just get piler to pull from the original dovecot back end store on the main mail server?

I also have the health page showing a "smtp piler error". I have the PILER_HOST variable in my site-config.php file set correctly.

Please point me to the right documentation or clarify the confusion for me. I set up piler a year ago but the indexing didn't work so shelved the project and waited for new version to come out. I had time to upgrade today. I had set up a mail box for piler then but never got as far as testing if its actually pulling in new mails.

Thanks for a great project.

Comments (5)

  1. Janos SUTO repo owner

    Hello Mark,

    you have two options to have emails in the archive: either using push or pull. The simplest way is to configure your mail server (eg. always_bcc in case of postfix) to push a copy of emails to piler. The piler daemon itself is an smtp daemon, it speaks smtp, and it archives everything it receives. Note that in this scenario you don't need any usual MTA (eg. postfix, exim, ...) on the piler host.

    The other method is when you don't send anything to piler, rather you configure (probably) a (single) pop3 or imap account, and you setup your mail server to copy all emails to such a collecting mailbox. Then you run pilerimport periodically to read that mailbox, and perhaps removed already processed emails.

    If you have the proper PILER_HOST entry in config-site.php, and the reports an error, then perhaps the piler daemon is not running. Check ps output, and perhaps the maillog for what's going on.

  2. Mark Clarke reporter

    Thanks got it sorted. Piler wasn't running and I had a postfix server already on port 25 to handle some other services mail forwarding.

  3. Janos SUTO repo owner

    You can still run postfix if you need it for a reason, just either put it on a different IP-address or perhaps better: move it to a high(er) port by editing master.cf

  4. Log in to comment