Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: yordis on September 14, 2017, 03:01:06 PM

Title: Roundcube problems
Post by: yordis on September 14, 2017, 03:01:06 PM
i want that my roundcube webmail server, never permit that sender address to be equal to recipient address, i has a server with postfix, dovecot, roundcube, but i need that my server validate that de sender address cant be recipient address
thanks by your helps
Title: Re: Roundcube problems
Post by: SKaero on September 17, 2017, 03:04:05 PM
You could create a Roundcube plugin that would do that but that would only work for users that accessed there mail though Roundcube, if any of them accessed there mail directly it wouldn't function.
Title: Re: Roundcube problems
Post by: yordis on September 18, 2017, 11:10:04 AM
my roundcube server is configured with several imap servers, users access my roundcube, select their mail domain and enter their credentials, in this case that plugging would work, and if so, how to configure that pluggins
thanks for your help
Title: Re: Roundcube problems
Post by: SKaero on September 18, 2017, 03:44:41 PM
I don't know of an existing plugin that would do what you want but it could be created. You can use the message_before_send hook to check the recipients  https://github.com/roundcube/roundcubemail/wiki/Plugin-Hooks#message_before_send and throw an error before the message is sent.
Title: Re: Roundcube problems
Post by: yordis on September 20, 2017, 10:14:11 AM
how can implemente message_before_send hooks pluggins, i dont know to do that
thank for your help
Title: Re: Roundcube problems
Post by: SKaero on September 22, 2017, 02:19:40 AM
https://github.com/roundcube/roundcubemail/wiki/Plugin-API