Archive for July, 2007

Blocking Alamat Email di Qmail

Untuk melakukan blocking alamat email di Server Qmail caranya cukup mudah
—-
Bisa Dilakukan dengan mengedit file –> /var/qmail/control/badmailfrom

*.Kalo ingin nge-block dari sebuah alamat domain, lakukan cara sebagai berikut

echo ‘@domain.com’ >> /var/qmail/control/badmailfrom

.:GoodLuck:.

Comments (2)

Install WordPress di Debian Etch

Dikutip Langsung dari Links dibawah ini
http://www.debianadmin.com/install-wordpress-in-debian-etch.html
dengan maksud tidak mengurangi rasa hormat kepada sang penulis,
saya copy paste-kan di blog ini, biar tidak lupa …
hehe

WordPress is a state-of-the-art semantic personal publishing platform with a focus on aesthetics, web standards, and usability. What a mouthful. WordPress is both free and priceless at the same time.

WordPress Requirements

* Apache Web server

* PHP 4.2 or greater

* MySQL 3.23.23 or greater

* The mod_rewrite Apache module

First you need to install apache2 with php support and mysql with php support

Apache with PHP Support check here

Mysql Database installation check here

Mysql with php support you need to run the following command

#apt-get install php4-mysql

after that you need to install wordpress using the follwoing command

#apt-get install wordpress

This will install the wordpress now you need to go to /usr/share/doc/wordpress/example folder to setup apache to point to /usr/share/wordpress. See the examples/apache.conf

Create a file called wordpress under /etc/apache2/sites-available/ and enter the following and save the file

Alias /blog /usr/share/wordpress

Options FollowSymLinks
AllowOverride Limit Options FileInfo
DirectoryIndex index.php

Now you need to enable this site using the following command

#a2ensite wordpress

Now reload apache using the following command

#/etc/init.d/apache2 restart

Database setup can be done with the help of a script in examples/setup-mysql

To setup mysql database for wordpress you need to follow this

setup-mysql [-n NAME] [-h | -d | -b] FQDN

Creates by default a WordPress mysql configuration depending on required fully
qualified domain name(FQDN).

Options:
-n name for the mysql user and database
-h help
-d destroy and purge
-b backup

Example: You want your blog to be served from http://blog.example.com for user ‘wordpress’.

Then run:
sudo sh setup-mysql -n wordpress blog.example.com

Example:-

#sh setup-mysql -n wordpress 172.20.2.18

After finishing this you need to go to http://your-server-ip/blog/ you should see the following message

It doesn’t look like you’ve installed WP yet. Try running install.php.

Click on install.php link and you should see the following screen saying welcome to wordpress installation in this click on First Step

.:GoodLuck:.

Comments

installing Qmail on FreeBSD in 5 Minutes

FreeBSD Qmail Server…
asalamualaikum wr wb
This is a quick installation of Qmail on FreeBSD Operating System …
————————
Do like this,
follow the step by step,
less than 5 minutes we can build a mail server….
Good Luck …!!!
wasalam wr wb
—————————
# cd /usr/ports/mail/qmail
# make enable-qmail WITH_QMAILQUEUE_PATCH=yes WITH_BIG_TODO_PATCH=yes
# make clean
# cd /usr/ports/sysutils/ucspi-tcp
# make all install clean

# cd /usr/ports/security/checkpassword
# make all install clean
# echo “OPTIONAL_MANPATH /var/qmail/man” >> /etc/manpath.config
# makewhatis
# echo “127.0.0.1:allow,RELAYCLIENT=\”\”" > /etc/tcp.smtp

# echo “192.168.0.:allow,RELAYCLIENT=\”\”" >> /etc/tcp.smtp
# echo :allow >> /etc/tcp.smtp
# /usr/local/bin/tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp < /etc/tcp.smtp

EDIT dot.cshrc

Find the following line in dot.cshrc:

