Posts Tagged ‘ubuntu’

HOWTO: Install Roundcubemail from SVN on Ubuntu Lucid 10.04

Saturday, June 5th, 2010

I decide to write this article for sharing my experience, while there is still spare time to write and my mood.  let’s begin…

Why What I choose to install from SVN not to install from downloading tar.gz ? that’s very simple to answer.  because :

  1. Install roundcube from SVN, for now always updated (that’s my opinion, and proved correct). I have to try install from tar.gz , and found some bugs and still not updated.
  2. and I have freer to updating anytime using svn.  (masterpop3 suggestion :D )

Server Requirements :

  • Apache, Lighttpd (>=1.4.13 for SSL), or Cherokee Web server
  • Directory on the Web server allowed to run scripts
  • If using Apache, .htaccess support or configuration to override DirectoryIndex
  • PHP version 5.2.1 or greater with
    • PCRE (Perl-Compatible Regular Expressions)
    • Session support
    • Socket support
    • MySQL, PostgreSQL, or SQLite database engine
    • iconv (recommended)
    • OpenSSL (recommended)
    • Mbstring (optional)
    • FileInfo (optional)
    • Mcrypt (optional)
  • php.ini options:
    • error_reporting E_ALL & ~E_NOTICE (or lower)
    • file_uploads on (for attachment upload features)
    • memory_limit (increase as suitable to support large attachments)
    • session.auto_start off
    • magic_quotes_gpc off
  • If using MySQL or PostgreSQL, a database server and database user with permission to create tables
    • If using MySQL 5.0.2 or later, disable STRICT_TRANS_TABLES and STRICT_ALL_TABLES
  • OpenSSL and Socket modules for PHP required to connect to secure IMAP or IMAPS, for secure SMTP and to use the spell checker
    • Additionally, the CURL module for PHP is required for spell checking with TinyMCE (HTML WYSIWYG Editor).
  • An IMAP server which supports IMAP 4 rev 1
  • An SMTP server (recommended) or PHP configured for mail delivery (more…)

Integration Postfix + Mailman + Ispconfig3 on ubuntu Lucid 10.04

Tuesday, May 18th, 2010

This guide explains how to setup Mailman mailing list software with the Apache web server and Postfix mail servers on Ubuntu with running ispconfig3. The intended audience is experienced linux users and system administrators.

Assumptions

  • It is assumed that you know how to run linux commands, edit files, and start and stop services in the linux system. It is also assumed that you have administrative access to an Ubuntu system, that you have internet connection and that you have configured /etc/apt/sources.list.
  • myhostname : masterpop3.domain.com
  • sign ‘~#’ is mean your console

1. Installation Mailman

~# aptitude install mailman
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following NEW packages will be installed:
mailman pwgen{a}
0 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 9,665kB of archives. After unpacking 45.0MB will be used.
Do you want to continue? [Y/n/?] y
configuring-mailman

configuring-mailman1

configuring-mailman2

configuring-mailman2

(more…)

Mailman Postfix Recipient address rejected: User unknown in virtual mailbox table;

Friday, May 14th, 2010

May 14 15:29:15 apel postfix/smtpd[13425]: NOQUEUE: reject: RCPT from unknown[202.xxx.xxx.xxx]: 550 5.1.1 <milist@nixnux.or.id>: Recipient address rejected: User unknown in virtual mailbox table; from=<usera@nixnux.or.id> to=<milist@nixnux.or.id> proto=SMTP helo=<usera>

I see the error log /var/log/mail.log in my ubuntu lucid 10.04 with ispconfig 3.0.2.1, postfix and mailman.

error above cause of :

  • mailman hasn’t hash alias_maps or virtual_alias_maps
  • mallfunction section of integration postfix with mailman

please try my solution :

check config file /etc/postfix/main.cf , make sure you have :

.
.
alias_maps = hash:/etc/aliases,hash:/var/lib/mailman/data/aliases
alias_database = hash:/etc/aliases,hash:/var/lib/mailman/data/aliases
.
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf, hash:/var/lib/mailman/data/virtual-mailman
.
.

postfix build map and try reload postfix :

~# postmap /var/lib/mailman/data/aliases
~# postmap /var/lib/mailman/data/virtual-mailman

~# /etc/init.d/postfix restart

~~Good Luck~~
masterpop3

