Start Mailfetching immediately?

With SME9 I can do it with: /etc/startmail

Is there a similar CLI command to start the mailfetching (getmail) immediately ?

At Nethserver 7 getmail is used for it. Please have a look at this documentation.

I use this command, it is from /etc/cron.d/getmail

/usr/bin/flock -n -E 0 /var/lib/getmail/ -c “/usr/bin/getmail --getmaildir /var/lib/getmail/ --rcfile /var/lib/getmail/ --quiet”

I created an alias in .bashrc …


If it works mark your answer as solution please.