Postfix Virtual Host Mailing List

Postfix Virtual Host Mailing List

I'm setting up a email server using Postfix as the MTA and the users data reside in the OpenLDAP. We used Postfix Virtual Domain configure in Linux Centos 5.

http://www.postfix.org/VIRTUAL_README.html

The problem that bugging us is how to create a mailing list address. For example [email protected] will send email to all the users in the email system.

What we have done.

(1) Create a text file that contain all the email addresses and put it under /etc/postfix or /usr/local/etc/postfix for FreeBSD.

/etc/postfix/all-users.txt
[email protected]
[email protected]
(2) Add this lines inside /etc/aliases
# all Users
all-users: :include:/etc/postfix/all-users.txt
(3) Add inside /etc/postfix/virtual
[email protected] [email protected]

[email protected] all-users

We want to control email that send to [email protected]. The email address [email protected] will be used officialy to send email to all the users but it will be forward to [email protected].

Email will be resend using bcc by email address [email protected]


-------- Postfix main.cf example

# For Virtual Domain harisfazillah.info

virtual_alias_maps = ldap:/etc/postfix/ldap-aliases.cf

virtual_transport = virtual
virtual_mailbox_base = /var/mail/vmail
virtual_mailbox_limit = 512000000
virtual_mailbox_maps = ldap:/etc/postfix/ldap-mailbox.cf
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_mailbox_domains = harisfazillah.info
virtual_minimum_uid = 1000
virtual_uid_maps = static:2033
virtual_gid_maps = static:548
virtual_create_maildirsize = yes
virtual_mailbox_extended = yes


Sedih

Saya kehilangan seorang sahabat isnin lepas akibat sakit jantung.

Saya mengenali beliau cukup rapat. Pada hari pertama beliau bekerja bertahun dahulu beliau melaporkan diri dalam kumpulan shift saya. Kami pada masa itu bertugas bahagian operasi komputer dan terlibat dengan kerja yang masa kerja yang sentiasa bertukar-tukar. Pagi atau petang atau malam.

Banyak perkara kami kongsikan bersama. Terlalu banyak kenangan. Teringat apabila kami bertugas shift malam, dia dan seorang lagi rakan nama Hamidi, akan pasang lagu underground kuat-kuat sehingga saya sendiri tak larat nak layan dengar. Im not the guy yang suka lagu-lagu macam tu. Ada reason kenapa Shahrul dan Hamidi pasang lagu kuat-kuat, nak lawan mengantuk.

As a friend banyak masa susah beliau membantu. Banyak yang hendak dicatatkan namun biarlah ia kekal dalam lipatan kenangan.

Ramai antara kami, rakan-rakannya tidak tidur malam apabila mendengar berita dan saya sendiri rasa sedih masih terasa sehingga sekarang. Adalah sukar untuk menelan rasa kehilangan walaupun sudah tidak lama berjumpa.


Kehilangan beliau buat saya mengubah banyak perkara tentang prespektif hidup.

Tidak mahu lagi rasa sedih. Tidak mahu lagi rasa tension-tension. Tidak mahu lagi pandang ke belakang.

dan yang tak best, ramai sahabat-sahabat yang lama tidak berjumpa, tell me that Im getting fatter. Alamak kena kurangkan berat ni.

And it's worries me a lot. Sedangkan Shahrul yang 5 tahun muda daripada saya diserang sakit jantung, bagaimana pula dengan saya?


TMnet DNS Blackhole

While browsing Alexa 100 Top Sites Malaysia result that you can find it here.

http://www.alexa.com/site/ds/top_sites?cc=MY&ts_mode=country&lang=none

One site don't return any thing. Just a blank white page. This site is among top 100 Malaysia sites and it's just return a blank page that is not right. Using dig command I found this result.

blocked.tm.net.my

My questions.

Does Tmnet has the ability to block any websites blanket block to all Tmnet users?
Does Jaring and any other ISP's have this ability?

This type of block is what we call DNS blackhole or blacklist. It's can be used for stopping SPAM or stopping people from accessing websites.

Refer to Djbdns for DNS blackhole.

http://tinydns.org/

---

[root@ ~]# dig www. .com

; <<>> DiG 9.3.3rc2 <<>> www. .com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 20448 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;www. .com. IN A ;; AUTHORITY SECTION: .com. 2831 IN SOA ns1.blocked. blocked.tm.net.my. 1 900 600 86400 3600 ;; Query time: 1 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Sat May 10 03:09:50 2008 ;; MSG SIZE rcvd: 97 [root@~]#

Admin Server Remotely

I need to blog this before I forget about them. Im used to SSH and Webmin

http://www.webmin.com/

and now I try 2 more software that can help administrator admin server remotely.

Ebox Platform

http://ebox-platform.com/