set mail = (/var/mail/$USER)

and modify the file as follows:

#set mail = (/var/mail/$USER)
setenv MAIL ~/Mailbox
setenv MAILDIR ~/Maildir
setenv MAILTMP ~/Maildir/tmp/tmpfile
alias mail '/var/qmail/bin/maildir2mbox;/var/qmail/bin/qail'
alias pine '/var/qmail/bin/maildir2mbox;/var/qmail/bin/pinq'
alias elm '/var/qmail/bin/maildir2mbox;/var/qmail/bin/elq'

EDIT dot.shrc

Append the following lines to the end of dot.shrc

MAIL=~/Mailbox
MAILDIR=~/Maildir
MAILTMP=~/Maildir/tmp/tmpfile
export MAIL MAILDIR MAILTMP
alias mail='/var/qmail/bin/maildir2mbox;/var/qmail/bin/qail'
alias pine='/var/qmail/bin/maildir2mbox;/var/qmail/bin/pinq'
alias elm='/var/qmail/bin/maildir2mbox;/var/qmail/bin/elq'

EDIT dot.qmail

Create the file dot.qmail and add this line:

./Maildir/

* Maildir

Execute the following command to make the Maildir directory:

# /var/qmail/bin/maildirmake /usr/share/skel/Maildir

* Create Maildir and .qmail

Execute the following commands for each existing user:

# cp -R /usr/share/skel/Maildir ~USERSNAME/
# chown -R USERSNAME ~USERSNAME/Maildir
# cp /usr/share/skel/dot.qmail ~USERSNAME/.qmail
# chown USERSNAME ~USERSNAME/.qmail

# qmail options
qmail_smtp_enable="YES"
qmail_pop_enable="YES"
qmail_enable="YES"

Create /var/qmail/rc:

#!/bin/sh

#
# This script starts and stops the qmail mail functions.
#

# Suck in the configuration variables.
if [ -r /etc/defaults/rc.conf ]; then
. /etc/defaults/rc.conf
source_rc_confs
elif [ -r /etc/rc.conf ]; then
. /etc/rc.conf
fi

case "$1" in
start)
case ${qmail_smtp_enable} in
[Yy][Ee][Ss])
# Start the qmail smtp daemon
/usr/local/bin/tcpserver -H -R -c 255 -x /etc/tcp.smtp.cdb \
-u 82 -g 81 0 25 /var/qmail/bin/qmail-smtpd &
echo -n " qmail-smtp"
;;
esac

case ${qmail_pop_enable} in
[Yy][Ee][Ss])
# Start the qmail pop daemon
/usr/local/bin/tcpserver -H -R -c 255 0 110 \
/var/qmail/bin/qmail-popup HOSTNAME.DOMAIN \
/usr/local/bin/checkpassword /var/qmail/bin/qmail-pop3d \
Maildir &
echo -n " qmail-pop"
;;
esac

case ${qmail_enable} in
[Yy][Ee][Ss])
# Start qmail
exec env - PATH="/var/qmail/bin:$PATH" \
qmail-start ./Maildir splogger qmail &
echo -n " qmail"
;;
esac
;;
stop)
# Stop the smtp daemon
smtppid=`ps -axw | grep tcpserver | grep smtp | grep -v grep | awk '{ print $1 }'`
if [ "$smtppid" != "" ]; then
kill $smtppid
echo -n " qmail-smtp"
fi

# Stop the pop daemon
poppid=`ps -axw | grep tcpserver | grep popup | grep -v grep | awk '{ print $1 }'`
if [ "$poppid" != "" ]; then
kill $poppid
echo -n " qmail-pop"
fi

# Stop qmail
qmailpid=`ps -axw | grep qmail-send | grep -v grep | awk '{ print $1 }'`
if [ "$qmailpid" != "" ]; then
kill $qmailpid
echo -n " qmail"
fi
;;
*)
echo "Usage: `basename $0` {start|stop}" >&2
;;
esac

exit 0

chmod 750 /var/qmail/rc
# echo HOSTNAME.DOMAIN > /var/qmail/control/me
# echo HOSTNAME.DOMAIN > /var/qmail/control/rcpthosts
# echo DOMAIN >> /var/qmail/control/rcpthosts
# echo HOSTNAME.DOMAIN > /var/qmail/control/locals
# echo DOMAIN >> /var/qmail/control/locals
# echo HOSTNAME > /var/qmail/control/defaulthost
# echo DOMAIN > /var/qmail/control/defaultdomain
# echo DOMAIN > /var/qmail/control/plusdomain
# echo EMAILADDRESS > /var/qmail/alias/.qmail-root
# killall sendmail
# rm /var/run/sendmail.pid
# /usr/local/etc/rc.d/qmail.sh start
# ps -ax | grep tcpserver
# ps -ax | grep qmail
.:GoodLuck:.

Comments

Config Error (BSD)

Dear All …
Mesin Saya FreeBSD-Stable …
Hari ini saya mo compile ulang Kernel mesin tsb,tapi yang saya temui conflict / error spt dibawah :
Biar Bisa Compile kernel lagi gimana ya ??
kasih solusi donk …
thx
———
Problem ::

#config FIREWALL
ERROR: version of config(8) does not match kernel!
config version = 500013, version required = 600002

Make sure that /usr/src/usr.sbin/config is in sync
with your /usr/src/sys and install a new config binary
before trying this again.

If running the new config fails check your config
file against the GENERIC or LINT config files for
changes in config syntax, or option/device naming
conventions

Solution ::

# cd /usr/src/usr.sbin/config
# make depend all install clean

silakan rebuild kernel

-dh-
.:GoodLuck:.

Comments

Qmail error … /usr/ports (BSD)

Problem ?? ::
dear all…
saya punya mesin BSD-STABLE …
Udah Lama Sekali njalanin Qmail …
beberapa Hari yang lalu Qmail-nya saya uninstall ….
kemudian saya coba menginstall ulang Qmail nya …
namun yang keluar malah error seperti ini ….
—————
root@CS007# make reinstall
===> qmail-1.03_4 is marked as broken: OUTGOINGIP and QMTPC conflicts!
Please, make your choice.
——————-
Kira Kira kenapa neh ???
thx

Solutions ::
Hi Dimas,

cd /usr/ports/mail/qmail && make config

Pilih OUTGOINGIP *atau* QMTPC (sesuai kebutuhan), di sisi saya, hanya
patch QMAILQUEUE saja.

Regards
Bd

.:GoodLuck:.

Comments

APT Behind Proxy

APT Behind Proxy
Kalo Pingin ngejalanin APT get di Belakang Proxy
Jangan Lupa Tambahin Script ini ya …

root@ubuntuku:/var/www/test# cat /etc/apt/apt.conf.d/70debconf
// Pre-configure all packages with debconf before they are installed.
// If you don’t like it, comment it out.
DPkg::Pre-Install-Pkgs {“/usr/sbin/dpkg-preconfigure –apt || true”;};
ACQUIRE {
http::proxy “http://192.168.0.254:8080/”
}
// Artinya 192.168.0.254 adalah mesin Proxy
.:GoodLuck:.

Comments

FreeBSD Reprository for Port-Tree

Ini Cerita ttg FreeBSD –> Create /etc/make.conf
# Tambahkan Script ini u/ Porting file,lihat koneksinya (INDON or LUAR INDON)

#MASTER_SITE_BACKUP?= \
# ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/
#MASTER_SITE_BACKUP}

#Indonesia (Thx to CBN)
#MASTER_SITE_BACKUP?= \
# ftp://freebsd.cbn.net.id/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/
#MASTER_SITE_BACKUP}

