Visualizzazione post con etichetta prato. Mostra tutti i post
Visualizzazione post con etichetta prato. Mostra tutti i post

domenica 22 giugno 2008

Sendmail: Flush specific messages from mail queue

Thanks
http://actychen.blogspot.com/2006/11/sendmail-flush-specific-messages-from.html

You can flush the sendmail queue by this command.
If is useful for check the status of mail server.

1. Flush all

# /usr/sbin/sendmail -q -v


2. Flush specific domain

# /usr/sbin/sendmail -qR pippo.it -v


http://blog.maurizio.proietti.name

martedì 17 giugno 2008

nota - Wsus 3.0 vs wsus 2.0

La versione Wsus 3.0 non può avere come server padre la 2.0
La ver. 3.0 richiede windows server 2003 (minimo)
La ver 2.0 può essere installata su windows server 2000

http://blog.maurizio.proietti.name

Accedere al fileserver tramite un alias sul dns

Accedere al fileserver tramite un alias sul dns


A partire da win 2000 in poi la ricerca dei nomi in rete avviene a livello dns.
Se la query dns fallisce allora il pc prova a usare netbios (wins o broadcast)
Per abilitare l'uso delle condivisioni e quindi l'accesso a un file server tramite un alias sul dns occorre aggiungere sul server una chiave di registro fatta come segue:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanServer\Parameters
Nome valore: DisableStrictNameChecking
Dato REG_DWORD il tipo
Radice: Decimale
Valore: 1

fatto questo si è verificato un errore di accesso alla macchina server

ho trovato questo articolo:
http://support.microsoft.com/kb/870911/it
http://technet2.microsoft.com/windowsserver/en/library/2bbd23c5-a01d-49bc-8b1c-6d309767c5e71033.mspx?mfr=true

e ho dato i seguenti comandi:
setspn -d HOST/FS1.prvprato1.local fs1
setspn -d HOST/FS1.prvprato1 fs1
setspn -d HOST/FS1 fs1

setspn -A host/FS1 fs2

e ora funziona

http://blog.maurizio.proietti.name

giovedì 5 giugno 2008

Error 1325. 'Documenti' is not a valid short file name. - SOLUTION

Ho ottenuto il seguente errore da qualche giorno.
Non riuscivo + a installare niente, l'errore era sempre lo stesso:

Tipo evento: Errore
Origine evento: MsiInstaller
Categoria evento: Nessuno
ID evento: 11325
Data: 05/06/2008
Ora: 23.33.30
Utente: NEO\Administrator
Computer: NEO
Descrizione:
Product: Windows Installer Clean Up -- Error 1325. 'Documenti' is not a
valid short file name.

Per ulteriori informazioni, consultare la Guida in linea e supporto
tecnico all'indirizzo http://go.microsoft.com/fwlink/events.asp.
Dati:
0000: 7b 31 32 31 36 33 34 42 {121634B
0008: 30 2d 32 46 34 42 2d 31 0-2F4B-1
0010: 31 44 33 2d 41 44 41 33 1D3-ADA3
0018: 2d 30 30 43 30 34 46 35 -00C04F5
0020: 32 44 44 35 32 7d 2DD52}


L'errore è insorto dopo aver cambiato lettera all'unità su cui si trova
la cartella "speciale" Documenti.
Ho riassegnato la lettera precedente all'unità e tutto è tornato ok.

Saluti
MaoX


http://blog.maurizio.proietti.name

giovedì 17 aprile 2008

Installare php-5.2.x su centos 5

Installing PHP 5.2.x on RedHat ES5, CentOS 5, etc

I’ve had to follow this tutorial a few times myself now so decided I should share it with the world.

A few of our applications which make use of SOAP get a Segmentation Fault if run with PHP 5.1.x or lower. We believe this is due to a bug in PHP but can’t be sure, regardless it works fine in PHP 5.2.4 and above.

Problem is, RedHat ES5 does not have support at this time for anything higher than 5.1.6, and we didn’t want to break RPM dependancys etc by installing from source.

To install PHP 5.2.5 (Highest in repository at this time) you can make use of a RPM repository maintained by Remi:

http://blog.famillecollet.com/post/2005/10/02/8-telechargement-installation-et-yum

He has a repository for each distro, but to save you translating for the ES5 one I’ll give you the commands here. Run the following to get up and running:
wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-2.noarch.rpm
wget http://rpms.famillecollet.com/el5.i386/remi-release-5-4.el5.remi.noarch.rpm
rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm

You now have the Remi repository on your system, however it is disabled by default. Obviously you don’t want all of your packages been effected by this repository, however to enable it for a specific package, run the following:
yum --enablerepo=remi update php

You should now have the latest PHP5 installed:
# php -v
PHP 5.2.5 (cli) (built: Nov 10 2007 10:52:30)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

http://blog.maurizio.proietti.name

venerdì 25 gennaio 2008

Voip su windows mobile 6 e configurazione di ipdialplan.xml

Oggi ho configurato il mio PDA (Hermes con windows mobile 6) per connettersi a mytcom.it e sfruttare il loro servizio voip per telefonare a tariffe vantaggiose.
Dopo aver configurato il mio pda ed aver stabilito la connessione correttamente
come mostrato nei seguenti screenshot:

Ho fatto le classiche chiamate di prova ai numeri 690 e 695 e tutto funzionava correttamente.
Ho quindi aggiunto del credito al mio account e ho provato a chiamare numeri fissi o cellulari.
Ottenevo sempre un errore come il seguente:
"cannot complete the call phone number may not be valid"

Mi sono un po' scervellato per capire cosa potesse essere, ho chiesto aiuto al supporto di mytcom.it ma per loro tutto era ok (infatti funzionava tutto con i loro numeri di test)
fino a quando non ho capito...
il problema era la COMPOSIZIONE del numero, era impostato male il file
ipdialplan.xml

Presente nell directory \windows sul mio pda

Dopo aver cercato un po' su internet ed aver trovato le seguenti informazioni:
http://forum.xda-developers.com/showthread.php?p=1846002
http://msdn2.microsoft.com/en-us/library/bb202934.aspx
http://msdn2.microsoft.com/en-us/library/aa921921.aspx
http://msdn2.microsoft.com/en-us/library/aa921954.aspx

mi sono deciso a modificarmi il file
ipdialplan.xml

che allego di seguito:
io l'ho provato con molti numeri che ho in rubrica, sia con il +39 che senza, sia fissi che cellulari e tutto sembra funzionare correttamente.



