<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6792517712398454150</id><updated>2011-12-31T11:48:37.706-08:00</updated><title type='text'>/etc/init.d/masa-lalu stop</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://h4rryblogs.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6792517712398454150/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://h4rryblogs.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Harry Wisnu</name><uri>http://www.blogger.com/profile/08121048378035843219</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ZKxDqxbnwDc/Sf1bDmwZjcI/AAAAAAAAAHA/psadzO0RRUo/S220/harry.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>12</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6792517712398454150.post-1183215787710986927</id><published>2009-04-16T01:31:00.001-07:00</published><updated>2009-05-02T05:44:46.891-07:00</updated><title type='text'>zabbix server monitoring</title><content type='html'>The first step to install the zabbix host is to ensure that we have installed the webserver (apache2-PHP5) and the database server (mysql server5).&lt;br /&gt;&lt;br /&gt;If you have installed the next step to install SNMP:&lt;br /&gt;Tsubasa root @: / # apt-get install SNMP&lt;br /&gt;&lt;br /&gt;Then the following tambahkanlah repository in / etc / apt / source.list&lt;br /&gt;&lt;br /&gt;# Zabbix&lt;br /&gt;deb http://mirror.opf.slu.cz/zabbix unstable contrib&lt;br /&gt;&lt;br /&gt;then updatelah source list and install zabbix&lt;br /&gt;Tsubasa root @: / # apt-get update&lt;br /&gt;Tsubasa root @: / # aptitude install zabbix-frontend-php zabbix-server zabbix-agent&lt;br /&gt;&lt;br /&gt;After that there will be a display screen that asks for admin password for our database server (user root)&lt;br /&gt;will have on demand from the user zabbix password and confirmation.&lt;br /&gt;&lt;br /&gt;After the finish has been installed zabbix.&lt;br /&gt;&lt;br /&gt;How to run zabbix:&lt;br /&gt;Tsubasa root @: / # / etc / init.d / zabbix-server start&lt;br /&gt;Tsubasa root @: / # / etc / init.d / zabbix-agent start&lt;br /&gt;&lt;br /&gt;To begin configuring zabbix:&lt;br /&gt;open a browser and type http://localhost/zabbix&lt;br /&gt;Then you will be taken to install the zabbix and configure underweb.&lt;br /&gt;&lt;br /&gt;Here are some error messages as well as the solution that I experienced when installing zabbix:&lt;br /&gt;&lt;br /&gt;1. Timezone for PHP is not set set.Please ... ... ... ..&lt;br /&gt;solution: change the variable value of the date.timezone php.ini in the directory / etc/php5/apache2 into date.timezone = Asia / Jakarta. Then restartlah apache service.&lt;br /&gt;&lt;br /&gt;2. PHP Max execution time: 30 sec fail&lt;br /&gt;solution: change the value max_execution_time = 30 in which there is a php.ini max_execution_time = 300, then apache restartlah service.&lt;br /&gt;&lt;br /&gt;3. Mysql_pconnect, access denied for user @ localhost user zabbix&lt;br /&gt;solutions: Adjust the configuration (username, password and database), which is located at / usr / share / conf / zabbix.conf.php with username, password and database in mysql.&lt;br /&gt;&lt;br /&gt;4. Incorrect configuration file [/ usr / share / conf / zabbix.conf.php]&lt;br /&gt;solution: Click save configuration files on the 6.install then change the content of the file / usr / share / conf / zabbix.conf.php with the contents of the file before clicked.&lt;br /&gt;&lt;br /&gt;Enough here until I can explain that, depending on how you use and develop.&lt;br /&gt;&gt; swap&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6792517712398454150-1183215787710986927?l=h4rryblogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6792517712398454150/posts/default/1183215787710986927'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6792517712398454150/posts/default/1183215787710986927'/><link rel='alternate' type='text/html' href='http://h4rryblogs.blogspot.com/2009/04/zebbix-server-monitoring.html' title='zabbix server monitoring'/><author><name>Harry Wisnu</name><uri>http://www.blogger.com/profile/08121048378035843219</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ZKxDqxbnwDc/Sf1bDmwZjcI/AAAAAAAAAHA/psadzO0RRUo/S220/harry.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6792517712398454150.post-6892744261373726680</id><published>2009-03-18T02:56:00.000-07:00</published><updated>2009-03-18T03:04:08.981-07:00</updated><title type='text'>Router Debian</title><content type='html'>First prepare your computer with 2 lan card is eth0 and eth1.&lt;br /&gt;&lt;br /&gt;1. Make sure the program is installed iptables&lt;br /&gt;&lt;br /&gt;2. And open the console&lt;br /&gt;&lt;br /&gt;3. Remove the rules that already exist with the command as follows:&lt;br /&gt;&lt;br /&gt;     * Iptables-flush&lt;br /&gt;     * Iptables-table nat-flush&lt;br /&gt;     * Iptables-delete-chain&lt;br /&gt;     * Iptables-table nat-delete-chain&lt;br /&gt;&lt;br /&gt;4. Then do the settings for the Masquerade and forwarding with the command as follows:&lt;br /&gt;&lt;br /&gt;     * Iptables-table nat-append POSTROUTING-out-interface eth0-j Masquerade&lt;br /&gt;     Iptables-append * Forward-in-interface eth1-j ACCEPT&lt;br /&gt;     * Echo 1&gt; / proc/sys/net/ipv4/ip_forward&lt;br /&gt;&lt;br /&gt;5. Save firewall rules have been made with the command as follows:&lt;br /&gt;&lt;br /&gt;     * Iptables-save&gt; / etc / firewall.conf&lt;br /&gt;&lt;br /&gt;6. Then, create a file with a name in the directory iptables / etc / network / if-up.d / &lt;br /&gt;   iptables:&lt;br /&gt;     * Vi / etc / network / if-up.d / iptables&lt;br /&gt;     * Inside type the command:&lt;br /&gt;&lt;br /&gt;#! / bin / sh&lt;br /&gt;&lt;br /&gt;iptables-restore &lt;/ etc / firewall.conf&lt;br /&gt;&lt;br /&gt;echo 1&gt; / proc/sys/net/ipv4/ip_forward&lt;br /&gt;&lt;br /&gt;     * Then save the file&lt;br /&gt;&lt;br /&gt;7. Provide access to execution so that firewall rules have been created that can be used since   &lt;br /&gt;   the process of booting with the command:&lt;br /&gt;&lt;br /&gt;chmod + x / etc / network / if-up.d / iptables&lt;br /&gt;&lt;br /&gt;8. Restart your Computer to do the testing iptables rules.&lt;br /&gt;&lt;br /&gt;9. Done.&lt;br /&gt;Indonesian&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6792517712398454150-6892744261373726680?l=h4rryblogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6792517712398454150/posts/default/6892744261373726680'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6792517712398454150/posts/default/6892744261373726680'/><link rel='alternate' type='text/html' href='http://h4rryblogs.blogspot.com/2009/03/router-debian.html' title='Router Debian'/><author><name>Harry Wisnu</name><uri>http://www.blogger.com/profile/08121048378035843219</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ZKxDqxbnwDc/Sf1bDmwZjcI/AAAAAAAAAHA/psadzO0RRUo/S220/harry.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6792517712398454150.post-9061581523490106283</id><published>2009-03-13T05:22:00.000-07:00</published><updated>2009-03-13T05:24:32.367-07:00</updated><title type='text'>Install Squid</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Install squid and squid-common&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;sudo aptitude install squid squid-common&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Edit the squid config file.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;sudo vi /etc/squid/squid.conf&lt;br /&gt;&lt;br /&gt;Set the allowed hosts.&lt;br /&gt;&lt;br /&gt;acl internal_network src 192.168.0.0/24 (Where 192.168.0.0/24 is your IP range.)&lt;br /&gt;http_access allow internal_network&lt;br /&gt;&lt;br /&gt;Set the correct permissions.&lt;br /&gt;&lt;br /&gt;sudo chown -R proxy:proxy /var/log/squid/&lt;br /&gt;sudo chown proxy:proxy /etc/squid/squid.conf&lt;br /&gt;&lt;br /&gt;You will need to restart squid for the changes to take affect.&lt;br /&gt;&lt;br /&gt;sudo /etc/init.d/squid restart&lt;br /&gt;&lt;br /&gt;Now open up your browser and set your proxy to point to your new squid server on port 3128&lt;br /&gt;&lt;br /&gt;Authentication&lt;br /&gt;&lt;br /&gt;If you wish to use authentication with your proxy you will need to install apache2 utilities&lt;br /&gt;&lt;br /&gt;sudo aptitude install squid squid-common apache2-utils&lt;br /&gt;&lt;br /&gt;To add your first user you will need to specify -c&lt;br /&gt;&lt;br /&gt;sudo htpasswd -c /etc/squid.passwd first_user&lt;br /&gt;&lt;br /&gt;Thereafter you add new users with&lt;br /&gt;&lt;br /&gt;sudo htpasswd /etc/squid.passwd another_user&lt;br /&gt;&lt;br /&gt;Edit the squid config file&lt;br /&gt;&lt;br /&gt;sudo vi /etc/squid/squid.conf&lt;br /&gt;&lt;br /&gt;Set the the authentication parameters and the acl&lt;br /&gt;&lt;br /&gt;auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid.passwd&lt;br /&gt;auth_param basic children 5&lt;br /&gt;auth_param basic realm NFYE Squid proxy-caching web server&lt;br /&gt;auth_param basic credentialsttl 3 hours&lt;br /&gt;auth_param basic casesensitive off&lt;br /&gt;&lt;br /&gt;acl users proxy_auth REQUIRED&lt;br /&gt;&lt;br /&gt;acl sectionx proxy_auth REQUIRED&lt;br /&gt;&lt;br /&gt;http_access allow users&lt;br /&gt;&lt;br /&gt;So this is what your squid.conf should look like.&lt;br /&gt;&lt;br /&gt;acl all src 0.0.0.0/0.0.0.0&lt;br /&gt;acl internal_network src 192.168.0.0/24&lt;br /&gt;acl users proxy_auth REQUIRED&lt;br /&gt;acl manager proto cache_object&lt;br /&gt;acl localhost src 127.0.0.1/255.255.255.255&lt;br /&gt;acl to_localhost dst 127.0.0.0/8&lt;br /&gt;acl SSL_ports port 443 563 # https, snews&lt;br /&gt;acl SSL_ports port 873 # rsync&lt;br /&gt;acl Safe_ports port 80 # http&lt;br /&gt;acl Safe_ports port 21 # ftp&lt;br /&gt;acl Safe_ports port 443 563 # https, snews&lt;br /&gt;acl Safe_ports port 70 # gopher&lt;br /&gt;acl Safe_ports port 210 # wais&lt;br /&gt;acl Safe_ports port 1025-65535 # unregistered ports&lt;br /&gt;acl Safe_ports port 280 # http-mgmt&lt;br /&gt;acl Safe_ports port 488 # gss-http&lt;br /&gt;acl Safe_ports port 591 # filemaker&lt;br /&gt;acl Safe_ports port 777 # multiling http&lt;br /&gt;acl Safe_ports port 631 # cups&lt;br /&gt;acl Safe_ports port 873 # rsync&lt;br /&gt;acl Safe_ports port 901 # SWAT&lt;br /&gt;acl sectionx proxy_auth REQUIRED&lt;br /&gt;acl purge method PURGE&lt;br /&gt;acl CONNECT method CONNECT&lt;br /&gt;&lt;br /&gt;http_access allow manager localhost&lt;br /&gt;http_access allow users&lt;br /&gt;http_access allow internal_network&lt;br /&gt;http_access deny manager&lt;br /&gt;http_access allow purge localhost&lt;br /&gt;http_access deny purge&lt;br /&gt;http_access deny !Safe_ports&lt;br /&gt;http_access deny CONNECT !SSL_ports&lt;br /&gt;http_access allow localhost&lt;br /&gt;http_access deny all&lt;br /&gt;http_reply_access allow all&lt;br /&gt;icp_access allow all&lt;br /&gt;&lt;br /&gt;Redirect the all HTTP traffic.&lt;br /&gt;&lt;br /&gt;If you would like to redirect the all HTTP traffic through the proxy without needing to set up a proxy manually in all your applications you will need to add some rules&lt;br /&gt;&lt;br /&gt;iptables -t nat -A PREROUTING -i eth1 -p tcp -m tcp --dport 80 -j DNAT --to-destination 192.168.0.1:3128&lt;br /&gt;iptables -t nat -A PREROUTING -i eth0 -p tcp -m tcp –dport 80 -j REDIRECT --to-ports 3128&lt;br /&gt;&lt;br /&gt;Where eth1,eth0 are the LAN, WAN devices and 192.168.0.1 is the IP address of your LAN device.&lt;br /&gt;&lt;br /&gt;If you wish to monitor the performance of your proxy you can look as some log parser’s (sarg, calamaris, ect.)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6792517712398454150-9061581523490106283?l=h4rryblogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6792517712398454150/posts/default/9061581523490106283'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6792517712398454150/posts/default/9061581523490106283'/><link rel='alternate' type='text/html' href='http://h4rryblogs.blogspot.com/2009/03/install-squid.html' title='Install Squid'/><author><name>Harry Wisnu</name><uri>http://www.blogger.com/profile/08121048378035843219</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ZKxDqxbnwDc/Sf1bDmwZjcI/AAAAAAAAAHA/psadzO0RRUo/S220/harry.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6792517712398454150.post-7948190979842988594</id><published>2009-03-13T05:17:00.002-07:00</published><updated>2009-03-13T05:21:57.208-07:00</updated><title type='text'>Install samba and kerberos in Ubuntu</title><content type='html'>sudo aptitude install krb5-user&lt;br /&gt;&lt;br /&gt;    sudo aptitude install samba smbfs smbclient winbind&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Configure samba&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now likewise-open and samba packages use separate secrets.tdb (samba password file) files,We need to create a symlink to be  /var/lib/samba&lt;br /&gt;&lt;br /&gt;Take a backupof existing file&lt;br /&gt;&lt;br /&gt;    sudo mv /var/lib/samba/secrets.tdb /var/lib/samba/secrets.tdb.orig&lt;br /&gt;&lt;br /&gt;Create a link to /var/lib/samba&lt;br /&gt;&lt;br /&gt;    sudo ln -s /etc/samba/secrets.tdb /var/lib/samba&lt;br /&gt;&lt;br /&gt;Configuring samba and kerberos&lt;br /&gt;&lt;br /&gt;Edit /etc/samba/smb.conf file&lt;br /&gt;&lt;br /&gt;    sudo vi /etc/samba/smb.conf&lt;br /&gt;&lt;br /&gt;Note:- replace ug01 netbios name with your own&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Change the following parameters&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;    [global]&lt;br /&gt;    security = ads&lt;br /&gt;    netbios name = ug01&lt;br /&gt;    realm = DOMAIN.INTERNAL&lt;br /&gt;    password server = domainserver.domain.internal&lt;br /&gt;    workgroup = DOMAIN&lt;br /&gt;    idmap uid = 500-10000000&lt;br /&gt;    idmap gid = 500-10000000&lt;br /&gt;    winbind separator = +&lt;br /&gt;    winbind enum users = no&lt;br /&gt;    winbind enum groups = no&lt;br /&gt;    winbind use default domain = yes&lt;br /&gt;    template homedir = /home/%D/%U&lt;br /&gt;    template shell = /bin/bash&lt;br /&gt;    client use spnego = yes&lt;br /&gt;    domain master = no&lt;br /&gt;&lt;br /&gt;Save and exit the file&lt;br /&gt;&lt;br /&gt;Test the configuration with the testparm command&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;Kerberos Configuration&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Edit the /etc/krb5.conf File&lt;br /&gt;&lt;br /&gt;    sudo vi /etc/krb5.conf&lt;br /&gt;&lt;br /&gt;Change the following lines&lt;br /&gt;&lt;br /&gt;    [logging]&lt;br /&gt;    default = FILE10000:/var/log/krb5lib.log&lt;br /&gt;    [libdefaults]&lt;br /&gt;    ticket_lifetime = 24000&lt;br /&gt;    default_realm = DOMAIN.INTERNAL&lt;br /&gt;    default_tkt_enctypes = des3-hmac-sha1 des-cbc-crc&lt;br /&gt;    default_tgs_enctypes = des3-hmac-sha1 des-cbc-crc&lt;br /&gt;    [realms]&lt;br /&gt;    DOMAIN.INTERNAL = {&lt;br /&gt;    kdc = domainserver.domain.internal&lt;br /&gt;    admin_server = domainserver.domain.internal&lt;br /&gt;    default_domain = DOMAIN.INTERNAL&lt;br /&gt;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    [domain_realm]&lt;br /&gt;    .domain.internal = DOMAIN.INTERNAL&lt;br /&gt;    domain.internal = DOMAIN.INTERNAL&lt;br /&gt;&lt;br /&gt;Save and exit the file&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;Configuring nsswitch file&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Edit /etc/nsswitch.conf to look like the example below&lt;br /&gt;&lt;br /&gt;sudo vi /etc/nsswitch.conf&lt;br /&gt;&lt;br /&gt;    passwd:         compat&lt;br /&gt;    winbindgroup:   compat winbind&lt;br /&gt;    shadow:         compat&lt;br /&gt;    hosts:          files dns wins&lt;br /&gt;    networks:       files&lt;br /&gt;    protocols:      db files&lt;br /&gt;    services:       db files&lt;br /&gt;    ethers:         db files&lt;br /&gt;    rpc:            db files&lt;br /&gt;    netgroup:       nis&lt;br /&gt;&lt;br /&gt;Save and exit the file&lt;br /&gt;&lt;br /&gt;Modify the PAM settings&lt;br /&gt;&lt;br /&gt;    * /etc/pam.d/common-account should contain only the following lines&lt;br /&gt;&lt;br /&gt;account sufficient    pam_winbind.so&lt;br /&gt;account required    pam_unix.so&lt;br /&gt;&lt;br /&gt;    * /etc/pam.d/common-auth should contain only the following lines&lt;br /&gt;&lt;br /&gt;auth    sufficient      pam_winbind.so&lt;br /&gt;auth    required        pam_unix.so nullok_secure use_first_pass&lt;br /&gt;&lt;br /&gt;    * Modify the /etc/pam.d/common-password file, so the max parameter is set to 50, similar to the one shown below&lt;br /&gt;&lt;br /&gt;password   required   pam_unix.so nullok obscure min=4 max=50 md5&lt;br /&gt;&lt;br /&gt;    * Make sure the /etc/pam.d/common-session file contains the following line&lt;br /&gt;&lt;br /&gt;session required   pam_mkhomedir.so umask=0022 skel=/etc&lt;br /&gt;&lt;br /&gt;Make a directory to hold domain user home directories&lt;br /&gt;&lt;br /&gt;Note: Use the value you put in the WORKGROUP tag of the /etc/samba/smb.conf file&lt;br /&gt;&lt;br /&gt;mkdir -p /home/DOMAIN&lt;br /&gt;&lt;br /&gt;Initialize Kerberos&lt;br /&gt;&lt;br /&gt;    sudo kinit domain_admin_account@DOMAIN.INTERNAL&lt;br /&gt;&lt;br /&gt;Note:- write $FQDN_OF_YOUR_DOMAIN in capitals as you did in your krb5.conf file.You can check you’ve obtained your ticket with klist&lt;br /&gt;&lt;br /&gt;Next check to be sure you got a ticket from the domain controller&lt;br /&gt;&lt;br /&gt;    sudo klist&lt;br /&gt;&lt;br /&gt;If you didn’t add your ubuntu server to windows AD use the following command&lt;br /&gt;&lt;br /&gt;    net ads join -U Adminstrator@$FQDN_OF_YOUR_DOMAIN&lt;br /&gt;&lt;br /&gt;Restart Samba-related Services (Or reboot the server)&lt;br /&gt;&lt;br /&gt;Note: If you are stopping and starting services the order is important&lt;br /&gt;&lt;br /&gt;    sudo /etc/init.d/samba stop&lt;br /&gt;&lt;br /&gt;    sudo /etc/init.d/winbind stop&lt;br /&gt;&lt;br /&gt;    sudo /etc/init.d/samba start&lt;br /&gt;&lt;br /&gt;    sudo /etc/init.d/winbind start&lt;br /&gt;&lt;br /&gt;Restart SSH and Test Connectivity&lt;br /&gt;&lt;br /&gt;Note: If you rebooted the server in the previous step, just try and login.&lt;br /&gt;&lt;br /&gt;    sudo /etc/init.d/ssh restart&lt;br /&gt;&lt;br /&gt;ssh useraccount@server&lt;br /&gt;&lt;br /&gt;If you can login using your active directory username and password then everything is working fine.&lt;br /&gt;&lt;br /&gt;Configure SUDO&lt;br /&gt;&lt;br /&gt;First you need to create a group in Active Directory called UbuntuAdmins and add the names of people whom you want to be able to use sudo to admin the server.&lt;br /&gt;&lt;br /&gt;Next, add the UbuntuAdmins group to the /etc/sudoers so these users can use sudo&lt;br /&gt;&lt;br /&gt;    %UbuntuAdmins ALL=(ALL) ALL&lt;br /&gt;&lt;br /&gt;Useful Commands&lt;br /&gt;&lt;br /&gt;List the derived UNIX GID values for Active Directory groups&lt;br /&gt;&lt;br /&gt;for gid in $(wbinfo -r &lt;username&gt;); \&lt;br /&gt;do SID=$(wbinfo -G $gid);GROUP=$(wbinfo -s $SID); echo $gid is $GROUP; done&lt;br /&gt;&lt;br /&gt;See the Active Directory SID for a particular named user&lt;br /&gt;&lt;br /&gt;wbinfo –n &lt;username&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6792517712398454150-7948190979842988594?l=h4rryblogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6792517712398454150/posts/default/7948190979842988594'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6792517712398454150/posts/default/7948190979842988594'/><link rel='alternate' type='text/html' href='http://h4rryblogs.blogspot.com/2009/03/install-samba-and-kerberos-in-ubuntu.html' title='Install samba and kerberos in Ubuntu'/><author><name>Harry Wisnu</name><uri>http://www.blogger.com/profile/08121048378035843219</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ZKxDqxbnwDc/Sf1bDmwZjcI/AAAAAAAAAHA/psadzO0RRUo/S220/harry.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6792517712398454150.post-651449441791312951</id><published>2009-03-13T05:17:00.001-07:00</published><updated>2009-03-13T05:17:31.604-07:00</updated><title type='text'>Nagios</title><content type='html'>Nagios is a host and service monitor designed to inform you of network problems before your clients, end-users or managers do. It has been designed to run under the Linux operating system, but works fine under most *NIX variants as well. The monitoring daemon runs intermittent checks on hosts and services you specify using external “plugins” which return status information to Nagios. When problems are encountered, the daemon can send notifications out to administrative contacts in a variety of different ways (email, instant message, SMS, etc.). Current status information, historical logs, and reports can all be accessed via a web browser.&lt;br /&gt;&lt;br /&gt;WARNING: “this tutorial is meant for users that have a good knowledge of development tools and manual installation process and will be hardly supported by the Ubuntu community. Standard supported procedure are to install packages from the official repositories, not to compile them by hand”.&lt;br /&gt;&lt;br /&gt;Install Nagios in Ubuntu&lt;br /&gt;&lt;br /&gt;This Tutorial is intended to provide you with simple instructions on how to install Nagios from source (code) on Ubuntu and have it monitoring your local machine inside of 20 minutes.&lt;br /&gt;&lt;br /&gt;If you follow these instructions, here’s what you’ll end up with:&lt;br /&gt;&lt;br /&gt;Nagios and the plugins will be installed underneath /usr/local/nagios&lt;br /&gt;&lt;br /&gt;Nagios will be configured to monitor a few aspects of your local system (CPU load, disk usage, etc.)&lt;br /&gt;&lt;br /&gt;The Nagios web interface will be accessible at http://localhost/nagios/&lt;br /&gt;&lt;br /&gt;Required Packages&lt;br /&gt;&lt;br /&gt;Make sure you’ve installed the following packages on your Ubuntu installation before continuing.&lt;br /&gt;&lt;br /&gt;Apache 2&lt;br /&gt;GCC compiler and development libraries&lt;br /&gt;GD development libraries&lt;br /&gt;&lt;br /&gt;Preparing Your System&lt;br /&gt;&lt;br /&gt;First you need to install the following packages&lt;br /&gt;&lt;br /&gt;sudo apt-get install apache2&lt;br /&gt;&lt;br /&gt;sudo apt-get install build-essential&lt;br /&gt;&lt;br /&gt;sudo apt-get install libgd2-xpm-dev&lt;br /&gt;&lt;br /&gt;1) Create Account Information&lt;br /&gt;&lt;br /&gt;Become the root user.&lt;br /&gt;&lt;br /&gt;sudo -s&lt;br /&gt;&lt;br /&gt;Create a new nagios user account and give it a password.&lt;br /&gt;&lt;br /&gt;#/usr/sbin/useradd nagios&lt;br /&gt;&lt;br /&gt;#passwd nagios&lt;br /&gt;&lt;br /&gt;On Ubuntu server edition , you will need to also add a nagios group (it’s not created by default). You should be able to skip this step on desktop editions of Ubuntu.&lt;br /&gt;&lt;br /&gt;#/usr/sbin/groupadd nagios&lt;br /&gt;&lt;br /&gt;#/usr/sbin/usermod -G nagios nagios&lt;br /&gt;&lt;br /&gt;Create a new nagcmd group for allowing external commands to be submitted through the web interface. Add both the nagios user and the apache user to the group.&lt;br /&gt;&lt;br /&gt;#/usr/sbin/groupadd nagcmd&lt;br /&gt;&lt;br /&gt;#/usr/sbin/usermod -G nagcmd nagios&lt;br /&gt;&lt;br /&gt;#/usr/sbin/usermod -G nagcmd www-data&lt;br /&gt;&lt;br /&gt;2) Download Nagios and the Plugins&lt;br /&gt;&lt;br /&gt;Create a directory for storing the downloads.&lt;br /&gt;&lt;br /&gt;#mkdir ~/downloads&lt;br /&gt;&lt;br /&gt;#cd ~/downloads&lt;br /&gt;&lt;br /&gt;Download the source code tarballs of both Nagios and the Nagios plugins (visit http://www.nagios.org/download/ for links to the latest versions). At the time of writing, the latest versions of Nagios and the Nagios plugins were 2.10 and 1.4.10, respectively.&lt;br /&gt;&lt;br /&gt;#wget http://switch.dl.sourceforge.net/sourceforge/nagios/nagios-2.10.tar.gz&lt;br /&gt;&lt;br /&gt;#wget http://kent.dl.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.10.tar.gz&lt;br /&gt;&lt;br /&gt;3) Compile and Install Nagios&lt;br /&gt;&lt;br /&gt;Extract the Nagios source code tarball.&lt;br /&gt;&lt;br /&gt;#cd ~/downloads&lt;br /&gt;&lt;br /&gt;#tar xzf nagios-2.10.tar.gz&lt;br /&gt;&lt;br /&gt;#cd nagios-2.10&lt;br /&gt;&lt;br /&gt;Run the Nagios configure script, passing the name of the group you created earlier like so:&lt;br /&gt;&lt;br /&gt;#./configure --with-command-group=nagcmd&lt;br /&gt;&lt;br /&gt;Compile the Nagios source code.&lt;br /&gt;&lt;br /&gt;#make all&lt;br /&gt;&lt;br /&gt;Install binaries, init script, sample config files and set permissions on the external command directory.&lt;br /&gt;&lt;br /&gt;#make install&lt;br /&gt;&lt;br /&gt;#make install-init&lt;br /&gt;&lt;br /&gt;#make install-config&lt;br /&gt;&lt;br /&gt;#make install-commandmode&lt;br /&gt;&lt;br /&gt;Don’t start Nagios yet - there’s still more that needs to be done…&lt;br /&gt;&lt;br /&gt;4) Customize Configuration&lt;br /&gt;&lt;br /&gt;Sample configuration files have now been installed in the /usr/local/nagios/etc directory. These sample files should work fine for getting started with Nagios. You’ll need to make just one change before you proceed…&lt;br /&gt;&lt;br /&gt;Edit the /usr/local/nagios/etc/objects/contacts.cfg config file with your favorite editor and change the email address associated with the nagiosadmin contact definition to the address you’d like to use for receiving alerts.&lt;br /&gt;&lt;br /&gt;#vi /usr/local/nagios/etc/objects/contacts.cfg&lt;br /&gt;&lt;br /&gt;5) Configure the Web Interface&lt;br /&gt;&lt;br /&gt;Install the Nagios web config file in the Apache conf.d directory.&lt;br /&gt;&lt;br /&gt;#make install-webconf&lt;br /&gt;&lt;br /&gt;Create a nagiosadmin account for logging into the Nagios web interface. Remember the password you assign to this account - you’ll need it later.&lt;br /&gt;&lt;br /&gt;#htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin&lt;br /&gt;&lt;br /&gt;Restart Apache to make the new settings take effect.&lt;br /&gt;&lt;br /&gt;#/etc/init.d/apache2 reload&lt;br /&gt;&lt;br /&gt;6) Compile and Install the Nagios Plugins&lt;br /&gt;&lt;br /&gt;Extract the Nagios plugins source code tarball.&lt;br /&gt;&lt;br /&gt;#cd ~/downloads&lt;br /&gt;&lt;br /&gt;#tar xzf nagios-plugins-1.4.10.tar.gz&lt;br /&gt;&lt;br /&gt;#cd nagios-plugins-1.4.10&lt;br /&gt;&lt;br /&gt;Compile and install the plugins.&lt;br /&gt;&lt;br /&gt;#./configure --with-nagios-user=nagios --with-nagios-group=nagios&lt;br /&gt;&lt;br /&gt;#make&lt;br /&gt;&lt;br /&gt;#make install&lt;br /&gt;&lt;br /&gt;7) Start Nagios&lt;br /&gt;&lt;br /&gt;Configure Nagios to automatically start when the system boots.&lt;br /&gt;&lt;br /&gt;#ln -s /etc/init.d/nagios /etc/rcS.d/S99nagios&lt;br /&gt;&lt;br /&gt;Verify the sample Nagios configuration files.&lt;br /&gt;&lt;br /&gt;#/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg&lt;br /&gt;&lt;br /&gt;If there are no errors, start Nagios.&lt;br /&gt;&lt;br /&gt;#/etc/init.d/nagios start&lt;br /&gt;8) Login to the Web Interface&lt;br /&gt;&lt;br /&gt;You should now be able to access the Nagios web interface at the URL below. You’ll be prompted for the username (nagiosadmin) and password you specified earlier.&lt;br /&gt;&lt;br /&gt;http://localhost/nagios/&lt;br /&gt;&lt;br /&gt;Click on the “Service Detail” navbar link to see details of what’s being monitored on your local machine. It will take a few minutes for Nagios to check all the services associated with your machine, as the checks are spread out over time.&lt;br /&gt;&lt;br /&gt;9) Other Modifications&lt;br /&gt;&lt;br /&gt;If you want to receive email notifications for Nagios alerts, you need to install the mailx (Postfix) package.&lt;br /&gt;&lt;br /&gt;#apt-get install mailx&lt;br /&gt;&lt;br /&gt;You’ll have to edit the Nagios email notification commands found in /usr/local/nagios/etc/commands.cfg and change any ‘/bin/mail’ references to ‘/usr/bin/mail’. Once you do that you’ll need to restart Nagios to make the configuration changes live.&lt;br /&gt;&lt;br /&gt;#/etc/init.d/nagios restart&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6792517712398454150-651449441791312951?l=h4rryblogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6792517712398454150/posts/default/651449441791312951'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6792517712398454150/posts/default/651449441791312951'/><link rel='alternate' type='text/html' href='http://h4rryblogs.blogspot.com/2009/03/nagios.html' title='Nagios'/><author><name>Harry Wisnu</name><uri>http://www.blogger.com/profile/08121048378035843219</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ZKxDqxbnwDc/Sf1bDmwZjcI/AAAAAAAAAHA/psadzO0RRUo/S220/harry.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6792517712398454150.post-6080908419256213883</id><published>2009-03-13T05:10:00.000-07:00</published><updated>2009-03-13T05:14:29.516-07:00</updated><title type='text'>Fall Heart</title><content type='html'>	&lt;br /&gt;Expect that a munkin not happened, and happened takan&lt;br /&gt;&lt;br /&gt;Trying to change all the existing circumstances and continue to try to become what we want&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6792517712398454150-6080908419256213883?l=h4rryblogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6792517712398454150/posts/default/6080908419256213883'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6792517712398454150/posts/default/6080908419256213883'/><link rel='alternate' type='text/html' href='http://h4rryblogs.blogspot.com/2009/03/fall-heart.html' title='Fall Heart'/><author><name>Harry Wisnu</name><uri>http://www.blogger.com/profile/08121048378035843219</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ZKxDqxbnwDc/Sf1bDmwZjcI/AAAAAAAAAHA/psadzO0RRUo/S220/harry.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6792517712398454150.post-1234870427635982202</id><published>2009-03-11T01:35:00.000-07:00</published><updated>2009-03-11T01:38:37.893-07:00</updated><title type='text'>Install PureFTPd With MySQL Support</title><content type='html'>For &lt;span style="font-weight:bold;"&gt;Debian&lt;/span&gt; there is a pre-configured pure-ftpd-mysql package available. Install it like this:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;apt-get install pure-ftpd-mysql&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Then we create an ftp group (ftpgroup) and user (ftpuser) that all our virtual users will be mapped to. Replace the group- and userid 2001 with a number that is free on your system:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;groupadd -g 2001 ftpgroup&lt;br /&gt;useradd -u 2001 -s /bin/false -d /bin/null -c "pureftpd user" -g ftpgroup ftpuser&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6792517712398454150-1234870427635982202?l=h4rryblogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6792517712398454150/posts/default/1234870427635982202'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6792517712398454150/posts/default/1234870427635982202'/><link rel='alternate' type='text/html' href='http://h4rryblogs.blogspot.com/2009/03/install-pureftpd-with-mysql-support.html' title='Install PureFTPd With MySQL Support'/><author><name>Harry Wisnu</name><uri>http://www.blogger.com/profile/08121048378035843219</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ZKxDqxbnwDc/Sf1bDmwZjcI/AAAAAAAAAHA/psadzO0RRUo/S220/harry.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6792517712398454150.post-4705832806778047963</id><published>2009-03-11T01:20:00.000-07:00</published><updated>2009-03-11T01:26:20.337-07:00</updated><title type='text'>Installing The DHCP Server</title><content type='html'>&lt;h3&gt;&lt;br /&gt;&lt;/h3&gt; &lt;p&gt;Now let's install our DHCP server on our Debian Sarge system:&lt;/p&gt; &lt;p class="command"&gt;apt-get install dhcp3-server&lt;/p&gt; &lt;p&gt;You will be asked a few questions:&lt;/p&gt; &lt;p&gt;&lt;span class="system"&gt;On what network interfaces should the DHCP server listen?&lt;/span&gt; &lt;span class="highlight"&gt;&lt;-- eth0&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span class="system"&gt;Please configure the DHCP server as soon as the installation finishes.&lt;/span&gt; &lt;span class="highlight"&gt;&lt;-- Ok&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span class="system"&gt;The version 3 DHCP server is now non-authoritative by default&lt;/span&gt; &lt;span class="highlight"&gt;&lt;-- Ok&lt;/span&gt;   &lt;/p&gt; &lt;p&gt;At the end of the installation you will see errors like these:&lt;/p&gt; &lt;p class="system"&gt;Generating /etc/default/dhcp3-server...&lt;br /&gt;  Starting DHCP server: dhcpd3 failed to start - check syslog for diagnostics.&lt;br /&gt;invoke-rc.d: initscript dhcp3-server, action "start" failed. &lt;/p&gt; &lt;p&gt;That's ok because we did not have the chance yet to configure our DHCP server.&lt;/p&gt; &lt;p&gt; &lt;/p&gt; &lt;h3&gt;Configuring The DHCP Server&lt;/h3&gt; &lt;p&gt;Now we must configure our DHCP server. We must tell it from which IP range it should assign IP addresses to requesting clients, which gateway it should assign, which DNS servers, etc.&lt;/p&gt; &lt;p&gt;The configuration file for our DHCP server is &lt;span class="system"&gt;/etc/dhcp3/dhcpd.conf&lt;/span&gt;. Currently it contains a sample configuration which we copy to &lt;span class="system"&gt;/etc/dhcp3/dhcpd.conf_orig&lt;/span&gt; for future reference:&lt;/p&gt; &lt;p class="command"&gt;cp /etc/dhcp3/dhcpd.conf /etc/dhcp3/dhcpd.conf_orig&lt;br /&gt;cat /dev/null &gt; /etc/dhcp3/dhcpd.conf&lt;/p&gt; &lt;p&gt;With the last command we have emptied &lt;span class="system"&gt;/etc/dhcp3/dhcpd.conf&lt;/span&gt; so that we can place our own configuration in it which we do now:&lt;/p&gt; &lt;p class="command"&gt;vi /etc/dhcp3/dhcpd.conf&lt;/p&gt; &lt;p&gt;The file should look like this:&lt;/p&gt; &lt;table class="" align="center" bgcolor="#cccccc" border="1" bordercolor="#000000" cellpadding="2" cellspacing="0" width="90%"&gt;       &lt;tbody&gt;&lt;tr&gt;         &lt;td class=""&gt;       &lt;pre&gt;ddns-update-style none;&lt;br /&gt;&lt;br /&gt;option domain-name-servers 145.253.2.75, 193.174.32.18;&lt;br /&gt;&lt;br /&gt;default-lease-time 86400;&lt;br /&gt;max-lease-time 604800;&lt;br /&gt;&lt;br /&gt;authoritative;&lt;br /&gt;&lt;br /&gt;subnet 192.168.0.0 netmask 255.255.255.0 {&lt;br /&gt;       range 192.168.0.200 192.168.0.229;&lt;br /&gt;       option subnet-mask 255.255.255.0;&lt;br /&gt;       option broadcast-address 192.168.0.255;&lt;br /&gt;       option routers 192.168.0.1;&lt;br /&gt;}&lt;/pre&gt; &lt;/td&gt;&lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;p&gt;I explain the configuration options here:&lt;script type="text/javascript"&gt;-- document.write; //--&gt; &lt;/script&gt; &lt;!-- begin ad tag Rectangle B --&gt; &lt;script language="JavaScript" src="http://a.collective-media.net/adj/idgt.howtoforge.en/rec_b;tile=1;sz=300x250;ord=%5Btimestamp%5D?" type="text/javascript"&gt;&lt;/script&gt;&lt;script type="text/javascript"&gt;document.write('&lt;scr'+'ipt language="javascript" src="http://ad.doubleclick.net/adj/idgt.howtoforge.en/rec_b;net=idgt;u=127_0_0_1_10847086_1236759444,110185c8fa07075,tech,;;tile=1;ord1=884632;sz=300x250;contx=tech;btg=;ord=%5Btimestamp%5D?"&gt;&lt;/scr'+'ipt&gt;');&lt;/script&gt;&lt;script language="javascript" src="http://a.collective-media.net/cmadj/idgt.howtoforge.en/rec_b;tile=1;sz=300x250;ord=%5Btimestamp%5D;ord1=884632;cmpgurl=http%253A//www.howtoforge.com/dhcp_server_linux_debian_sarge?"&gt;&lt;/script&gt;&lt;script language="Javascript"&gt;createAndAttachAd("127_0_0_1_10847086_1236759444", "http://ad.doubleclick.net/adj/idgt.howtoforge.en/rec_b;net=idgt;u=127_0_0_1_10847086_1236759444,110185c8fa07075,tech,;;tile=1;ord1=884632;sz=300x250;contx=tech;btg=;ord=%5Btimestamp%5D?","300","250");&lt;/script&gt;&lt;script language="javascript" src="http://ad.doubleclick.net/adj/idgt.howtoforge.en/rec_b;net=idgt;u=127_0_0_1_10847086_1236759444,110185c8fa07075,tech,;;tile=1;ord1=884632;sz=300x250;contx=tech;btg=;ord=%5Btimestamp%5D?"&gt;&lt;/script&gt;&lt;/p&gt; &lt;ul&gt;&lt;li&gt;&lt;span class="system"&gt;dns-update-style&lt;/span&gt;: You can tell the DHCP server to update a DNS server if the IP address of a server in your LAN has changed (because it has been assigned a different IP by DHCP). As we do not run servers in our LAN or always give them static IP addresses (which is a good idea for servers...) we don't want to update DNS records so we set this to &lt;span class="system"&gt;none&lt;/span&gt;.&lt;/li&gt;&lt;li&gt;&lt;span class="system"&gt;option domain-name-servers&lt;/span&gt;: This tells the DHCP server which DNS servers it should assign to a client. You can specify more than one DNS server here, seperated by commas.&lt;/li&gt;&lt;li&gt;&lt;span class="system"&gt;default-lease-time&lt;/span&gt;, &lt;span class="system"&gt;max-lease-time&lt;/span&gt;: A client can tell the DHCP server for how long it would like to get an IP address. If it doesn't do this, the server assigns an IP address for &lt;span class="system"&gt;default-lease-time&lt;/span&gt; seconds; if it does, the server grants the requested time, but only up to &lt;span class="system"&gt;max-lease-time&lt;/span&gt; seconds. &lt;/li&gt;&lt;li&gt;&lt;span class="system"&gt;authoritative&lt;/span&gt;: If this is not set this means that if a client requests an address that the server knows nothing about and the address is incorrect for that network segment, the server will _not_ send a DHCPNAK (which tells the client it should stop using the address.) We don't want this so we set &lt;span class="system"&gt;authoritative&lt;/span&gt;. &lt;/li&gt;&lt;li&gt;&lt;span class="system"&gt;subnet&lt;/span&gt;: The subnet to use.&lt;/li&gt;&lt;li&gt;&lt;span class="system"&gt;netmask&lt;/span&gt;: The netmask to use.&lt;/li&gt;&lt;li&gt;&lt;span class="system"&gt;range&lt;/span&gt;: Tells the DHCP server from which range it can assign IP addresses to clients. In our example it's from &lt;span class="system"&gt;192.168.0.200&lt;/span&gt; to &lt;span class="system"&gt;192.168.0.229&lt;/span&gt; (30 IP addresses). &lt;/li&gt;&lt;li&gt;&lt;span class="system"&gt;option broadcast-address&lt;/span&gt;: The broadcast address to use.&lt;/li&gt;&lt;li&gt;&lt;span class="system"&gt;option routers&lt;/span&gt;: Tells the DHCP server the gateway address it should assign to requesting clients. In our case the gateway is &lt;span class="system"&gt;192.168.0.1&lt;/span&gt;. &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;If you are not sure about your personal network settings (network, netmask, broadcast address, etc.), visit &lt;a mce_real_href="http://www.subnetmask.info" href="http://www.subnetmask.info/" target="_blank"&gt;www.subnetmask.info&lt;/a&gt; where you can calculate your settings. &lt;/p&gt; &lt;p&gt;You see, this is a very simple and basic configuration, but it's enough to make our DHCP server functionable. Now let's start it:&lt;/p&gt; &lt;p class="command"&gt;/etc/init.d/dhcp3-server restart&lt;/p&gt; &lt;p&gt;Afterwards you can check the output of&lt;/p&gt; &lt;p class="command"&gt;ps aux&lt;/p&gt; &lt;p&gt;to see if DHCP is running. You should also see it in the output of &lt;/p&gt; &lt;p class="command"&gt;netstat -uap&lt;/p&gt; &lt;p&gt;which should resemble this one:&lt;/p&gt; &lt;table class="" align="center" bgcolor="#cccccc" border="1" bordercolor="#000000" cellpadding="2" cellspacing="0" width="90%"&gt;       &lt;tbody&gt;&lt;tr&gt;         &lt;td class=""&gt;       &lt;pre&gt;Active Internet connections (servers and established)&lt;br /&gt;Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name&lt;br /&gt;udp        0      0 *:bootps                *:*                                2185/dhcpd3&lt;br /&gt;udp        0      0 *:868                   *:*                                1964/rpc.statd&lt;br /&gt;udp        0      0 *:871                   *:*                                1964/rpc.statd&lt;br /&gt;udp        0      0 *:sunrpc                *:*                                1553/portmap&lt;/pre&gt; &lt;/td&gt;&lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;p&gt;You can see that DHCP is running on the &lt;span class="system"&gt;bootps&lt;/span&gt; UDP port which translates to port 67 UDP (run&lt;/p&gt; &lt;p class="command"&gt;grep bootps /etc/services&lt;/p&gt; &lt;p&gt;and you will see that &lt;span class="system"&gt;bootps&lt;/span&gt; means port 67). &lt;/p&gt; &lt;p&gt;Finally you can check &lt;span class="system"&gt;/var/log/syslog&lt;/span&gt; if any errors occurred during the DHCP server start. To see the last 100 lines of &lt;span class="system"&gt;/var/log/syslog&lt;/span&gt;, for example, run&lt;/p&gt; &lt;p class="command"&gt;tail -n 100 /var/log/syslog&lt;/p&gt; &lt;p&gt;  &lt;/p&gt; &lt;h3&gt;4 How Can I See That My DHCP Server Is Working OK?&lt;/h3&gt; &lt;p&gt;To see if your DHCP server is working as expected, boot another PC (Windows, Linux, MAC, ...) in your LAN that doesn't have a static IP address. Wait a few seconds, and in /var/log/syslog on the DHCP server you should see that the DHCP server assigns an IP address to your PC. For example, in this excerpt of &lt;span class="system"&gt;/var/log/syslog&lt;/span&gt;, a client PC named &lt;span class="system"&gt;matze&lt;/span&gt; has been assigned the IP address &lt;span class="system"&gt;192.168.0.229&lt;/span&gt;:&lt;/p&gt; &lt;p class="system"&gt;Sep 19 16:01:26 server1 dhcpd: DHCPDISCOVER from 00:0c:76:8b:c4:16 via eth0&lt;br /&gt;  Sep 19 16:01:26 server1 dhcpd: DHCPOFFER on 192.168.0.229 to 00:0c:76:8b:c4:16 (matze) via eth0&lt;br /&gt;  Sep 19 16:01:27 server1 dhcpd: DHCPDISCOVER from 00:0c:76:8b:c4:16 (matze) via eth0&lt;br /&gt;  Sep 19 16:01:27 server1 dhcpd: DHCPOFFER on 192.168.0.229 to 00:0c:76:8b:c4:16 (matze) via eth0&lt;br /&gt;  Sep 19 16:01:31 server1 dhcpd: DHCPDISCOVER from 00:0c:76:8b:c4:16 (matze) via eth0&lt;br /&gt;  Sep 19 16:01:31 server1 dhcpd: DHCPOFFER on 192.168.0.229 to 00:0c:76:8b:c4:16 (matze) via eth0&lt;br /&gt;  Sep 19 16:01:31 server1 dhcpd: Wrote 1 leases to leases file.&lt;br /&gt;  Sep 19 16:01:31 server1 dhcpd: DHCPREQUEST for 192.168.0.229 (192.168.0.100) from 00:0c:76:8b:c4:16 (matze) via eth0&lt;br /&gt;Sep 19 16:01:31 server1 dhcpd: DHCPACK on 192.168.0.229 to 00:0c:76:8b:c4:16 (matze) via eth0&lt;/p&gt; &lt;p&gt;The DHCP server writes all current IP address "leases" to the file &lt;span class="system"&gt;/var/lib/dhcp3/dhcpd.leases&lt;/span&gt; so you should also find the lease there:&lt;/p&gt; &lt;p class="command"&gt;vi /var/lib/dhcp3/dhcpd.leases&lt;/p&gt; &lt;table class="" align="center" bgcolor="#cccccc" border="1" bordercolor="#000000" cellpadding="2" cellspacing="0" width="90%"&gt;       &lt;tbody&gt;&lt;tr&gt;         &lt;td class=""&gt;       &lt;pre&gt;# All times in this file are in UTC (GMT), not your local timezone.   This is&lt;br /&gt;# not a bug, so please don't ask about it.   There is no portable way to&lt;br /&gt;# store leases in the local timezone, so please don't request this as a&lt;br /&gt;# feature.   If this is inconvenient or confusing to you, we sincerely&lt;br /&gt;# apologize.   Seriously, though - don't ask.&lt;br /&gt;# The format of this file is documented in the dhcpd.leases(5) manual page.&lt;br /&gt;# This lease file was written by isc-dhcp-V3.0.1&lt;br /&gt;&lt;br /&gt;lease 192.168.0.229 {&lt;br /&gt; starts 2 2006/09/19 14:01:31;&lt;br /&gt; ends 3 2006/09/20 14:01:31;&lt;br /&gt; binding state active;&lt;br /&gt; next binding state free;&lt;br /&gt; hardware ethernet 00:0c:76:8b:c4:16;&lt;br /&gt; uid "\001\000\014v\213\304\026";&lt;br /&gt; client-hostname "matze";&lt;br /&gt;}&lt;/pre&gt; &lt;/td&gt;&lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;p&gt;Have Fun!&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6792517712398454150-4705832806778047963?l=h4rryblogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6792517712398454150/posts/default/4705832806778047963'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6792517712398454150/posts/default/4705832806778047963'/><link rel='alternate' type='text/html' href='http://h4rryblogs.blogspot.com/2009/03/installing-dhcp-server.html' title='Installing The DHCP Server'/><author><name>Harry Wisnu</name><uri>http://www.blogger.com/profile/08121048378035843219</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ZKxDqxbnwDc/Sf1bDmwZjcI/AAAAAAAAAHA/psadzO0RRUo/S220/harry.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6792517712398454150.post-7031546168300906972</id><published>2009-03-08T01:27:00.000-08:00</published><updated>2009-03-08T01:34:37.078-08:00</updated><title type='text'>Postfix With SMTP-AUTH And TLS Debian</title><content type='html'>&lt;p&gt; In order to install Postfix with SMTP-AUTH and TLS do the following steps: &lt;/p&gt; &lt;p class="command"&gt;apt-get install postfix libsasl2-2 sasl2-bin libsasl2-modules libdb3-util procmail&lt;/p&gt; &lt;p&gt;You will be asked two questions. Answer as follows:&lt;/p&gt; &lt;p&gt;&lt;span class="system"&gt;General type of mail configuration:&lt;/span&gt; &lt;span class="highlight"&gt;&lt;-- Internet Site&lt;/span&gt;&lt;br /&gt; &lt;span class="system"&gt;System mail name:&lt;/span&gt; &lt;span class="highlight"&gt;&lt;-- server1.example.com&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Then run&lt;/p&gt; &lt;p class="command"&gt;dpkg-reconfigure postfix&lt;/p&gt; &lt;p&gt;Again, you'll be asked some questions:&lt;/p&gt; &lt;p&gt;&lt;span class="system"&gt;General type of mail configuration:&lt;/span&gt; &lt;span class="highlight"&gt;&lt;-- Internet Site&lt;/span&gt;&lt;br /&gt; &lt;span class="system"&gt;System mail name:&lt;/span&gt; &lt;span class="highlight"&gt;&lt;-- server1.example.com&lt;/span&gt;&lt;br /&gt; &lt;span class="system"&gt;Root and postmaster mail recipient:&lt;/span&gt; &lt;span class="highlight"&gt;&lt;-- [blank]&lt;/span&gt;&lt;br /&gt; &lt;span class="system"&gt;Other destinations to accept mail for (blank for none):&lt;/span&gt; &lt;span class="highlight"&gt;&lt;-- server1.example.com, localhost.example.com, localhost.localdomain, localhost&lt;/span&gt;&lt;br /&gt; &lt;span class="system"&gt;Force synchronous updates on mail queue?&lt;/span&gt; &lt;span class="system"&gt;&lt;-- No&lt;/span&gt;&lt;br /&gt; &lt;span class="system"&gt;Local networks:&lt;/span&gt; &lt;span class="highlight"&gt;&lt;-- 127.0.0.0/8&lt;/span&gt;&lt;br /&gt; &lt;span class="system"&gt;Use procmail for local delivery?&lt;/span&gt; &lt;span class="highlight"&gt;&lt;-- Yes&lt;/span&gt;&lt;br /&gt; &lt;span class="system"&gt;Mailbox size limit:&lt;/span&gt; &lt;span class="highlight"&gt;&lt;-- 0&lt;/span&gt;&lt;br /&gt; &lt;span class="system"&gt;Local address extension character:&lt;/span&gt; &lt;span class="highlight"&gt;&lt;-- +&lt;/span&gt;&lt;br /&gt; &lt;span class="system"&gt;Internet protocols to use:&lt;/span&gt; &lt;span class="highlight"&gt;&lt;-- all&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Next, do this:&lt;/p&gt; &lt;p class="command"&gt;postconf -e 'smtpd_sasl_local_domain ='&lt;br /&gt; postconf -e 'smtpd_sasl_auth_enable = yes'&lt;br /&gt; postconf -e 'smtpd_sasl_security_options = noanonymous'&lt;br /&gt; postconf -e 'broken_sasl_auth_clients = yes'&lt;br /&gt; postconf -e 'smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination'&lt;br /&gt; postconf -e 'inet_interfaces = all'&lt;br /&gt; echo 'pwcheck_method: saslauthd' &gt;&gt; /etc/postfix/sasl/smtpd.conf&lt;br /&gt;echo 'mech_list: plain login' &gt;&gt; /etc/postfix/sasl/smtpd.conf&lt;/p&gt; &lt;p&gt; Afterwards we create the certificates for TLS: &lt;/p&gt; &lt;p class="command"&gt;mkdir /etc/postfix/ssl&lt;br /&gt; cd /etc/postfix/ssl/&lt;br /&gt;openssl genrsa -des3 -rand /etc/hosts -out smtpd.key 1024&lt;/p&gt; &lt;p class="command"&gt;chmod 600 smtpd.key&lt;br /&gt; openssl req -new -key smtpd.key -out smtpd.csr&lt;/p&gt; &lt;p class="command"&gt;openssl x509 -req -days 3650 -in smtpd.csr -signkey smtpd.key -out smtpd.crt&lt;/p&gt; &lt;p class="command"&gt;openssl rsa -in smtpd.key -out smtpd.key.unencrypted&lt;/p&gt; &lt;p class="command"&gt;mv -f smtpd.key.unencrypted smtpd.key&lt;br /&gt;openssl req -new -x509 -extensions v3_ca -keyout cakey.pem -out cacert.pem -days 3650&lt;/p&gt; &lt;p&gt; Next we configure Postfix for  TLS (make sure that you use the correct hostname for &lt;span class="system"&gt;myhostname&lt;/span&gt;): &lt;/p&gt; &lt;p class="command"&gt;postconf -e 'myhostname = server1.example.com'&lt;br /&gt; postconf -e 'smtpd_tls_auth_only = no'&lt;br /&gt; postconf -e 'smtp_use_tls = yes'&lt;br /&gt; postconf -e 'smtpd_use_tls = yes'&lt;br /&gt; postconf -e 'smtp_tls_note_starttls_offer = yes'&lt;br /&gt; postconf -e 'smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key'&lt;br /&gt; postconf -e 'smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt'&lt;br /&gt; postconf -e 'smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem'&lt;br /&gt; postconf -e 'smtpd_tls_loglevel = 1'&lt;br /&gt; postconf -e 'smtpd_tls_received_header = yes'&lt;br /&gt; postconf -e 'smtpd_tls_session_cache_timeout = 3600s'&lt;br /&gt;postconf -e 'tls_random_source = dev:/dev/urandom'&lt;/p&gt; &lt;p&gt; The file &lt;span class="system"&gt;/etc/postfix/main.cf&lt;/span&gt; should now look like this: &lt;/p&gt; &lt;p class="command"&gt;cat /etc/postfix/main.cf&lt;/p&gt; &lt;table class="" align="center" bgcolor="#cccccc" border="1" bordercolor="#000000" cellpadding="2" cellspacing="0" width="90%"&gt;       &lt;tbody&gt;&lt;tr&gt;         &lt;td class=""&gt;       &lt;pre&gt;# See /usr/share/postfix/main.cf.dist for a commented, more complete version&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Debian specific:  Specifying a file name will cause the first&lt;br /&gt;# line of that file to be used as the name.  The Debian default&lt;br /&gt;# is /etc/mailname.&lt;br /&gt;#myorigin = /etc/mailname&lt;br /&gt;&lt;br /&gt;smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)&lt;br /&gt;biff = no&lt;br /&gt;&lt;br /&gt;# appending .domain is the MUA's job.&lt;br /&gt;append_dot_mydomain = no&lt;br /&gt;&lt;br /&gt;# Uncomment the next line to generate "delayed mail" warnings&lt;br /&gt;#delay_warning_time = 4h&lt;br /&gt;&lt;br /&gt;# TLS parameters&lt;br /&gt;smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt&lt;br /&gt;smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key&lt;br /&gt;smtpd_use_tls = yes&lt;br /&gt;smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache&lt;br /&gt;smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache&lt;br /&gt;&lt;br /&gt;# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for&lt;br /&gt;# information on enabling SSL in the smtp client.&lt;br /&gt;&lt;br /&gt;myhostname = server1.example.com&lt;br /&gt;alias_maps = hash:/etc/aliases&lt;br /&gt;alias_database = hash:/etc/aliases&lt;br /&gt;myorigin = /etc/mailname&lt;br /&gt;mydestination = server1.example.com, localhost.example.com, localhost.localdomain, localhost&lt;br /&gt;relayhost =&lt;br /&gt;mynetworks = 127.0.0.0/8&lt;br /&gt;mailbox_command = procmail -a "$EXTENSION"&lt;br /&gt;mailbox_size_limit = 0&lt;br /&gt;recipient_delimiter = +&lt;br /&gt;inet_interfaces = all&lt;br /&gt;inet_protocols = all&lt;br /&gt;smtpd_sasl_local_domain =&lt;br /&gt;smtpd_sasl_auth_enable = yes&lt;br /&gt;smtpd_sasl_security_options = noanonymous&lt;br /&gt;broken_sasl_auth_clients = yes&lt;br /&gt;smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination&lt;br /&gt;smtpd_tls_auth_only = no&lt;br /&gt;smtp_use_tls = yes&lt;br /&gt;smtp_tls_note_starttls_offer = yes&lt;br /&gt;smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem&lt;br /&gt;smtpd_tls_loglevel = 1&lt;br /&gt;smtpd_tls_received_header = yes&lt;br /&gt;smtpd_tls_session_cache_timeout = 3600s&lt;br /&gt;tls_random_source = dev:/dev/urandom&lt;/pre&gt; &lt;/td&gt;&lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;p&gt;Restart Postfix:&lt;/p&gt;&lt;div id="adrectangleb"&gt;&lt;div id="defer-adrectangleb"&gt; &lt;script type="text/javascript"&gt; &lt;!-- document.write('&lt;div align="center"&gt;'); //--&gt; &lt;/script&gt;&lt;div align="center"&gt; &lt;!-- begin ad tag Rectangle B --&gt; &lt;script language="JavaScript" src="http://a.collective-media.net/adj/idgt.howtoforge.en/rec_b;tile=1;sz=300x250;ord=%5Btimestamp%5D?" type="text/javascript"&gt;&lt;/script&gt;&lt;script type="text/javascript"&gt;document.write('&lt;scr'+'ipt language="javascript" src="http://ad.doubleclick.net/adj/idgt.howtoforge.en/rec_b;net=idgt;u=127_0_0_1_2647541_1236504609,110090e2658d53d,tech,;;tile=1;ord1=641310;sz=300x250;contx=tech;btg=;ord=%5Btimestamp%5D?"&gt;&lt;/scr'+'ipt&gt;');&lt;/script&gt;&lt;script language="javascript" src="http://a.collective-media.net/cmadj/idgt.howtoforge.en/rec_b;tile=1;sz=300x250;ord=%5Btimestamp%5D;ord1=641310;cmpgurl=http%253A//www.howtoforge.com/perfect_server_ubuntu7.10_p5?"&gt;&lt;/script&gt;&lt;script language="Javascript"&gt;createAndAttachAd("127_0_0_1_2647541_1236504609", "http://ad.doubleclick.net/adj/idgt.howtoforge.en/rec_b;net=idgt;u=127_0_0_1_2647541_1236504609,110090e2658d53d,tech,;;tile=1;ord1=641310;sz=300x250;contx=tech;btg=;ord=%5Btimestamp%5D?","300","250");&lt;/script&gt;&lt;script language="javascript" src="http://ad.doubleclick.net/adj/idgt.howtoforge.en/rec_b;net=idgt;u=127_0_0_1_2647541_1236504609,110090e2658d53d,tech,;;tile=1;ord1=641310;sz=300x250;contx=tech;btg=;ord=%5Btimestamp%5D?"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="http://tags.expo9.exponential.com/tags/HowToForgecom/ROS/tags.js"&gt;&lt;/script&gt;&lt;center&gt;&lt;script type="text/javascript" src="http://a.tribalfusion.com/j.ad?site=howtoforgecom&amp;amp;adSpace=ros&amp;amp;tagKey=831694210&amp;amp;size=300x250&amp;amp;p=4543554&amp;amp;a=3&amp;amp;flashVer=0&amp;amp;ver=1.14&amp;amp;center=1&amp;amp;noAd=1&amp;amp;url=http%3A%2F%2Fwww.howtoforge.com%2Fperfect_server_ubuntu7.10_p5&amp;amp;rurl=http%3A%2F%2Fwww.howtoforge.com%2Fperfect_server_ubuntu7.10&amp;amp;rnd=4557477"&gt;&lt;/script&gt;&lt;/center&gt;  &lt;noscript&gt;&lt;a href="http://a.collective-media.net/jump/idgt.howtoforge.en/rec_b;tile=1;sz=300x250;ord=[timestamp]?" target="_blank"&gt;&lt;img src="http://a.collective-media.net/ad/idgt.howtoforge.en/rec_b;tile=1;sz=300x250;ord=[timestamp]?" width="300" height="250" border="0" alt="" /&gt;&lt;/a&gt;&lt;/noscript&gt; &lt;!-- End ad tag Rectangle B --&gt; &lt;script type="text/javascript"&gt; &lt;!-- document.write('&lt;/div&gt;'); //--&gt; &lt;/script&gt;&lt;/div&gt; &lt;/div&gt;&lt;/div&gt; &lt;p class="command"&gt;/etc/init.d/postfix restart&lt;/p&gt; &lt;p&gt; Authentication will be done by &lt;span class="system"&gt;saslauthd&lt;/span&gt;. We have to change a few things to make it work properly. Because Postfix runs chrooted in &lt;span class="system"&gt;/var/spool/postfix &lt;/span&gt; we have to do the following:  &lt;/p&gt; &lt;p class="command"&gt;mkdir -p /var/spool/postfix/var/run/saslauthd&lt;/p&gt; &lt;p&gt; Now we have to edit &lt;span class="system"&gt;/etc/default/saslauthd&lt;/span&gt; in order to activate &lt;span class="system"&gt;saslauthd&lt;/span&gt;. Set &lt;span class="system"&gt;START to yes&lt;/span&gt; and change the line &lt;span class="system"&gt;OPTIONS="-c"&lt;/span&gt; to &lt;span class="system"&gt;OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd -r"&lt;/span&gt;:&lt;/p&gt; &lt;p class="command"&gt;vi /etc/default/saslauthd&lt;/p&gt; &lt;table class="" align="center" bgcolor="#cccccc" border="1" bordercolor="#000000" cellpadding="2" cellspacing="0" width="90%"&gt;       &lt;tbody&gt;&lt;tr&gt;         &lt;td class=""&gt;       &lt;pre&gt;#&lt;br /&gt;# Settings for saslauthd daemon&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;# Should saslauthd run automatically on startup? (default: no)&lt;br /&gt;START=yes&lt;br /&gt;&lt;br /&gt;# Which authentication mechanisms should saslauthd use? (default: pam)&lt;br /&gt;#&lt;br /&gt;# Available options in this Debian package:&lt;br /&gt;# getpwent  -- use the getpwent() library function&lt;br /&gt;# kerberos5 -- use Kerberos 5&lt;br /&gt;# pam       -- use PAM&lt;br /&gt;# rimap     -- use a remote IMAP server&lt;br /&gt;# shadow    -- use the local shadow password file&lt;br /&gt;# sasldb    -- use the local sasldb database file&lt;br /&gt;# ldap      -- use LDAP (configuration is in /etc/saslauthd.conf)&lt;br /&gt;#&lt;br /&gt;# Only one option may be used at a time. See the saslauthd man page&lt;br /&gt;# for more information.&lt;br /&gt;#&lt;br /&gt;# Example: MECHANISMS="pam"&lt;br /&gt;MECHANISMS="pam"&lt;br /&gt;&lt;br /&gt;# Additional options for this mechanism. (default: none)&lt;br /&gt;# See the saslauthd man page for information about mech-specific options.&lt;br /&gt;MECH_OPTIONS=""&lt;br /&gt;&lt;br /&gt;# How many saslauthd processes should we run? (default: 5)&lt;br /&gt;# A value of 0 will fork a new process for each connection.&lt;br /&gt;THREADS=5&lt;br /&gt;&lt;br /&gt;# Other options (default: -c)&lt;br /&gt;# See the saslauthd man page for information about these options.&lt;br /&gt;#&lt;br /&gt;# Example for postfix users: "-c -m /var/spool/postfix/var/run/saslauthd"&lt;br /&gt;# Note: See /usr/share/doc/sasl2-bin/README.Debian&lt;br /&gt;OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd -r"&lt;/pre&gt; &lt;/td&gt;&lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;p&gt;Now start &lt;span class="system"&gt;saslauthd&lt;/span&gt;:&lt;/p&gt; &lt;p class="command"&gt;/etc/init.d/saslauthd start&lt;/p&gt; &lt;p&gt; To see if SMTP-AUTH and TLS work properly now run the following command: &lt;/p&gt; &lt;p class="command"&gt;telnet localhost 25&lt;/p&gt; &lt;p&gt; After you have established the connection to your Postfix mail server type &lt;/p&gt; &lt;p class="command"&gt;ehlo localhost&lt;/p&gt; &lt;p&gt;If you see the lines &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6792517712398454150-7031546168300906972?l=h4rryblogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6792517712398454150/posts/default/7031546168300906972'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6792517712398454150/posts/default/7031546168300906972'/><link rel='alternate' type='text/html' href='http://h4rryblogs.blogspot.com/2009/03/postfix-with-smtp-auth-and-tls-debian.html' title='Postfix With SMTP-AUTH And TLS Debian'/><author><name>Harry Wisnu</name><uri>http://www.blogger.com/profile/08121048378035843219</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ZKxDqxbnwDc/Sf1bDmwZjcI/AAAAAAAAAHA/psadzO0RRUo/S220/harry.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6792517712398454150.post-7486122742015741853</id><published>2009-03-08T00:23:00.000-08:00</published><updated>2009-03-08T00:24:39.662-08:00</updated><title type='text'>Mysql Server</title><content type='html'>&lt;p class="command"&gt;apt-get install mysql-server mysql-client libmysqlclient15-dev&lt;/p&gt; &lt;p&gt;We want MySQL to listen on all interfaces, not just localhost, therefore we edit &lt;span class="system"&gt;/etc/mysql/my.cnf&lt;/span&gt; and comment out the line &lt;span class="system"&gt;bind-address           = 127.0.0.1&lt;/span&gt;:&lt;/p&gt; &lt;p class="command"&gt;vi /etc/mysql/my.cnf&lt;/p&gt; &lt;table class="" align="center" bgcolor="#cccccc" border="1" bordercolor="#000000" cellpadding="2" cellspacing="0" width="90%"&gt;       &lt;tbody&gt;&lt;tr&gt;         &lt;td class=""&gt;       &lt;pre&gt;[...]&lt;br /&gt;#bind-address           = 127.0.0.1&lt;br /&gt;[...]&lt;/pre&gt; &lt;/td&gt;&lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;p&gt;Then we restart MySQL:&lt;/p&gt; &lt;p class="command"&gt;/etc/init.d/mysql restart&lt;/p&gt; &lt;p&gt; Now check that networking is enabled. Run &lt;/p&gt; &lt;p class="command"&gt;netstat -tap&lt;/p&gt; &lt;p&gt; In the output you should see a line like this one: &lt;/p&gt; &lt;p class="system"&gt;tcp        0      0 *:mysql                 *:*                     LISTEN     3281/mysqld&lt;/p&gt; &lt;p&gt; Run &lt;/p&gt; &lt;p class="command"&gt;mysqladmin -u root password yourrootsqlpassword&lt;br /&gt;mysqladmin -h server1.example.com -u root password yourrootsqlpassword&lt;/p&gt;&lt;div id="adrectangleb"&gt;&lt;div id="defer-adrectangleb"&gt; &lt;script type="text/javascript"&gt; &lt;!-- document.write('&lt;div align="center"&gt;'); //--&gt; &lt;/script&gt;&lt;div align="center"&gt; &lt;!-- begin ad tag Rectangle B --&gt; &lt;script language="JavaScript" src="http://a.collective-media.net/adj/idgt.howtoforge.en/rec_b;tile=1;sz=300x250;ord=%5Btimestamp%5D?" type="text/javascript"&gt;&lt;/script&gt;&lt;script type="text/javascript"&gt;document.write('&lt;scr'+'ipt language="javascript" src="http://ad.doubleclick.net/adj/idgt.howtoforge.en/rec_b;net=idgt;u=127_0_0_1_42077855_1236500534,11007f484b0e950,tech,;;tile=1;ord1=895532;sz=300x250;contx=tech;btg=;ord=%5Btimestamp%5D?"&gt;&lt;/scr'+'ipt&gt;');&lt;/script&gt;&lt;script language="javascript" src="http://a.collective-media.net/cmadj/idgt.howtoforge.en/rec_b;tile=1;sz=300x250;ord=%5Btimestamp%5D;ord1=895532;cmpgurl=http%253A//www.howtoforge.com/perfect_setup_debian_etch_p4?"&gt;&lt;/script&gt;&lt;script language="Javascript"&gt;createAndAttachAd("127_0_0_1_42077855_1236500534", "http://ad.doubleclick.net/adj/idgt.howtoforge.en/rec_b;net=idgt;u=127_0_0_1_42077855_1236500534,11007f484b0e950,tech,;;tile=1;ord1=895532;sz=300x250;contx=tech;btg=;ord=%5Btimestamp%5D?","300","250");&lt;/script&gt;&lt;script language="javascript" src="http://ad.doubleclick.net/adj/idgt.howtoforge.en/rec_b;net=idgt;u=127_0_0_1_42077855_1236500534,11007f484b0e950,tech,;;tile=1;ord1=895532;sz=300x250;contx=tech;btg=;ord=%5Btimestamp%5D?"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="http://tags.expo9.exponential.com/tags/HowToForgecom/ROS/tags.js"&gt;&lt;/script&gt;&lt;center&gt;&lt;script type="text/javascript" src="http://a.tribalfusion.com/j.ad?site=howtoforgecom&amp;amp;adSpace=ros&amp;amp;tagKey=831694210&amp;amp;size=300x250&amp;amp;p=474500&amp;amp;a=3&amp;amp;flashVer=0&amp;amp;ver=1.14&amp;amp;center=1&amp;amp;noAd=1&amp;amp;url=http%3A%2F%2Fwww.howtoforge.com%2Fperfect_setup_debian_etch_p4&amp;amp;rurl=http%3A%2F%2Fwww.howtoforge.com%2Fperfect_setup_debian_etch&amp;amp;rnd=480258"&gt;&lt;/script&gt;&lt;/center&gt;  &lt;noscript&gt;&lt;a href="http://a.collective-media.net/jump/idgt.howtoforge.en/rec_b;tile=1;sz=300x250;ord=[timestamp]?" target="_blank"&gt;&lt;img src="http://a.collective-media.net/ad/idgt.howtoforge.en/rec_b;tile=1;sz=300x250;ord=[timestamp]?" width="300" height="250" border="0" alt="" /&gt;&lt;/a&gt;&lt;/noscript&gt; &lt;!-- End ad tag Rectangle B --&gt; &lt;script type="text/javascript"&gt; &lt;!-- document.write('&lt;/div&gt;'); //--&gt; &lt;/script&gt;&lt;/div&gt; &lt;/div&gt;&lt;/div&gt; &lt;p&gt; to set a password for the user root (otherwise anybody can access your MySQL database!).   &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6792517712398454150-7486122742015741853?l=h4rryblogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6792517712398454150/posts/default/7486122742015741853'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6792517712398454150/posts/default/7486122742015741853'/><link rel='alternate' type='text/html' href='http://h4rryblogs.blogspot.com/2009/03/mysql-server.html' title='Mysql Server'/><author><name>Harry Wisnu</name><uri>http://www.blogger.com/profile/08121048378035843219</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ZKxDqxbnwDc/Sf1bDmwZjcI/AAAAAAAAAHA/psadzO0RRUo/S220/harry.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6792517712398454150.post-7063309041905908347</id><published>2009-03-08T00:22:00.000-08:00</published><updated>2009-03-08T00:23:07.118-08:00</updated><title type='text'>DNS Server</title><content type='html'>apt-get install bind9 &lt;p&gt; For security reasons we want to run BIND chrooted so we have to do the following steps: &lt;/p&gt; &lt;p class="command"&gt;/etc/init.d/bind9 stop&lt;/p&gt; &lt;p&gt;Edit the file &lt;span class="system"&gt;/etc/default/bind9&lt;/span&gt; so that the daemon will run as the unprivileged user &lt;span class="system"&gt;bind&lt;/span&gt;, chrooted to &lt;span class="system"&gt;/var/lib/named&lt;/span&gt;. Modify the line: &lt;span class="system"&gt;OPTIONS="-u bind"&lt;/span&gt; so that it reads &lt;span class="system"&gt;OPTIONS="-u bind -t /var/lib/named"&lt;/span&gt;:&lt;/p&gt; &lt;p class="command"&gt;vi /etc/default/bind9&lt;/p&gt; &lt;table class="" align="center" bgcolor="#cccccc" border="1" bordercolor="#000000" cellpadding="2" cellspacing="0" width="90%"&gt;       &lt;tbody&gt;&lt;tr&gt;         &lt;td class=""&gt;       &lt;pre&gt;OPTIONS="-u bind -t /var/lib/named"&lt;br /&gt;# Set RESOLVCONF=no to not run resolvconf&lt;br /&gt;RESOLVCONF=yes&lt;/pre&gt; &lt;/td&gt;&lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;p&gt; Create the necessary directories under &lt;span class="system"&gt;/var/lib&lt;/span&gt;: &lt;/p&gt; &lt;p class="command"&gt;mkdir -p /var/lib/named/etc&lt;br /&gt;  mkdir /var/lib/named/dev&lt;br /&gt;  mkdir -p /var/lib/named/var/cache/bind&lt;br /&gt;mkdir -p /var/lib/named/var/run/bind/run&lt;/p&gt; &lt;p&gt;Then move the config directory from &lt;span class="system"&gt;/etc&lt;/span&gt; to &lt;span class="system"&gt;/var/lib/named/etc&lt;/span&gt;:&lt;/p&gt; &lt;p class="command"&gt;mv /etc/bind /var/lib/named/etc&lt;/p&gt; &lt;p&gt; Create a symlink to the new config directory from the old location (to avoid problems when bind gets updated in the future): &lt;/p&gt; &lt;p class="command"&gt;ln -s /var/lib/named/etc/bind /etc/bind&lt;/p&gt; &lt;p&gt; Make null and random devices, and fix permissions of the directories: &lt;/p&gt; &lt;p class="command"&gt;mknod /var/lib/named/dev/null c 1 3&lt;br /&gt;  mknod /var/lib/named/dev/random c 1 8&lt;br /&gt;  chmod 666 /var/lib/named/dev/null /var/lib/named/dev/random&lt;br /&gt;  chown -R bind:bind /var/lib/named/var/*&lt;br /&gt;chown -R bind:bind /var/lib/named/etc/bind&lt;/p&gt; &lt;p&gt; We need to modify &lt;span class="system"&gt;/etc/default/syslogd&lt;/span&gt; so that we can still get important messages logged to the system logs. Modify the line: &lt;span class="system"&gt;SYSLOGD=""&lt;/span&gt; so that it reads: &lt;span class="system"&gt;SYSLOGD="-a /var/lib/named/dev/log"&lt;/span&gt;:&lt;/p&gt; &lt;p class="command"&gt;vi /etc/default/syslogd&lt;/p&gt; &lt;table class="" align="center" bgcolor="#cccccc" border="1" bordercolor="#000000" cellpadding="2" cellspacing="0" width="90%"&gt;       &lt;tbody&gt;&lt;tr&gt;         &lt;td class=""&gt;       &lt;pre&gt;#&lt;br /&gt;# Top configuration file for syslogd&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;# Full documentation of possible arguments are found in the manpage&lt;br /&gt;# syslogd(8).&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;# For remote UDP logging use SYSLOGD="-r"&lt;br /&gt;#&lt;br /&gt;SYSLOGD="-a /var/lib/named/dev/log"&lt;/pre&gt; &lt;/td&gt;&lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;p&gt; Restart the logging daemon: &lt;/p&gt; &lt;p class="command"&gt;/etc/init.d/sysklogd restart&lt;/p&gt; &lt;p&gt; Start up BIND, and check &lt;span class="system"&gt;/var/log/syslog&lt;/span&gt; for  errors:&lt;/p&gt; &lt;p class="command"&gt;/etc/init.d/bind9 start&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6792517712398454150-7063309041905908347?l=h4rryblogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6792517712398454150/posts/default/7063309041905908347'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6792517712398454150/posts/default/7063309041905908347'/><link rel='alternate' type='text/html' href='http://h4rryblogs.blogspot.com/2009/03/dns-server.html' title='DNS Server'/><author><name>Harry Wisnu</name><uri>http://www.blogger.com/profile/08121048378035843219</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ZKxDqxbnwDc/Sf1bDmwZjcI/AAAAAAAAAHA/psadzO0RRUo/S220/harry.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6792517712398454150.post-7327301307814429028</id><published>2009-03-07T20:15:00.000-08:00</published><updated>2009-03-07T20:41:45.749-08:00</updated><title type='text'>Tutorial Dovecot and Postfix</title><content type='html'>&lt;p&gt;I user postfix and dovecot , but i can't configure auth..&lt;/p&gt; &lt;p&gt;/etc/postfix/main.cf&lt;/p&gt; &lt;p&gt;# See /usr/share/postfix/main.cf.dist for a commented, more complete version&lt;/p&gt; &lt;p&gt;smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)&lt;br /&gt;biff = no&lt;/p&gt; &lt;p&gt;# appending .domain is the MUA's job.&lt;br /&gt;append_dot_mydomain = no&lt;/p&gt; &lt;p&gt;# Uncomment the next line to generate "delayed mail" warnings&lt;br /&gt;#delay_warning_time = 4h&lt;/p&gt; &lt;p&gt;# TLS parameters&lt;br /&gt;smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem&lt;br /&gt;smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key&lt;br /&gt;smtpd_use_tls = yes&lt;br /&gt;smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache&lt;br /&gt;smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache&lt;/p&gt; &lt;p&gt;# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for&lt;br /&gt;# information on enabling SSL in the smtp client.&lt;/p&gt; &lt;p&gt;myhostname = jony.atlantica.us&lt;br /&gt;alias_maps = hash:/etc/aliases&lt;br /&gt;alias_database = hash:/etc/aliases&lt;br /&gt;myorigin = jony.atlantica.us&lt;br /&gt;mydestination = jony.atlantica.us&lt;br /&gt;mynetworks = 192.168.0.0/28, 127.0.0.0/8&lt;br /&gt;mailbox_size_limit = 0&lt;br /&gt;recipient_delimiter = +&lt;br /&gt;delay_notice_recipient = d3v1ous&lt;br /&gt;queue_directory = /var/mail&lt;br /&gt;bounce_notice_recipient = d3v1ous&lt;br /&gt;2bounce_notice_recipient = d3v1ous&lt;br /&gt;error_notice_recipient = d3v1ous&lt;/p&gt; &lt;p&gt;# User&lt;/p&gt; &lt;p&gt;# helo restrictions&lt;br /&gt;smtpd_delay_reject = yes&lt;br /&gt;smtpd_helo_required = yes&lt;br /&gt;smtpd_helo_restrictions =&lt;br /&gt;        permit_mynetworks,&lt;br /&gt;        reject_invalid_hostname,&lt;br /&gt;        permit&lt;/p&gt; &lt;p&gt;# sender restrictions&lt;br /&gt;smtpd_sender_restrictions =&lt;br /&gt;        permit_sasl_authenticated,&lt;br /&gt;        permit_mynetworks,&lt;br /&gt;        reject_non_fqdn_sender,&lt;br /&gt;        reject_unknown_sender_domain,&lt;br /&gt;        permit&lt;/p&gt; &lt;p&gt;# recipient restriction&lt;br /&gt;smtpd_recipient_restrictions =&lt;br /&gt;        reject_unauth_pipelining,&lt;br /&gt;        permit_sasl_authenticated,&lt;br /&gt;        permit_mynetworks,&lt;br /&gt;        reject_non_fqdn_recipient,&lt;br /&gt;        reject_unknown_recipient_domain,&lt;br /&gt;        reject_unauth_destination&lt;/p&gt; &lt;p&gt;#enable SMTP auth for relaying&lt;br /&gt;smtpd_sasl_auth_enable       = yes&lt;br /&gt;broken_sasl_auth_clients     = yes&lt;br /&gt;smtpd_sasl_type              = dovecot&lt;br /&gt;smtpd_sasl_path              = /private/auth-client&lt;br /&gt;# deliver with dovecot&lt;br /&gt;dovecot_destination_recipient_limit = 1&lt;br /&gt;mailbox_transport = dovecot&lt;br /&gt;local_recipient_maps =&lt;/p&gt; &lt;p&gt;##########################################################################################################################&lt;/p&gt; &lt;p&gt; /etc/dovecot/dovecot.conf&lt;/p&gt; &lt;p&gt;shutdown_clients = yes&lt;br /&gt;ssl_disable = no&lt;br /&gt;base_dir = /var/run/dovecot/&lt;br /&gt;protocols = imap pop3 imaps pop3s&lt;br /&gt;listen = [::]&lt;br /&gt;protocol imap {&lt;br /&gt;        listen = *:143&lt;br /&gt;  ssl_listen = *:993&lt;br /&gt;        login_executable = /usr/lib/dovecot/imap-login&lt;br /&gt;        mail_executable = /usr/lib/dovecot/imap&lt;br /&gt;}&lt;br /&gt;protocol pop3 {&lt;br /&gt;  listen = *:110&lt;br /&gt;  ssl_listen = *:995&lt;br /&gt;        login_executable = /usr/lib/dovecot/pop3-login&lt;br /&gt;        mail_executable = /usr/lib/dovecot/pop3&lt;br /&gt;        pop3_no_flag_updates = yes&lt;br /&gt;        pop3_reuse_xuidl = no&lt;br /&gt;        pop3_lock_session = no&lt;br /&gt;        pop3_uidl_format = %08Xu%08Xv&lt;br /&gt;        pop3_logout_format = top=%t/%p, retr=%r/%b, del=%d/%m, size=%s&lt;br /&gt;        pop3_client_workarounds = outlook-no-nuls oe-ns-eoh&lt;br /&gt;}&lt;br /&gt;protocol lda {&lt;br /&gt;  postmaster_address = &lt;script type="text/javascript"&gt;eval(unescape('%64%6f%63%75%6d%65%6e%74%2e%77%72%69%74%65%28%27%3c%61%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%64%33%76%31%6f%75%73%40%6a%6f%6e%79%2e%61%74%6c%61%6e%74%69%63%61%2e%75%73%22%3e%64%33%76%31%6f%75%73%40%6a%6f%6e%79%2e%61%74%6c%61%6e%74%69%63%61%2e%75%73%3c%2f%61%3e%27%29%3b'))&lt;/script&gt;&lt;a href="mailto:d3v1ous@jony.atlantica.us"&gt;main@main.com&lt;/a&gt;&lt;br /&gt;}&lt;br /&gt;disable_plaintext_auth = no&lt;br /&gt;log_timestamp = "%b %d %H:%M:%S "&lt;br /&gt;syslog_facility = mail&lt;br /&gt;login_dir = /var/run/dovecot/login&lt;br /&gt;login_chroot = yes&lt;br /&gt;login_user = dovecot&lt;br /&gt;login_process_size = 64&lt;br /&gt;login_process_per_connection = yes&lt;br /&gt;login_processes_count = 16&lt;br /&gt;login_max_processes_count = 128&lt;br /&gt;login_max_connections = 256&lt;br /&gt;login_greeting = Dovecot ready.&lt;br /&gt;login_log_format_elements = user=&lt;%u&gt; rip=%r %c&lt;br /&gt;login_log_format = %$: %s&lt;br /&gt;mail_location = mbox:~/mail/:INBOX=/var/mail/%u&lt;br /&gt;mail_full_filesystem_access = no&lt;br /&gt;mail_debug = no&lt;br /&gt;mail_log_prefix = "%Us(%u): "&lt;br /&gt;mail_read_mmaped = no&lt;br /&gt;lock_method = fcntl&lt;br /&gt;mail_drop_priv_before_exec = no&lt;br /&gt;verbose_proctitle = no&lt;br /&gt;#first_valid_uid = 10000&lt;br /&gt;#last_valid_uid = 10000&lt;br /&gt;#first_valid_gid = 10000&lt;br /&gt;#last_valid_gid = 10000&lt;br /&gt;max_mail_processes = 1024&lt;br /&gt;mail_process_size = 256&lt;br /&gt;mail_max_keyword_length = 50&lt;br /&gt;umask = 0077&lt;br /&gt;valid_chroot_dirs = /&lt;br /&gt;mbox_read_locks = fcntl&lt;br /&gt;mbox_write_locks = fcntl&lt;br /&gt;mbox_lock_timeout = 300&lt;br /&gt;mbox_dotlock_change_timeout = 120&lt;br /&gt;mbox_dirty_syncs = yes&lt;br /&gt;auth_executable = /usr/lib/dovecot/dovecot-auth&lt;br /&gt;auth_process_size = 256&lt;br /&gt;auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@&lt;br /&gt;auth_username_format = %Lu&lt;br /&gt;auth_verbose = no&lt;br /&gt;auth_debug = no&lt;br /&gt;auth_debug_passwords = no&lt;br /&gt;auth default {&lt;br /&gt;        mechanisms = plain login&lt;br /&gt;  passdb pam {&lt;br /&gt;  }&lt;br /&gt;  userdb passwd {&lt;br /&gt;  }&lt;br /&gt;        count = 1&lt;br /&gt;        ssl_require_client_cert = no&lt;br /&gt;        ssl_username_from_cert = no&lt;br /&gt;        socket listen {&lt;br /&gt;                master {&lt;br /&gt;                        path = /var/run/dovecot/auth-master&lt;br /&gt;                        mode = 0660&lt;br /&gt;                        user = dovecot&lt;br /&gt;                        group = dovecot&lt;br /&gt;                }&lt;br /&gt;                client {&lt;br /&gt;                        path = /var/spool/postfix/private/auth-client&lt;br /&gt;                        mode = 0666&lt;br /&gt;                        user = postfix&lt;br /&gt;                        group = mail&lt;br /&gt;                }&lt;br /&gt;        }&lt;br /&gt;}&lt;/p&gt; &lt;p&gt;##########################################################################################################################&lt;/p&gt; &lt;p&gt;ls /var/spool/postfix/private/auth-client -l&lt;br /&gt;srw-rw-rw- 1 postfix mail 0 2008-03-18 11:19 /var/spool/postfix/private/auth-client&lt;/p&gt; &lt;p&gt;ls /var/run/dovecot/auth-master -l&lt;br /&gt;srw-rw---- 1 dovecot dovecot 0 2008-03-18 11:19 /var/run/dovecot/auth-master&lt;/p&gt; &lt;p&gt;/var/log/mail.log&lt;/p&gt; &lt;p&gt;Mar 18 11:20:56 main dovecot: imap-login: Login: user=, rip=217.18.252.139&lt;br /&gt;Mar 18 11:20:56 main dovecot: IMAP(d3v1ous): Disconnected in IDLE&lt;br /&gt;Mar 18 11:20:56 main dovecot: imap-login: Login: user=, rip=217.18.252.139&lt;br /&gt;Mar 18 11:20:56 main dovecot: IMAP(d3v1ous): Disconnected in IDLE&lt;br /&gt;Mar 18 11:20:56 main dovecot: imap-login: Login: user=, rip=217.18.252.139&lt;br /&gt;Mar 18 11:20:56 main dovecot: IMAP(d3v1ous): Disconnected in IDLE&lt;br /&gt;Mar 18 11:20:56 main dovecot: imap-login: Login: user=, rip=217.18.252.139&lt;br /&gt;Mar 18 11:20:56 main dovecot: IMAP(d3v1ous): Disconnected in IDLE&lt;br /&gt;Mar 18 11:20:56 main dovecot: imap-login: Login: user=, rip=217.18.252.139&lt;br /&gt;Mar 18 11:20:56 main dovecot: IMAP(d3v1ous): Disconnected in IDLE&lt;br /&gt;Mar 18 11:21:56 main dovecot: imap-login: Login: user=, rip=217.18.252.139&lt;/p&gt; &lt;p&gt;##########################################################################################################################&lt;/p&gt; &lt;p&gt; /var/log/mail.log&lt;/p&gt; &lt;p&gt;Mar 18 11:40:32 jony postfix/master[30724]: daemon started -- version 2.3.8, configuration /etc/postfix&lt;br /&gt;Mar 18 11:40:34 jony postfix/smtpd[30731]: warning: SASL: Connect to private/auth-client failed: No such file or directory&lt;br /&gt;Mar 18 11:40:34 jony postfix/smtpd[30731]: fatal: no SASL authentication mechanisms&lt;br /&gt;Mar 18 11:40:35 jony postfix/master[30724]: warning: process /usr/lib/postfix/smtpd pid 30731 exit status 1&lt;br /&gt;Mar 18 11:40:35 jony postfix/master[30724]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6792517712398454150-7327301307814429028?l=h4rryblogs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6792517712398454150/posts/default/7327301307814429028'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6792517712398454150/posts/default/7327301307814429028'/><link rel='alternate' type='text/html' href='http://h4rryblogs.blogspot.com/2009/03/tutorial-dovecot-and-postfix.html' title='Tutorial Dovecot and Postfix'/><author><name>Harry Wisnu</name><uri>http://www.blogger.com/profile/08121048378035843219</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_ZKxDqxbnwDc/Sf1bDmwZjcI/AAAAAAAAAHA/psadzO0RRUo/S220/harry.jpg'/></author></entry></feed>
