vi /etc/postfix/main.cf
Commentare le due linee:
content_filter = amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappings
che diventano quindi:
# content_filter = amavis:[127.0.0.1]:10024
# receive_override_options = no_address_mappings
Far ripartire postfix:
/etc/init.d/postfix restart
Rimettere in coda le eventuali mail in sospeso:
postsuper -r ALL
(questo ultimo comando serve ad evitare l'errore "postfix/qmgr[xxxx]: warning: connect to transport private/amavis: Connection refused"
Disabilitare servizi antispam e antivirus:
/etc/init.d/clamav-daemon stop
/etc/init.d/clamav-freshclam stop
/etc/init.d/amavis stop
Dopo aver verificato che tutto funzioni corretamente, disabilitare l'avvio automatico al boot dei servizi antispam e antivirus:
update-rc.d -f clamav-daemon remove
update-rc.d -f clamav-freshclam remove
update-rc.d -f amavis remove
Visualizzazione post con etichetta ispconfig. Mostra tutti i post
Visualizzazione post con etichetta ispconfig. Mostra tutti i post
giovedì 9 ottobre 2014
giovedì 13 marzo 2014
ISPConfig 3: impostare un sottodominio in una sottodirectory della root del dominio principale
Esempio:
abbiamo gia' impostato il sito example.com in /var/www/webX/clientY/web
Vogliamo impostare il sottodominio subdomain.example.com nella cartella /var/www/webX/clientY/web/subdomain
La cosa potrebbe essere gestita dal pannello (Siti->Siti->Sottodomini) pero' un bug di ispconfig (pare risolto nelle ultime versioni ma non ne ho conferma) non consente di gestire correttamente i sottodomini in sottodirectory se si utilizza PHP-FPM.
Il problema si risolve gestendo la cosa da Siti->Siti->example.com->Opzioni.
Bisogna inserire nel box Apache directives:
ServerAlias subdomain.example.com
ServerAlias www.subdomain.example.com
RewriteEngine on
RewriteCond %{HTTP_HOST} ^subdomain\.example\.com$ [NC]
RewriteCond %{REQUEST_URI} !^/webdav/
RewriteCond %{REQUEST_URI} !^/php5-fcgi/
RewriteCond %{REQUEST_URI} !^/subdomain/
RewriteRule ^/(.*)$ /subdomain/$1 [L]
RewriteCond %{HTTP_HOST} ^www\.subdomain\.example\.com$ [NC]
RewriteCond %{REQUEST_URI} !^/webdav/
RewriteCond %{REQUEST_URI} !^/php5-fcgi/
RewriteCond %{REQUEST_URI} !^/subdomain/
RewriteRule ^/(.*)$ /subdomain/$1 [L]
e salvare. Dopo circa un minuto potrete provare la nuova configurazione.
N.B.: le due righe RewriteCond %{REQUEST_URI} !^/php5-fcgi/ sono necessarie solo per l'utilizzo con PHP-FPM
Etichette:
ispconfig,
ispconfig3,
linux,
php-fpm,
sottodirectory,
sottodomini,
subdirectory,
subdomain,
subfolder
Iscriviti a:
Post (Atom)