Archive for May, 2010

Show a config file without comments

Friday, May 28th, 2010
~$ egrep -v "^$|^[[:space:]]*#" /your/path/file

or

~$ awk '!/^\ *#/&&(length > 0)' /your/path/file

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 ~