Skip to content
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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dovecot ident #98

Closed
chongma opened this issue Aug 20, 2020 · 6 comments
Closed

dovecot ident #98

chongma opened this issue Aug 20, 2020 · 6 comments

Comments

@chongma
Copy link

chongma commented Aug 20, 2020

Hi I am planning to migrate to docker container from manual installation.

The manual installation has the dovecot_ident plugin installed to ensure that the user's ip address is logged in the dovecot logs. This seems like a fairly important feature to me as otherwise you have no idea where your users are connecting from.

Is there a chance this plugin could be included as default? otherwise could you let me know the best way to include in my image?

I was also using the markasjunk2 plugin instead of markasjunk as it had some better features. but do you recommend moving back to markasjunk which is included by default?

@thomascube
Copy link
Member

There's a related issue #97 which asks for simplified integration of 3rd party plugins. For the time being, creating a Custom Docker Image might be a way to go.

@chongma
Copy link
Author

chongma commented Aug 20, 2020

When creating a custom docker image it says [InvalidArgumentException] Could not find a matching version of package corbosman/dovecot_ident. Check the package spelling, your version constraint and that the package is available in a stability which matches your minimum-stability (stable).

should roundcube log the user's ip address in dovecot by default without need for an extra plugin? (maybe it does but i am not aware)

@thomascube
Copy link
Member

@chongma It seems like that plugin is not registered to the Roundcube plugins repository or packagist.org. You need to pull it from Github or a fork of it and copy it into your image via your Dockerfile.

@chongma
Copy link
Author

chongma commented Aug 20, 2020

i have done

FROM roundcube/roundcubemail:latest
COPY ./dovecot_ident-master/ /var/www/html/plugins/dovecot_ident/

but the directory dovecot_ident is never created. also the logs show

WARNING: /var/www/html/config/config.inc.php already exists.
ROUNDCUBEMAIL_* environment variables have been ignored.
Generating locales (this might take a while)...
  en_US.UTF-8... done
  1. the config seems to be created correctly so this message seems strange
  2. i need the locale en_GB. i tried installing it manually but it is overridden by en_US

@chongma
Copy link
Author

chongma commented Aug 25, 2020

is there some restriction on copying a directory? do i need to change user?

@thomascube
Copy link
Member

If you read the Dockerfile of this project you'll find out that the target directory should be /usr/src/roundcubemail and not /var/www/html.

See https://git.rthoni.com/robin.thoni/docker-roundcube-server for an example of a customize Roundcube Docker image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants