2nd Life Under Linux
<p>Next month: games. BYOB - Bring Your Own Boxes.</p>
<h4>Beginner Topic: 2nd Life Under Linux</h4>
<p>
http://secondlife.com</p>
<ul>
<li>a social video game, you can chat and trade with people
<li>building tools
<li>global economy
<li>very much like a MUSH
<li>time based on Pacific Time Zone
<li>accounts
<ul>
<li>can get a free account, but only 7 days and has no features.
<li>need either a cellphone or credit card
<li>costs $10 / month for a basic account
<li>$72 / month gets you land ownership, building and 500 'Lindens' a week
<li>there is a land tax as owning an island, etc is rental on the server
<li>you can pay real $'s into game to get Linden's.
<li>infinte inventory
<li>there are teleporters
<li>your character can fly</ul>
<li>zones
<ul>
<li>there are zoned areas
<li>some are PG
<li>some are ADULT THEMED
<li>some are team-oriented parent and child areas
<li>big furry presence (the furnation server is huge before it got whacked)
<li>sandboxes are cleaned up every 24-hours
<li>no permadeath, but there are areas you can 'take damage'
<li>many, many zones (100s)</ul>
<li>etc
<ul>
<li>there are police
<li>warnings issued
<li>account suspend (7-14 days, etc) for
<ul>
<li>assualt
<li>pyramid schemes
<li>zone decency violations
<li>chain letters
<li>other ToS violations - AFAIK
<li>can't steal stuff at this point</ul>
<li>bandwidth and CPU/GPU performance greatly impact the game
<ul>
<li>with a LOT of overclocking, some people report 30 fps
<li>caching
<li>there is a limit to the number of primitives available per land you own</ul>
<li>building things is very big in 2nd life.
<ul>
<li>homes
<li>map visible art
<li>vendable avatars
<li>compleat scripting languate (physics knowledge helpful)</ul>
<li>made by Linden Labs (their avatars have a Linden surname)
<li>starts are on the main page (e.g. 5,000 people on)
<li>lots of map features</ul>
<li>Linux support
<ul>
<li>is native
<li>ALPHA release client
<li>requires some tweaks and has some rather nasty bugs.<br />
( e.g. Linux mutants: old clients forced face color = hair color)</p>
<li>dedicated forum http://....
<li>auto-updater doesn't work, have to manually update.
<li>no sound</ul>
<ul>
Advanced Topic: ClamAV + postfix</p>
<ul>
<li>Postfix
<ul>
<li>
http://www.postfix.org - all the documentation
<li>and MTA like courier, sendmail, etc.
<li>less bugs than sendmail
<li>sendmail designed to deal with frequent changes to SMTP standards
<li>some baggage, but YAMTA (Yet-another-MTA)
<li>becoming default on Debian based distros</ul>
<li>default config
<ul>
<li>normal installations come with an example configuration
<li>the demo laptop didn't. Oh well, off to /etc/postfix<br />
(creativity in placing configs is bad, IMHO) and get main.cf from<br />
/usr/share/postfix</p>
<li>really small default config, but defatuls to localhost.localdomain<br />
as email</p>
<li>note that most people write this in /etc/hosts:<br />
127.0.0.1 localhost.localdomain localhost myfancyname</p>
<ul>
<li>means myfancy name is an alias for cannonical localhost.localdomain
<li>no MTA will accept / deliver for the invalid localdomain DNS name.
<li>real servers have fixed IPs or get their hostname in DNS.</ul>
</ul>
<li>main.cf
<ul>
<li>postconf returns ALL the set variavles
<li>postconf myorigin returns the myorigin variable.
<li>once the domainname is fixed, existing UNIX users can get/send mail.
<li>virtual_alias_*
<ul>
<li>no mailboxes, just forwaring
<li>needs MX records, so runs DNS and SMTP's to itself</ul>
<li>virtual_mailbox_*
<ul>
<li>real mailboxes
<li>virtual_mailbox_base = /var/mail/vhosts, for instance (local mail<br />
/var/mail)</p>
<li>mailboxes owned by somebody, be careful of who owns them
<li>can create different mailboxes with different properties</ul>
</ul>
<li>alias
<ul>
<li>put in virtual_alias_maps if no mailbox
<li>put in virtual_mailbox_domains if has mailbox
<li>aliases in virtual map will overlap
<li>you might want 1 map per domain, but if > 15 or so domains, you'll want MySQL</ul>
<li>Notes
<ul>
<li>get UNIX login, get UNIX mailbox
<li>use forwarders, send to other MTAs
<li>IMAP and POP is not the problem of the MTA
<ul>
<li>IMPA, POP = get mail from mailbox, not MTA
<li>SMTP = internet mail, get mail into mailbox, MTA</ul>
<li>simple hash tables
<ul>
<li>so 10,000 users with 2,000,000 messages/day doesn't crawl
<li>support for plain text, sql databases, LDAP, Berkley DB, etc.
<li>hashdb script makes the hash tables for you from your data<br />
2 column text file gets make into file.db (Berkley DB)</p>
<li>postmap hash:/etc/postfix/file rebuilds file's file.db</ul>
<li>probablly installed by the time Ubuntu is installed or just apt-get install<br />
postfix</p>
<li>Listens on localhosts, localnetworks by default. Check with
<ul>
<li>netstat -tln
<li>mynetworks</ul>
<li>DaVinci networks uses Courier in production, so we're not talking security
<li>yes, postfix upposers Courier Maildrop format</ul>
<li>Theory
<ul>
<li>want to not lose mail, so no processing just dumping into queue
<li>queue is a file on the filesystem
<ul>
<li>pickup
<li>qmgr</ul>
<li>mail gets put into the filesystem (queue) by the smtpd program
<li>other programs look at the queue file
<ul>
<li>local delivery
<li>virtual delivery, possibly SMTP back to smtpd
<li>LMTP processor</ul>
<li>1:1 map of sender:recepient, SMTP 1:many
<li>SMTP is Y/N on the whole message and late erroring w/bounces
<li>LMTP for queue-less programs
<li>WMTP (Weird Mail Transport Protocol) agents
<ul>
<li>diddles the queue
<li>per email filtering</ul>
</ul>
<li>ClamAV
<ul>
<li>anti-virus for Linux
<li>apt-get install clamav clamav-docs lha unrar arj unzoo
<li>lha unrar arj unzoo = enable support for examning those compressed files
<li>freshclam and the daemon
<ul>
<li>freshclam defaults to 1/hr updating your virus data files
<li>clamav-data is for non-networked hosts
<li>catching old viruses is not really a priority, want now. now. now.</ul>
<li>clamscan files
<ul>
<li>recursive
<li>use -i to only report infected files
<li>really after plugging into Postfix</ul>
<li>clamdscan
<ul>
<li>relys upon clamd daemon
<li>much faster, but must have /etc/clamd.conf
<li>faster is very important for mail throughput</ul>
</ul>
<li>amavis: the secret ingredient
<ul>
<li>AMaViS -
http://www.amavix.org
<ul>
<li>died on the vine.
<li>Milter took it over, got amaviz-ng
<li>amavisd-new-milter is the interface from postfix and other tools</ul>
<li>before queue implies postfix handing mail DATA off to another program
<li>master.cf
<ul>
<li>-osmtpd_proxy_filter=127.0.0.1:10024
<li>amavis on that 10024
<li>don't want to SWAP: -osmtpd_client_connection_count_limit=10</ul>
<li>amavis connects back on another port with another smtpd instance
<li>very general process, but some ugly architecture.</ul>
<li>local mail will bypass it: mail runs 'fake' sendmail
<li>most (99.99%) people won't be local UNIX users on the box
<li>not ideal, but can be fixed with post-queue or not using mail/mailx</ul>
<li>simple configuration in /etc/amavis.conf
<ul>
<li>could also use spamassin
<li>losts of features, all commented out</ul>
</ul>
<li>clamav in postfix
<ul>
<li>postfix does not support virus scanners
<li>use the MTA model
<ul>
<li>high speed: scan the queue, but you accept for delivery infected
<li>better behaviour: scan on entry, refuse to accept</ul>
<li>before queue or after queue setup with postfix available
<ul>
<li>lots of bursty traffic, big peaks means large amounts of mail
<li>use after queue for large amounts, but bounces are BAD if sender is forged
<li>user before if you can get away with it</ul>
<p>Don't forget to run postmap on your hash files.
</p>