I successfully set up fetch mail to route emails to an IMAP mailbox on ispc3. This way I can manage my own inbox while continuing to use my mail providers SMTP server to send emails. Right, fetchmail is retrieving emails over IMAP and then deleting the copy left on the original server. I notice that there can be a lag of many minutes between when the email hits the original server and is retrieved by fetch mail. My questions are: 1. Is there any way to minimize this lag time? 2. Should fetch mail be using POP3 instead of IMAP to download the messages? 3. Is there any way to "push" emails as they are received from the original mailbox to the ispc3 mailbox?
Are you using the fetchmail function in ISPConfig? This uses getmail internally and runs every 5 minutes. You can change the cronjob to run once a minute: crontab -e -u getmail If you want to delete the copy on the original server, then better use pop3. If your other mail provider supports smtp forwarding, then you get the emails in realtime. If not, you must use fetchmail.
till: I just want to thank you and your team for making this amazing software available for all to use and for the support you provide to amateurs like me. I've been a long time user and, out of necessity, have now expanded my use to include the email functions as well. The problems ISPC has solved for me, as someone who enjoys making self-hosted sites, have been really comprehensive. I ended up changing the cronjob to 1 minute and switching to POP3 for fetching mail. I think this is the best solution for me, because I want all of my devices to use a "single" mail account, albeit with different IMAP and SMTP settings. My email provider unfortunately does not permit smtp forwarding aka mail relay without additional cost.
For anyone reading this at later, I found a better way (at least for me) to retrieve emails without the polling required by fetchmail. I am now using getmail with IMAP idle to nearly instantaneously fetch emails. This is not something that you'll be able to do from the ISPConfig panel, but it's not difficult to do as long as you have full access to your server. My set up involves creating a getmail profile for each account, creating a service, and then a cronjob to monitor and restart the service if it is deactivates. This might be something that the ISPC team might want to look at as a replacement for the fetchmail feature.