quarta-feira, 20 de junho de 2012

dovecot+ispconfig - authenticate user with alias domain

For anyone using ispconfig3 with dovecot ( imap/pop server), the default auth mechanism only allows the user to authenticate with e-mails from the main domain.

If one domain is @domain.com and we configure @domain.pt to be an alias of the first one, we can only login with:

username: user@domain.com
passwd: *******

To allow the login to be made with user@domain.pt, we have to change the query made by dovecot. Just replace the user_query and password_query in dovecot-sql.conf:

user_query = SELECT email as user, maildir as home, CONCAT('maildir:', maildir, '/Maildir') as mail, uid, gid, CONCAT('*:storage=', quota, 'B') AS quota_rule, CONCAT(maildir, '/.sieve') as sieve FROM mail_user WHERE disable%Ls = 'n' AND (email = '%u' OR email = CONCAT ( SUBSTRING_INDEX('%u', '@', 1), (select mail_forwarding.destination FROM mail_forwarding where source = CONCAT ('@', SUBSTRING_INDEX('%u', '@', -1)))))

password_query = SELECT password FROM mail_user WHERE disable%Ls = 'n' AND ( email = '%u' OR email = CONCAT ( SUBSTRING_INDEX('%u', '@', 1),(select mail_forwarding.destination FROM mail_forwarding where source = CONCAT ('@', SUBSTRING_INDEX('%u','@', -1)))))


terça-feira, 24 de janeiro de 2012

SpeedTouch THOMSON ST5x6v6 - Administrador Novis

Administrador novis dos Speedtouch THOMSON ST5x6v6, e possivelmente outros equipamentos:
NovisSU : n0v!5
Apenas necessário para login via telnet, e mesmo assim possivelmente o utilizador admin é suficiente para efectuar todas as alterações pretendidas.

sexta-feira, 18 de novembro de 2011

Webmin Modules - Pure-FTPD

The latest version (0.55) of this third-party module has a typo, that renders the users display a nightmare, with users inside users inside users...
The official package, here, doesn't seem to be maintained anymore, and I didn't find a way to contact them to fix this, so I leave you with a patch for those of you who already have it, a the package with this fixed.
patch
pureftpd.wbm

source

quinta-feira, 9 de dezembro de 2010

Twinkle: USB Headset Microphone (Fedora/Linux)

My usb heaset (Halfmman Cobra HS-87, which are the same as the ozone oxid) worked perfectly in my Fedora Core 13 (2.6.34.7-63.fc13.x86_64) KDE 4.5.3, both output(speakers) as well as the input(microphone). That was until I've tried to use it with twinkle.
Didn't have any problems getting it to work in skype, just plugged it in and it was automatically detected and added to the system.
Went to System Settings -> Multimedia -> Phono and could see it there. Gave it higher priority over the other devices, and after that it worked perfectly in my system.

The problem appeared when I tried to use it in twinkle, though I could ear perfectly, it wasn't using my headset's microphone, instead it was using my laptop's.

Since I use pulse audio (default in Fedora) I noticed that twinkle uses directly alsa. So after a litle search (not so little) I came across this thread, and it saved me =)

Since I only needed the micro to work, I created the following .asoundrc in my home directory:


pcm.usb_in {
type pulse
device alsa_input.usb-04d9_0020_832R-00-U0x4d90x20.analog-mono
hint {
description "halfmman Cobra Micro"
}
}


To find the device value use:
pactl list
And search for the device you want, which in my case was: alsa_input.usb-04d9_0020_832R-00-U0x4d90x20.analog-mono.

After that open twinkle -> Edit -> System Settings -> Audio

On the Microphone select ALSA: other device
and on the other device field put: usb_in

It should be working now!

quinta-feira, 25 de novembro de 2010

Fedora: Java JRE from SUN (64 Bit)

This was shamelessly "stolen" and adapted from backtrack forum

System

Fedora release 13 (Goddard)

Linux shinigami 2.6.34.7-61.fc13.x86_64 #1 SMP Tue Oct 19 04:06:30 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux



Download the .bin file

sudo sh jre-6u22-linux-x64-rpm.bin

sudo update-alternatives --install "/usr/bin/java" "java" "/usr/java/jre1.6.0_22/bin/java" 1

sudo update-alternatives --set java /usr/java/jre1.6.0_22/bin/java

sudo ln -s /usr/java/jre1.6.0_22/lib/amd64/libnpjp2.so /usr/lib64/mozilla/plugins/

Restart Firefox