#Luar Negeri (Thx to MIT)
#MASTER_SITE_BACKUP?= \
# http://cvsup3.freebsd.org/FreeBSD/ports/distfiles/${DIST_SUBDIR}/
#MASTER_SITE_BACKUP}
.:GoodLuck:.

Comments

RC.CONF FreeBSD for VLAN

# This file now contains just the overrides from /etc/defaults/rc.conf.

defaultrouter=”10.252.1.1″
gateway_enable=”YES”
named_enable=”YES”
squid_enable=”YES”
sendmail_enable=”NONE”
sendmail_enable=”NO”
apache22_enable=”YES”
sendmail_submit_enable=”NO”
sendmail_outbound_enable=”NO”
sendmail_msp_queue_enable=”NO”
clear_tmp_enable=”YES”
#if_vlan_load=”YES” –> ada di /boot/loader.conf
saver=”logo”
scrnmap=”NO”

hostname=”firewall.ptpn-11.com”
ifconfig_bge0=”inet 192.168.0.254 netmask 255.255.255.0″
ifconfig_xl0=”inet 10.252.1.3 netmask 255.255.0.0″
#ifconfig_rl0=”inet 192.168.10.111 netmask 255.255.255.0″

keymap=”us.iso”
linux_enable=”YES”
sshd_enable=”YES”
usbd_enable=”NO”

pf_enable=”YES” # Enable PF (load module if required)
pf_rules=”/etc/pf.conf” # rules definition file for pf
pf_flags=”" # additional flags for pfctl startup
pflog_enable=”YES” # start pflogd(8)
pflog_logfile=”/var/log/pflog” # where pflogd should store the logfile
pflog_flags=”" # additional flags for pflogd startup
gateway_enable=”YES” # Enable as LAN gateway

cloned_interfaces=”vlan0 vlan1 vlan2 vlan3 vlan4 vlan5 vlan6″

ifconfig_vlan0=”inet 192.168.10.254 netmask 255.255.255.0 vlan 10 vlandev bge0″
ifconfig_vlan1=”inet 192.168.11.254 netmask 255.255.255.0 vlan 11 vlandev bge0″
ifconfig_vlan2=”inet 192.168.12.254 netmask 255.255.255.0 vlan 12 vlandev bge0″
ifconfig_vlan3=”inet 192.168.13.254 netmask 255.255.255.0 vlan 13 vlandev bge0″
ifconfig_vlan4=”inet 192.168.14.254 netmask 255.255.255.0 vlan 14 vlandev bge0″
ifconfig_vlan5=”inet 192.168.15.254 netmask 255.255.255.0 vlan 15 vlandev bge0″
ifconfig_vlan6=”inet 192.168.16.254 netmask 255.255.255.0 vlan 16 vlandev bge0″

.:GoodLuck:.

Comments

Options Configuration Kernel FreeBSD

Bikin Kernel “FreeBSD” Tambah Garang
#Tuning For Squid
options MSGMNB=16384 # max # of bytes in a queue
options MSGMNI=41 # number of message queue identifiers
options MSGSEG=2049 # number of message segments per queue
options MSGSSZ=64 # size of a message segment
options MSGTQL=512 # max messages in system
options SHMSEG=16
options SHMMNI=32
options SHMMAX=2097152
options SHMALL=4096
options MAXFILES=8192
options NMBCLUSTERS=32768
options VFS_AIO

#IPFW
options IPFIREWALL
options IPFIREWALL_VERBOSE
options IPFIREWALL_FORWARD
options IPFIREWALL_DEFAULT_TO_ACCEPT
options IPDIVERT

# options Bandwidth Management
options DUMMYNET
options BRIDGE
options HZ=1000

#IPF “Don’t Use
# options IPFILTER
# options IPFILTER_LOG
# options IPFILTER_DEFAULT_BLOCK
# options RANDOM_IP_ID

# PF Device ENABLE
device pf
device pflog
device pfsync