The eBox platform will effectively and easily help you in managing the advanced services for your corporate network. Designed with extensibility in mind it offers, among others, these modules: Firewall, Transparent proxy, Traffic shaping, VPN’s, Content filter, NTP Server, Users and groups, Mail server… more modules!

Web Console

http://www.web-console.org/

Web Console is a web-based application that allows remote users to execute UNIX/Windows shell commands on a server, upload/download files to/from server, edit text files directly on a server and much more. The application is represented as a web page that accepts user input such as a command, executes that command on a remote web server, and shows command output in a browser. As well, simple and functional file manager build-in into the application.

Upgrade Clamav 0.93 in Zimbra 5

Upgrade Clamav 0.93 in Zimbra 5


My friend had this problem with his zimbra installation. After upgrade Clamav to version 0.93 Zimbra service for antivirus could not be started.

Information about the Zimbra Installation

ZIMBRA Release 5.0.5_GA_2201.RHEL5_20080417012110 CentOS5 FOSS edition. Run on Centos 5.

zmclamdctl start

cp: cannot stat `/opt/zimbra/clamav/db/daily.cvd.init': No such file or directory
cp: cannot stat `/opt/zimbra/clamav/db/main.cvd.init': No such file or directory
ClamAV update process started at Mon May 5 05:09:26 2008
main.cvd is up to date (version: 46, sigs: 231834, f-level: 26, builder: sven)
daily.cld is up to date (version: 7025, sigs: 45717, f-level: 26, builder: ccordes)
clamd failed to start


The first two lines Zimbra startup script try to find two files daily.cvd.init and main.cvd.init inside /opt/zimbra/clamav/db but this files is not part of Clamav installation files. It's part of Zimbra, that may act as skeleton files.

What we did, is to run freshclam, to download the latest daily.cvd and main.cvd and copy them into daily.cvd.init and main.cvd.init.

For the error clamd failed to start. We need to view the error in the clamd log /opt/zimbra/log/clamd.log

ERROR: Parse error at line 241: Unknown option ArchiveMaxFileSize.
ERROR: Can't open/parse the config file /opt/zimbra/conf/clamd.conf

This setup is installed with Zimbra that came with Clamav version 0.90. This option ArchiveMaxFileSize under /opt/zimbra/conf/clamd.conf is not reconize under Clamav 0.93.

My friend stuck with this problem because he did not realize that, the Zimbra startup script will still refer to /opt/zimbra/conf/zimbra.conf.in

Any modification that he did to the file /opt/zimbra/conf/clamd.conf was changed by the Zimbra startup script. He should modify /opt/zimbra/conf/zimbra.conf.in and remark the ArchiveMaxFileSize ie #ArchiveMaxFileSize.

and we resolved the Zimbra Antivirus problem.

Popular Posts

Labels

64bit Activity Adempire advocate Akta Apache ASAS Azam backup backuppc Bash Beowulf Big Data Broadband Budget Centos Cinta Cluster CMS cmsfornerd Complain computer Computer Operation Conference Contest Data Centre Operation DBmail Digg Digital Certification Discussion Group Django DNS Domain Duit Online Economy email email server English Evangelist Events Family Tree Fedora File System Firefox Foss FOSS.my FreeBSD FTX Gluster Gmail Godaddy.com Google Google App GTUG Hacking Hadoop Harisfazillah Jamel horde HP-UX hwclock IBM Indonesia Internet Internet Tools Itanium Jaring Java Javascript Jepun Jiwang Joke Joomla Kesihatan KOSTEM ldap Linux Linux Counter linuxmalaysia Love Mailman MailScanner Mailwatch Malay Malaysia MAMPU MDeC meetup Melaka Melayu Merdeka Microsoft Migration mirror sites Money Online MOSC 2010 MOSC2010 mosc2011 MOSC2013 MOSCMY MOSCMY2014 MOSCMY2015 Mozilla MPI MSC Malaysia MSC Malaysia OSCONF MSCOSCONF My Love MyGOSSCON MyMeeting Mypenguin99 mysql Nagios NagiosQL Negaraku nss_ldap ntp OBW2014 Open Office Open Source openldap Openoffice.org OpenStack Opera OS2 OS400 OSCC OSCC MAMPU osdc.my OSS OSS Policy OWASP Parallel Computing People Power Personal PGP PHP Pligg Politik Postfix Postgresql Programming Proxmox Python q1moscmy2015 Questionnaires Research Research tools RPM SASSIAN Sassian 85-89 Sassians 85-89 SCO Security Sekolah Sekolah Alam Shah Shell script Software License Solaris SongketMail SongketMailFilter sourceforge spam spamassassin Spoof Survey SVR4 System Tools Technorati Terjemahan Terminal TMnet Training translation Treasury Malaysia Trend Micro Twitter Ubuntu Unix Virtualization VMS VOIP Wang Web Server Windows Zimbra