-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug report: getmail not set up #4015
Comments
Please note that this response was created using generative AI, leveraging previously available information from the repository. This information may be helpful. However, it is our strong recommendation that you carefully consider the information before blindly applying it. It appears that the error you're encountering with Getmail is due to the specified directory To resolve this issue, you can manually create the directory
This should resolve the error by ensuring that the required directory exists and is accessible to Getmail. If the issue persists, you might need to check the permissions of the newly created directory or consider any additional configuration that might be affecting Getmail's operation. This comment was generated by Glime. |
That did actually work. I guess there may need to be a note in the docs or otherwise it should create the folder automatically. |
No $ ls -lah /var/lib
total 96K
drwxr-xr-x 1 root root 4.0K Jan 23 10:51 .
drwxr-xr-x 1 root root 4.0K Jan 23 10:51 ..
drwxr-x--- 1 amavis amavis 4.0K Jan 23 18:12 amavis
drwxr-xr-x 1 root root 4.0K Jan 13 08:39 apt
drwxr-xr-x 1 clamav clamav 4.0K Jan 22 02:06 clamav
drwxr-xr-x 1 root root 4.0K May 15 11:42 dovecot
drwxr-xr-x 1 root root 4.0K Jan 23 10:52 dpkg
drwxr-xr-x 2 root root 4.0K Nov 9 2022 fail2ban
drwx------ 2 fetchmail nogroup 4.0K Jan 13 08:38 fetchmail
drwxr-xr-x 2 root root 4.0K Jun 30 2023 logrotate
drwxr-xr-x 2 root root 4.0K Sep 29 2023 misc
drwxr-xr-x 2 _mta-sts _mta-sts 4.0K Jan 13 08:38 mta-sts
drwxr-xr-x 2 root root 4.0K Jan 10 00:00 pam
drwxr-xr-x 1 postfix postfix 4.0K May 15 11:42 postfix
drwx------ 2 postgrey postgrey 4.0K Jan 13 08:38 postgrey
drwxr-xr-x 2 root root 4.0K Jul 14 2021 postsrsd
drwxr-xr-x 2 root root 4.0K Jan 13 08:38 python
drwxr-x--- 2 redis redis 4.0K Jan 13 08:39 redis
drwxr-x--- 2 _rspamd _rspamd 4.0K Dec 15 15:52 rspamd
drwxr-xr-x 3 debian-spamd debian-spamd 4.0K Jan 13 08:38 spamassassin
drwxr-xr-x 1 root root 4.0K Jan 13 08:38 systemd
drwxr-xr-x 3 root root 4.0K Jan 13 08:39 ucf Now with a $ ls -lah /var/lib
total 80K
drwxr-xr-x 1 root root 4.0K May 15 11:35 .
drwxr-xr-x 1 root root 4.0K May 15 11:34 ..
lrwxrwxrwx 1 root root 26 May 15 11:35 amavis -> /var/mail-state/lib-amavis
drwxr-xr-x 1 root root 4.0K Jan 13 08:39 apt
drwxr-xr-x 1 clamav clamav 4.0K Jan 22 02:06 clamav
lrwxrwxrwx 1 root root 27 May 15 11:35 dovecot -> /var/mail-state/lib-dovecot
drwxr-xr-x 1 root root 4.0K Jan 23 10:52 dpkg
drwxr-xr-x 2 root root 4.0K Nov 9 2022 fail2ban
drwx------ 2 fetchmail nogroup 4.0K Jan 13 08:38 fetchmail
lrwxrwxrwx 1 root root 27 May 15 11:35 getmail -> /var/mail-state/lib-getmail
lrwxrwxrwx 1 root root 29 May 15 11:35 logrotate -> /var/mail-state/lib-logrotate
drwxr-xr-x 2 root root 4.0K Sep 29 2023 misc
drwxr-xr-x 2 _mta-sts _mta-sts 4.0K Jan 13 08:38 mta-sts
drwxr-xr-x 2 root root 4.0K Jan 10 00:00 pam
lrwxrwxrwx 1 root root 27 May 15 11:35 postfix -> /var/mail-state/lib-postfix
drwx------ 2 postgrey postgrey 4.0K Jan 13 08:38 postgrey
drwxr-xr-x 2 root root 4.0K Jul 14 2021 postsrsd
drwxr-xr-x 2 root root 4.0K Jan 13 08:38 python
drwxr-x--- 2 redis redis 4.0K Jan 13 08:39 redis
drwxr-x--- 2 _rspamd _rspamd 4.0K Dec 15 15:52 rspamd
drwxr-xr-x 3 debian-spamd debian-spamd 4.0K Jan 13 08:38 spamassassin
drwxr-xr-x 1 root root 4.0K Jan 13 08:38 systemd
drwxr-xr-x 3 root root 4.0K Jan 13 08:39 ucf Symlink is there like expected but... $ ls /var/mail-state
lib-amavis lib-dovecot lib-logrotate lib-postfix spool-postfix The actual mount location being symlinked to lacks the actual directory. When the feature was implemented in Sep 2022 (but merged May 2023), it added a debug command and cron job that rely on We don't run the test suite with This is a bug, so it should be addressed for v14, creating the folder at |
馃摑 Preliminary Checks
馃憖 What Happened?
I set
ENABLE_GETMAIL
to 1 in my config file and create agetmail-example.cf
file in mydms/config/
folder. Getmail is not enabled and instead I recieve the following error to the postmaster address:If I examine the file structure I can indeed see that the
/var/lib/getmail
symlink links to/var/mail-state/lib-getmail
which does not exist.馃憻 Reproduction Steps
I tried recreating this with a fresh local instance. First I ran the commands to get the compose file and env file.
I ran the container and I created a user and and alias:
I then edited the
mailserver.env
file to setI ran recreate the container with:
I can now see in
/var/mail/example.com/user/new/
the error emails related to the getmail folder not existing.馃悑 DMS Version
v13.3.1
馃捇 Operating System and Architecture
Ubuntu 20.04.6 LTS
鈿欙笍 Container configuration files
馃摐 Relevant log output
Improvements to this form?
N/A
The text was updated successfully, but these errors were encountered: