Exim - Command

Some userfull Exim command: exim -bpmailq --- The mailq is relevant as it gives your the email IDs. exim -M emailIDforce delivery of one message exim -qf Force another queue run exim -qff Force another queue run and attempt to flush frozen messages exim -Mvl message IDView Log for message exim -Mvb message IDView Body for message exim -Mvh message IDView Header for message exim -Mrm message IDReMove message (no errors sent) exim -Mg message IDGive up and fail message, message bounces to sender

16 September 2009 @ 02:30 · Updated: 30 June 2026 @ 03:28 · leo

Watch - Exim Queue

Just in one line memo: # watch -n 5 'exim -bp | exiqsumm |grep TOTAL'

16 September 2009 @ 02:13 · Updated: 30 June 2026 @ 03:28 · leo

OpenSSH - Generate server key

OpenSSH require different keys depending if you use SSH1 or SSH2 protocol. All keys are generated by “ssh-keygen” commad, that one should be available on your system with the ssh package. Default key lengths are also appropriate (2048 bits for rsa and 1024 bits for dsa) For SSH1 protocol, you need a rsa1 key generated has follow: # ssh-keygen -q -f /etc/ssh/ssh_host_key -N '' -t rsa1 For SSH2 protocol, you need two keys, one rsa key and one dsa key generated has follow: ...

11 August 2009 @ 22:08 · Updated: 30 June 2026 @ 03:28 · leo

Cool Tools for OpenSPARC

Optimized Applications for Solaris OS and OpenSparc computing. Simple and very useful example is “Cool Stack” a web deployment packge include most commonly used free and open source applications, recompiled to deliver a 30 to 200 percent performance improvement over standard binaries compiled with GCC. Cool Tools.

21 July 2009 @ 03:09 · leo

IIS Socket Pooling

C’è una cosa brutta da sapere e si scopre quando per caso proviamo ad installare un servizio in ascolto sulla porta 80 su windows che ha già attivo per sfortuna nostra IIS, si chiama socket pooling, infatti automaticamente iis decide di essere in ascolto su tutti i socket quindi ogni indirizzo configurato sulla macchina, impedendo l’avvio di qualsiasi altro servizio (es. apache) anche se apparentemente configurato correttamente. Per ovviare a questo problema ecco come fare: -Prima di tutto installate i support tools, dove sono? Inserite il cd nella directory \Support\Tools trovate un pacchetto suptools.msi -Ora potete procedere: ...

18 July 2009 @ 04:06 · Updated: 30 June 2026 @ 03:28 · leo

Miaoo - Tomcat su Debian

Breve draft su come installare tomcat su debian, in questo caso lenny, le versioni dei pacchetti potrebbero cambiare ma il risultato finale è quello. Partiamo installando quello che ci serve: #apt-get install tomcat5.5 tomcat5.5-admin sun-java5-jdk tomcat5.5-webapps Attenzione, se l’installazione debian di default sicuramente non trovo il java jdk, è necessario quindi aggiungere il repository non-free, in apt editando in questo modo: /etc/apt/source.list deb http://your-mirror-url/debian/ lenny main non-free deb-src http://your-mirror-url/debian/ lenny main non-free Configurare il sistema per utilizzare java ...

18 July 2009 @ 03:40 · Updated: 30 June 2026 @ 03:28 · leo

Configuring the svnserve daemon

Creating the repositories If you have not created any subversion repositories yet, you can create one with svnadmin: # svnadmin create ~/my-repository Tweaking svnserve.conf Open up and edit the svnserve.conf file located in the $HOME/my-repo/conf/ directory. Sample $HOME/my-repo/conf/svnserve.conf [general] # Path to the file containing svn users and passwords. password-db = $HOME/my-repo/conf/passwd # Authentication realm of the repository. Two repositories using the # same password-db should have the same realm. realm = My-test-repository # Deny all anonymous access anon-access = none # Grant authenticated users read and write privileges auth-access = write Setting up password authentication Open up and edit the password-db file (ie. $HOME/my-repo/conf/passwd). A sample entry might look like this: ...

29 March 2009 @ 12:59 · Updated: 30 June 2026 @ 03:28 · leo

Configuring subversion access over HTTP/DAV

Creating the repository If you have not created any Subversion repositories yet, you can create one with svnadmin: # svnadmin create ~/my-repository Adding mod_dav_svn to your httpd # a2enmod mod\_dav\_svn If you plan to use fine-grained permissions, load mod_authz_svn.so as well: # a2enmod mod_authz_svn Configuring access to repositories HTTP access to your repositories is defined using a <Location> section in your httpd.conf. <Location /myproject> DAV svn SVNPath /home/myself/myrepos/myproject AuthType Basic AuthName "My project" AuthUserFile /home/myself/private/myproject.pw Order deny,allow <LimitExcept GET PROPFIND OPTIONS REPORT> Require valid-user </LimitExcept> </Location> This entry would grant read-only access to everyone and write access to every user AuthUserFile. You can use the htpasswd utility to create or update this file, as described here. ...

29 March 2009 @ 12:53 · Updated: 30 June 2026 @ 03:28 · leo

MySQL Change Password

If you have never set a root password for mysql, the server does not require a password at all for connecting as root. To setup root password for first time, use mysqladmin command at shell prompt as follows: # mysqladmin -u root password NEWPASSWORD However, if you want to change (or update) a root password, then you need to use following command # mysqladmin -u root -p oldpassword newpass Enter password: Change MySQL password for other user To change a normal user password you need to type (let us assume you would like to change password for leo): ...

22 March 2009 @ 23:44 · Updated: 30 June 2026 @ 03:28 · leo

ProFTP(D) - Ident Lookups

Visto che mi è capitato e mi dimentico sempre, proftpd nell’installazione standard (Debian per capirci) è attivo di defaultl l’ident del client, quindi colpa del reverse o colpa dei dns mal configurati la connessione risulta parecchio lenta nella fase di autenticazione. Per risolvere: #/etc/proftpd/proftpd.conf IdentLookups no

17 March 2009 @ 22:20 · Updated: 30 June 2026 @ 03:28 · leo