I am working on a mailserver setup that I will share here at some point.
My roundcube.conf file is generating Avahi errors. Since I am setting up a dedicated mailserver, I will just remove Avahi. But if I want to work with Amahi's use of Avahi, then I probably should fix this (it has to do with ServerName not being an FQDN).
Oh, I am using Postfix, MySQL, PostfixAdmin, Dovecot, and RoundCube. This is a bit more involved than what I worked with Bigfoot65 a couple years ago. Also automx.org looks like an interesting tool, but more than I probably need.
Is avahi used?
Re: Is avahi used?
Not sure of it's tie in with Amahi, but it appears to be a requirement. Recommend you do not remove it unless you accept the risk of breaking Amahi.
We have packaged Roundcube and I never noticed any errors tied to Avahi during testing.
We have packaged Roundcube and I never noticed any errors tied to Avahi during testing.
ßîgƒσστ65
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Re: Is avahi used?
My roundcube.conf is:Not sure of it's tie in with Amahi, but it appears to be a requirement. Recommend you do not remove it unless you accept the risk of breaking Amahi.
We have packaged Roundcube and I never noticed any errors tied to Avahi during testing.
Code: Select all
<VirtualHost *:80>
ServerName webmail
ServerAlias webmail.foo.com
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]
ExpiresDefault "access plus 10 years"
AddOutputFilterByType DEFLATE text/html text/plain text/xml
</VirtualHost>
<VirtualHost *:443>
ServerName webmail
ServerAlias webmail.foo.com
SSLEngine On
SSLCertificateFile /etc/pki/tls/certs/foo.com.crt
SSLCertificateKeyFile /etc/pki/tls/private/foo.com.key
DocumentRoot /usr/share/roundcubemail
<Directory /usr/share/roundcubemail/>
Order Deny,Allow
Allow from all
php_admin_flag session.cookie_secure "1"
</Directory>
</VirtualHost>
[Mon Dec 31 20:13:25 2012] [error] avahi_entry_group_add_service_strlst("webmail") failed: Invalid host name
I have been told that is due to the "ServerName webmail"
Re: Is avahi used?
It could be the naming. I used rcmail for my instance. Did you follow wiki guidance for the .conf file using SSL?
http://wiki.amahi.org/index.php/Secure_App_Access
This requires two .conf files.
http://wiki.amahi.org/index.php/Secure_App_Access
This requires two .conf files.
ßîgƒσστ65
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Re: Is avahi used?
I reversed the order of ServerName and ServerAlias (ie ServerName got the fqdn) and the error went away. Unfortunately there is no nice tool to tell you what services your avahi-daemon is advertising. Seems all you can do is grep /var/log/messages.It could be the naming. I used rcmail for my instance. Did you follow wiki guidance for the .conf file using SSL?
Well, it does not require two .conf files. I have worked out to put both of my virtualhosts (ports 80 & 443) in a single .conf file, making it easier to track everything. What I posted earlier was all from my single roundcube.conf file.
Now some comments on the wiki you pointed me to:
Code: Select all
openssl genrsa -out filename.key 1024
openssl req -new -key filename.key -x509 -days 1000 -out filename.crt
Code: Select all
openssl x509 -in filename.crt -text -nameopt multiline -noout
Code: Select all
openssl req -new -outform PEM -out filename.crt -newkey rsa:2048 -nodes -keyout filename.key -keyform PEM -days 3650 -x509 -extensions v3_req
Code: Select all
NameVirtualHost *:443
If this is a php app, there is a problem with clients sending the cookie, which MAY have important stuff over an unencrypted http connection. In fact (discussion on this recently on the Roundcube list) if the user sends http://service.hda.com and gets https://service.hda.com with some nice login screen, the cookie was already sent in that initial transmission. To block this see above where I included the following line:
Code: Select all
php_admin_flag session.cookie_secure "1"
So anyway, I SEEM to have the basics working, now on to the anti stuff.
Re: Is avahi used?
Good to hear it's working. If you have a better solution than listed in the wiki, please update it. We would greatly appreciate it.
ßîgƒσστ65
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Re: Is avahi used?
Perhaps eventually. First I have to get working what I am working on. Still have all the anti-stuff to configure then test. Then, I really can't test out this specific app the wiki references. Finally one item is really a feature fix for Amahi in a change to the 00-init.conf file. I will submit that soon.Good to hear it's working. If you have a better solution than listed in the wiki, please update it. We would greatly appreciate it.
I just wanted to ensure what I am working on would work on Amahi.
Who is online
Users browsing this forum: No registered users and 38 guests