# ALTQ ENABLED
device bpf # default
options INET # default
options INET6 # default
#options RANDOM_IP_ID
#options PFIL_HOOKS
options ALTQ
options ALTQ_CBQ # Class Bases Queuing (CBQ)
options ALTQ_RED # Random Early Detection (RED)
options ALTQ_RIO # RED In/Out
options ALTQ_HFSC # Hierarchical Packet Scheduler (HFSC)
options ALTQ_PRIQ # Priority Queuing (PRIQ)
options ALTQ_NOPCC # Required for SMP build

#—– VLAN ENABLE
device vlan

.:GoodLuck:.

Comments

Aliasing Pada Postfix

Untuk mengaktifkan aliases cukup mudah. Pertama pastikan baris berikut ada
di /etc/postfix/main.cf

alias_maps = hash:/etc/postfix/aliases
alias_database = hash:/etc/postfix/aliases
Setelah itu edit file /etc/postfix/aliases, tambahkan beberapa baris alias.
# alias default dari postfix

MAILER-DAEMON: postmaster
postmaster: root
bin: root
daemon: root
named: root
nobody: root
uucp: root
www: root
ftp-bugs: root
postfix: root

# tambahan alias sendiri
spawn: sofyan

# Well-known aliases
manager: root
dumper: root
operator: root
abuse: postmaster
decode: root

Selesai edit file tersebut, jalankan perintah newaliases untuk memasukkan alias baru ke dalam postfix, dan setelah itu reload postfix-nya.

# newaliases
# postfix reload
—-
Main.CF
—-

# See /usr/share/postfix/main.cf.dist for a commented, more complete version

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA’s job.
append_dot_mydomain = no

# Uncomment the next line to generate “delayed mail” warnings
#delay_warning_time = 4h

mydestination = $myhostname, localhost.$mydomain, $mydomain, ptpn.afraid.org

#Where everything is
command_directory = /usr/sbin
mail_spool_directory = /var/spool/mail
daemon_directory = /usr/lib/postfix
queue_directory = /var/spool/postfix

home_mailbox = Maildir/
#mailbox_command = /usr/bin/procmail
mailbox_command = /usr/bin/procmail -a “$EXTENSION” DEFAULT=$HOME/Maildir/
MAILDIR=$HOME/Maildir

#The name of our host
#myhostname = ptpn.afraid.org
#myhostname = id.afraid.org
#myhostname = mail.ptpn-11.com
myhostname = test.ptpn-11.com

#The domain name
#mydomain = ptpn.afraid.org
#mydomain = id.afraid.org
#mydomain = mail.ptpn-11.com
mydomain = test.ptpn-11.com

myorigin = $mydomain

# SENDING MAIL
myorigin = /etc/mailname
myorigin = $myhostname

# RECEIVING MAIL
mydestination = $myhostname, localhost.$mydomain, $mydomain
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, mail.$mydomain, www.$mydomain, ftp.$mydomain
mynetworks =127.0.0.1, 192.168.0.0/16

#relay_domains = mail.ptpn-11.com
relay_domains = test.ptpn-11.com
virtual_alias_domains = mail.ptpn-11.com, id.afraid.org, ptpn.afraid.org, test.ptpn-11.com
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_maps = hash:/etc/postfix/virtual
#virtual_mailbox_domains = hash:/etc/postfix/virtual/mysql_virtual_domains_maps.cf
#virtual_mailbox_maps = hash:/etc/postfix/virtual/mysql_virtual_mailbox_maps.cf
#virtual_mailbox_limit_maps = hash:/etc/postfix/virtual/mysql_virtual_quota_maps.cf
#virtual_mailbox_base = /etc/postfix/virtual/
#virtual_transport = virtual
#virtual_uid_maps = static:73
#virtual_gid_maps = static:73
#virtual_minimum_uid = 73
.:GoodLuck:.

Comments

« Previous entries Next Page » Next Page »