<dialplan xmlns='http://schemas.microsoft.com/embedded/VoIP'>
<dialplan-header>
<host>#use_sipsrv_host_name#</host>
</dialplan-header>
<!-- Dial Plan rules -->
<!-- IP address rules -->
<rule pattern='\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}'
restrict='Cell,SMS'
/>
<rule pattern='(\d{1,3})\*(\d{1,3})\*(\d{1,3})\*(\d{1,3})'
dial='\1.\2.\3.\4'
display='\1.\2.\3.\4'
transfer='\1.\2.\3.\4'
restrict='Cell,SMS'
/>
<!-- 11-digits rules -->
<rule pattern='1\s*-?\s*(\d{3})\s*-?\s*(\d{3})\s*-?\s*(\d{4})(\s*[Xx]\s*\d+)?'
dial='sip:91\1\2\3@$host$'
display='1 (\1) \2-\3'
transfer='sip:1\1\2\3@$host$'
/>
<rule pattern='1\s*-?\s*\((\d{3})\)\s*-?\s*(\d{3})\s*-?\s*(\d{4})(\s*[Xx]\s*\d+)?'
dial='sip:91\1\2\3@$host$'
display='1 (\1) \2-\3'
transfer='sip:1\1\2\3@$host$'
/>
<rule pattern='\+\s*1\s*-?\s*(\d{3})\s*-?\s*(\d{3})\s*-?\s*(\d{4})(\s*[Xx]\s*\d+)?'
dial='sip:91\1\2\3@$host$'
display='+1 (\1) \2-\3'
transfer='sip:1\1\2\3@$host$'
/>
<rule pattern='\+\s*1\s*-?\s*\((\d{3})\)\s*-?\s*(\d{3})\s*-?\s*(\d{4})(\s*[Xx]\s*\d+)?'
dial='sip:91\1\2\3@$host$'
display='+1 (\1) \2-\3'
transfer='sip:1\1\2\3@$host$'
/>
<!-- 11-cifre-by-maox-x-italy +39 33344455566-->
<rule pattern='\+\s*(\d{2})\s*(\d{11})'
dial='sip:\2@$host$'
display='+\1\2'
transfer='sip:\2@$host$'
/>
<!-- 10-cifre-by-maox-x-italy +39 3334445556-->
<rule pattern='\+\s*(\d{2})\s*(\d{10})'
dial='sip:\2@$host$'
display='+\1\2'
transfer='sip:\2@$host$'
/>
<!-- 9-cifre-by-maox-x-italy +39 3334445556-->
<rule pattern='\+\s*(\d{2})\s*(\d{9})'
dial='sip:\2@$host$'
display='+\1\2'
transfer='sip:\2@$host$'
/>
<!-- 8-cifre-by-maox-x-italy +39 333444555-->
<rule pattern='\+\s*(\d{2})\s*(\d{8})'
dial='sip:\2@$host$'
display='+\1\2'
transfer='sip:\2@$host$'
/>
<!-- qualsiasi-cifre-by-maox-x-italy 4916 oppure 695 oppure qualsiasi numero senza +39-->
<rule pattern='(\d+)'
dial='sip:\1@$host$'
display='\1'
transfer='sip:\1@$host$'
/>
<!-- 10-digits rules -->
<rule pattern='(\d{3})\s*(\d{3})\s*-?\s*(\d{4})(\s*[Xx]\s*\d+)?'
dial='sip:9\1\2\3@$host$'
display='(\1) \2-\3'
transfer='sip:\1\2\3@$host$'
/>
<rule pattern='\((\d{3})\)\s*(\d{3})\s*-?\s*(\d{4})(\s*[Xx]\s*\d+)?'
dial='sip:9\1\2\3@$host$'
display='(\1) \2-\3'
transfer='sip:\1\2\3@$host$'
/>
<!-- 7-digits rules -->
<rule pattern='(\d{3})\s*-?\s*(\d{4})'
dial='sip:9425\1\2@$host$'
display='\1-\2'
transfer='sip:425\1\2@$host$'
/>
<!-- SIP URI rules -->
<rule pattern='[Ss][Ii][Pp][Ss]?:\s*(\d{3})(\d{3})(\d{4})@(.+)'
display='(\1) \2-\3'
restrict='Cell,SMS'
/>
<rule pattern='([Ss][Ii][Pp][Ss]?:)?\s*([a-zA-Z0-9_-]+)@(.+)'
display='\2'
restrict='Cell,SMS'
/>
<rule pattern='[Ss][Ii][Pp][Ss]?:\s*([^@]+)'
display='\1'
restrict='Cell,SMS'
/>
<!-- 5-digits rules -->
<rule pattern='(\d{3})-?(\d{2})'
dial='sip:\1\2@$host$'
display='\1\2'
transfer='sip:\1\2@$host$'
/>
<rule pattern='1\s*\((\d{3})\)\s*(\d)'
dial='sip:1\1\2@$host$'
display='1\1\2'
transfer='sip:1\1\2@$host$'
/>
<!-- Only digits -->
<rule pattern='(\d+)'
dial='sip:\1@$host$'
display='\1'
transfer='sip:\1@$host$'
/>
</dialplan>

http://blog.maurizio.proietti.name