Mailman list admin password reset

Friday, May 14th, 2010

If you forget your admin list password for a mailman list in your linux ubuntu, type this at the console :

/usr/lib/mailman/bin/change_pw --listname=milist --domain=masterpop3.com --password=newpassword

where :

–listname=milist
Change the password only for the named list.  It is okay to give multiple -l options.

–domain=masterpop3.com
Change the password for all lists in the virtual domain `domain.com’.  It is okay to give multiple -d options.

–password=newpassword
Use the supplied plain text password `newpassword’ as the new password for any lists that are being changed (as specified by the -a, -d, and -l options).  If not given, lists will be assigned a randomly generated new password.

~Good luck ~

OpenLDAP-SambaPDC-Ubuntu-Karmic-9.10

Thursday, December 10th, 2009

I took some articles from here and here, and trying to fit into ubuntu server Karmic 9.10 – 64bit. If you have trouble reading this tutorial, please use google translate from bahasa Indonesia to English.

Thanks to ubuntu-community and howtoforge.net

Pendahuluan

Artikel ini menjelaskan cara mengatur Windows domain menggunakan Samba dengan OpenLDAP sebagai Domain Controler utama yang menyimpan informasi account Windows. Ini menyediakan otentikasi terpusat untuk Windows pengguna pada jaringan, sehingga menghindari kebutuhan untuk mengelola account pengguna lokal di setiap Windows PC. Ini dapat juga memungkinkan penggunaan profil roaming, di mana pengguna dapat masuk ke setiap Windows PC pada jaringan dan pengaturan pribadi yang sama di setiap sesi.

Dengan menggunakan LDAP sebagai database Samba bukan salah satu alternatif, meskipun, jauh lebih dapat dicapai. Database LDAP dapat juga mengadakan kelas-kelas lain informasi pada masing-masing pengguna yang dapat digunakan untuk sistem otentikasi lainnya, atau untuk informasi umum seperti dalam kasus e-mail dari daftar kontak. Dalam artikel ini, LDAP kelas ‘person’, ‘organizationalPerson’ dan ‘inetOrgPerson’ menyimpan informasi umum tentang pengguna, termasuk alamat e-mail, nomor telepon dan alamat fisik. Informasi ini dapat dimanfaatkan oleh klien e-mail seperti Evolution dan Thunderbird. Kelas LDAP ‘posixAccount’ menyimpan informasi account pengguna Linux. Sama seperti Windows PC, PC Linux dapat dikonfigurasi untuk menggunakan database OpenLDAP sebagai pusat titik otentikasi. Dengan demikian, kita memiliki sebuah server LDAP yang menyediakan otentikasi untuk Windows dan Linux PC. Selain itu, server LDAP dapat berpotensi digunakan untuk mengontrol akses ke sistem Web – silakan lihat artikel sangat membantu OpenLDAPServer.

(more…)

fail2ban.server : ERROR Unexpected communication error

Monday, July 27th, 2009

Solution for Ubuntu 9.04

#aptitude install python2.5

Change the python version there execute the fail2ban-server script.
#vim /usr/bin/fail2ban-server

Change the first line from:
#!/usr/bin/python
–> to
#!/usr/bin/python2.5

After that restart fail2ban
# /etc/init.d/fail2ban restart

~# tail -f /var/log/fail2ban.log
2009-07-27 15:07:03,144 fail2ban.jail   : INFO   Jail ‘ssh’ stopped
2009-07-27 15:07:03,627 fail2ban.server : INFO   Changed logging target to /var/log/fail2ban.log for Fail2ban v0.8.3
2009-07-27 15:07:03,628 fail2ban.jail   : INFO   Creating new jail ‘ssh’
2009-07-27 15:07:03,628 fail2ban.jail   : INFO   Jail ‘ssh’ uses poller
2009-07-27 15:07:03,651 fail2ban.filter : INFO   Added logfile = /var/log/auth.log
2009-07-27 15:07:03,652 fail2ban.filter : INFO   Set maxRetry = 6
2009-07-27 15:07:03,655 fail2ban.filter : INFO   Set findtime = 600
2009-07-27 15:07:03,656 fail2ban.actions: INFO   Set banTime = 3600
2009-07-27 15:07:03,812 fail2ban.jail   : INFO   Jail ‘ssh’ started

Thanx to dudez at howtoforge.com