[03:51] <Derander> Does anyone here understand postfix?
[04:06] <hads> Some
[04:08] <Derander> erp, sorry - missed your response until now
[04:08] <Derander>  I figured it out, hopefully :_)
[04:33] <ScottK2> lamont: Are you around and at least slightly available to talk about Bug #247332?
[05:04] <schone> hey all
[05:04] <schone> i was wanting to build a file server for my home network and was wondering is there much difference between using ubuntu server or desktop client?
[05:04] <ScottK2> Ubuntu Server is only command line.
[05:05] <ScottK2> It has a kernel optimized for server use.  For a home file server, that's unlikely to matter much.
[05:05] <schone> so desktop is pretty much server with a gui
[05:05] <ScottK2> The core of the each is common.
[05:06] <schone> ah ok , I also wanted to setup a mysql/php , ror envioroment for testing and development
[05:06] <ScottK2> You can do that on your desktop no problem.
[05:06] <schone> sweet probably stick with the desktop
[05:06] <ScottK2> For learning how to manage servers though, you'll want to learn the command line stuff though.
[05:06] <ScottK2> It really helps you understand your system better.
[05:06] <schone> ah ok
[05:07] <schone> is there any prepackaged home server software (alternatives to windows home server?)
[05:07] <ScottK2> You can do that on your desktop, just use the CLI stuff too.
[05:07] <schone> cool
[05:08]  * ScottK2 has never seen Windows Home Server, so has no idea what would be alternative to it.
[05:08] <schone> ah ok cool
[05:09] <ScottK2> For server GUI like things, the recommended approach if you want one is ebox.
[05:09] <ScottK2> !ebox | schone
[05:11] <Derander> Does anyone have any experience setting up postfix? I'm trying to get postfix, courier and sasl working, but I keep getting 'SASL LOGIN authentication failure: password verification failed" when I attempt to send a message.
[05:11] <schone> nice! thanks scottk2
[05:12] <ScottK2> Derander: Do you have Postfix working without SASL?
[05:12] <Derander> I think so
[05:12] <ScottK2> i.e. if you put an IP address in mynetworks, can you send mail out?
[05:12] <Derander> if I telnet to port 25 then I can send messages out
[05:12] <ScottK2> OK
[05:13] <ScottK2> Are you trying to set up cyrus-sasl or dovecot?
[05:13] <Derander> erm, I'll figure that out.  one moment please
[05:14] <ScottK2> !server-guide
[05:14] <ScottK2> !serverguide
[05:14] <ScottK2> Urgh.
[05:14] <hads> It's in the topic
[05:14] <ScottK2> Sure enough
[05:14] <Derander> libsasl2-2 libsasl2-modules libsasl2-modules-sql sasl2-bin << the packages that I installed dealing with sasl
[05:14] <ScottK2> That's cyrus.
[05:14] <Derander> I thought so
[05:14] <Derander> (I'm following http://www.howtoforge.org/virtual-users-domains-postfix-courier-mysql-squirrelmail-ubuntu8.04)
[05:14] <ScottK2> oK.
[05:15] <ScottK2> Are you open to another approach?
[05:15] <Derander> sure, why not?
[05:15] <Derander> I just want a mail server ;-)
[05:16] <ScottK2> Use Postfix and Dovecot and follow https://help.ubuntu.com/8.04/serverguide/C/email-services.html
[05:16] <Derander> Will do
[05:16] <hads> Dovecot SASL is fairly straight forward. I haven't played with cyrus for ages.
[05:16] <ScottK2> Those are the ones that are the most supported here.
[05:16] <ScottK2> Yes.  Dovecot is supposed to be dead easy.
[05:16]  * ScottK2 still uses cyrus, but has a working configuration to copy from ...
[05:16] <Derander> just dovecot and postfix, or the other things there too?
[05:18] <ScottK2> You need at least 3 bits: Postfix, sasl (Dovecot), and a mail delivery agent (Dovecot instead of courier).
[05:18] <Derander> Cool.
[05:18] <ScottK2> Do you really need squirrelmail nand mysql?
[05:18] <ScottK2> You'll want some spam filtering too.
[05:18] <ScottK2> Look at amavisd-new with spamasssassin and clamav.
[05:19] <Derander> I don't want squirrelmail, mysql doesn't hurt.
[05:19] <Derander> Yeah, somehow I was getting spamassassin/clamav/amavisd-new in there too
[05:19] <ScottK2> https://help.ubuntu.com/8.04/serverguide/C/mail-filtering.html covers that.
[05:19] <hads> I'd start with greylisting (postgrey) and spamhaus lookups, you'd be suprised how much that stops and it's dead easy.
[05:19] <ScottK2> For a small domain mysql is way overkill
[05:19] <ScottK2> Agreed.
[05:20] <Derander> Yeah, there will only be 3 users on this domain ;-)
[05:20] <hads> Agree, you then have to factor in mysql being up to receive mail.
[05:20] <ScottK2> Yep.
[05:20] <hads> I'd just use a passwd-like file for dovecot.
[05:21] <hads> You could use system users although I prefer virtual myself.
[05:21] <Derander> I would like to use virtual.
[05:22] <hads> Well I just setup a new hardy VM with postfix/dovecot yesterday to replace my current home server so if you get stuck I should be able to help.
[05:22] <Derander> Okay, I'm stuck!
[05:22] <Derander> What should I put in mynetworks?
[05:23] <ScottK2> Leave it be unless you want to allow people to send mail based on IP address alone.
[05:23] <hads> It should by default have something like 127.0.0.0/8 etc.
[05:23] <Derander> Okay,
[05:23] <hads> Which is fine.
[05:23] <ScottK2> The other stuff is for IPv6 and is harmless.
[05:23] <Derander> Okay :-)
[05:24] <Derander> Oh lord
[05:24] <Derander> All of the configuration files from my previous three attempts are still around
[05:24] <Derander> I attempted deleting them once and borked aptitude
[05:25] <Derander> Ah, figured it out.
[05:26] <Derander> Man, setting up a mail server has been a massive undertaking - I set up apache/ruby/php/mysql/rails in 10 minutes..
[05:26] <Derander> this has bee 12 hours
[05:28] <ScottK2> The first one is really hard.
[05:28] <Derander> I've noticed :-(
[05:28] <ScottK2> I can go from parts in boxes to a running server in 3 or 4 hours including testing.
[05:29] <Derander> Yeah, I'm only a hobbyist sys-admin
[05:29]  * ScottK2 actually had to do that once when a box died during a maintenance outage.
[05:29] <Derander> so this is my first shot doing it myself
[05:29] <Derander> Hah :-)
[05:29]  * ScottK2 is primarliy a consultant, but runs some small services.
[05:29] <Derander> I work as a programmer :-)
[05:30]  * hads is a jack of all
[05:30] <Derander> Hee
[05:31] <Derander> on to SASL
[05:32] <ScottK2> For future reference, don't manually remove config files.
[05:33] <ScottK2> Use the purge option when you remove the package and they'll go away.
[05:33] <ScottK2> Manual removal confuses the packaging system.
[05:33] <Derander> Yeah.
[05:33] <Derander> I figured that out ;-)
[05:33] <ScottK2> OK.
[05:34] <hads> This may help as a sample dovecot.conf; http://paste.pocoo.org/show/79291/
[05:34] <Derander> Will I need that, or is the one that the guide sets me up alright?
[05:34] <hads> You don't need that at all, though it may be useful as a sample to refer to.
[05:35] <hads> I haven't actually read the guide
[05:35] <ScottK2> sommer: You may want to pay attention to this to see how the mail setup stuff in the server guide is working.
[05:35] <Derander> Ah :-)
[05:35]  * hads goes to read the guide
[05:36] <ScottK2> sommer wrote or assembled most of the guide, but is probably sleeping now.
[05:37] <Derander> Cool
[05:38] <Derander> When configuring postfix, I created two certs
[05:38] <Derander> two ssl keys
[05:38] <Derander> er, no I didn't
[05:46] <Derander> It appears to be working
[05:48] <Derander> Or almost, I can't receive messages.
[05:52] <Derander> What format is used for the password file?
[05:53] <Derander> (referencing your paste hads)
[05:58] <hads> Derander: http://wiki.dovecot.org/AuthDatabase/PasswdFile
[06:00] <Derander> If I'm using virtual users, with mail_location = Maildir:/home/vmail/%n/mail, do I need to specify anything other  than user:pass in the passwd file?
[06:01] <Derander> I don't.
[06:14] <Derander> Okay, I'm failing.
[06:15] <Derander> I'm trying to use virtual users
[06:16] <Derander> http://paste.pocoo.org/show/79292/ -- dovecot.conf
[06:22] <hads> You've got pam auth enabled for userdb and passdb
[06:22] <hads> Might want to disable that.
[06:23] <Derander> Yeah, I noticed that and got rid of it a little while ago - I think I might have it now
[06:23] <Derander> my users file was formatted as a password file, I'm making it into a user file
[06:24] <Derander> Bingo
[06:25] <Derander> Bah, dovecot still won't accept messages.
[06:44] <Derander> hads: this is the deal, I'm completely able to send messages, and view my 'sent' folder.
[06:45] <Derander> what I'm NOT able to do is receive messages
[06:45] <Derander> http://paste.pocoo.org/show/79293/ contains all of the information I could think of
[06:46] <Derander> I'm trying to use virtual users.
[06:47] <ScottK2> What do your logs say when a message delivery is attempted?
[06:48] <ScottK2> Derander: ^^^
[06:48] <Derander> one moment
[06:49] <Derander> http://paste.pocoo.org/show/79294/
[06:49] <ScottK2> First rule of mail server troubleshooting is always look in the logs.
[06:49] <Derander> Right
[06:50] <ScottK2> Derander: You want andymo.org mail delivered to this box, right?
[06:50] <Derander> yes
[06:51] <ScottK2> Then that domain needs to be in mydestination in /etc/postfix/main.cf.
[06:51] <ScottK2> Otherwise postfix doesn't know it's to be delivered locally and thinks it's a relay attempt.
[06:51] <Derander> ah.
[06:52] <Derander> well, this time it didn't reject it.
[06:52] <Derander> It does keep redirecting ot to andrew@mail.andymo.org
[06:52] <Derander> when I send to andy
[06:52] <Derander> but I think I know why
[06:53] <Derander> yes, now it is going through
[06:54] <Derander> but I get <andy@andymo.org>: Recipient address rejected: User unknown in local recipient table; from=<derander1324@gmail.com> to=<andy@andymo.org> proto=ESMTP helo=<wf-out-1314.google.com>
[06:54] <ScottK2> Is the domain set up as a virtual domain?
[06:55] <Derander> Nothing is setup beyond what is in the big paste.
[06:55] <Derander> I'm sorry I'm such a bother
[06:56]  * ScottK2 suggests some reading from http://www.google.com/search?q=virtual&sitesearch=www.postfix.org
[06:56]  * ScottK2 needs to get to bed.
[06:56] <Derander> Have a nice sleep :-)
[06:57] <Derander> Looks useful
[10:00] <ctx144k_> hello all, anyone have experiences with kolab2.1/2.2, ldap and ubuntu8.04
[10:00] <ctx144k_> ?
[10:40] <kgoetz> hi all. if i want software raid (mirroring) do i use the lvm option in the installer?
[10:41] <kgoetz> the 'net doesnt seem to be helping me muh yet
[10:46] <_ruben> kgoetz: lvm doesnt give you raid, you need the raid option for that, sw raid often is combined with lvm though (lvm on top of raid)
[10:47] <kgoetz> hm. found a guide on help.ubuntu.com. i'll ry that out
[10:47] <kgoetz> _ruben: i didnt think lvm was used for raid, but i dont see a 'raid' option in the installer
[10:47] <_ruben> kgoetz: it'll show up when you mark a partition as "use for raid"
[10:48] <kgoetz> _ruben: aah. thanks.
[11:08] <erichammond> Depends what kind of RAID you want.  You can use LVM to stripe across two physical disks which is similar to RAID 0.
[11:09] <erichammond> To be clear, that's not mirroring.
[11:09] <hads> mirroring is what kgoetz was after
[11:09] <erichammond> hads: Yes, just being pedantic.
[11:11]  * kgoetz waits for raid to format (i'm expecting the build+format will take some time)
[11:17] <kgoetz> hm. it hasnt taken long
[12:25] <_ruben> kgoetz: building of the raid happens in the background .. you can use it as soon as its recreated, even though it could take hours and hours for it to finish building :)
[12:25] <_ruben> kgoetz: check /proc/mdstat for its status
[12:25] <_ruben> or mdstats
[12:26] <kgoetz> _ruben: looks like it'll take a whil to build - i might sleep on it ;)
[12:30] <_ruben> ;)
[15:56] <Wassasin> Hiya
[16:00] <Wassasin> Can anyone help me with the configuration of my pure-ftp server daemon? I can't force it to accept more then 3 connections as the same user
[16:25] <mrmonday> I've just compiled mysql 5.1.26 from source, to replace my 5.1.25 install, and I can't get mysql to start again - I get "Manager of pid-file quit without updating file." when I try to, any ideas?
[16:28] <ScottK> mrmonday: My idea would be don't compile from source on a Debian/Ubuntu system.  Use the package management system.
[16:28] <mrmonday> why does everyone say this instead of helping me with the problem :S
[16:29] <mrmonday> it worked before when it was compiled form source about a week ago, it's only a new version
[16:30] <ScottK> Why do you think that's not help.  It's  a serious suggestion.
[16:31] <mrmonday> thanks for your suggestion, but I'd rather fix my problem
[16:31] <ScottK> Even when I want to update a package, I update the debian package and build that.  I never install direct from source.
[16:31] <mrmonday> you aren't me though :S
[16:31] <ScottK> Yes, good luck.
[16:32] <ScottK> I will note that I'm not here asking for help getting something to work.  All my stuff is working.  That may or may not be a relevant fact to you.
[16:32] <mrmonday> it isn't, I just want to get my server back online
[16:37] <ScottK> Debian does have an experimental 5.1.25 package.
[16:38] <ScottK> http://packages.qa.debian.org/m/mysql-dfsg-5.1.html
[16:38] <ScottK> Since building from source isn't working for you, you might try building .debs from that and using them.
[16:38] <mrmonday> I had 5.1.25 runing before (compiled from source), which I had no problems with
[16:39] <ScottK> Then you'll probably have more luck on a mysql oriented forum than a Debian/Ubuntu one.
[16:39] <mrmonday> I've just compiled 5.1.26 using the same method, and it doesn't seem to work now
[16:39] <mrmonday> ScottK: they just bash me for using ubuntu when I ask in #mysql
[16:40] <ScottK> You're using Ubuntu, but you don't want to manage packages the Ubuntu way, so I don't know how to help you.
[16:44] <ScottK> Good luck.
[16:44]  * ScottK heads out.
[19:20] <dthacker> I'd like to make my ubuntu squid server do transparent proxy.  I currently have cable modem--->router/fw--->switch----->PC's and servers.   Do I need to move the squid server between the cable modem and the router/fw to force all the traffic through it?
[19:34] <ScottK-laptop> lamont: Ping.
[19:34] <lamont> echo-reply
[19:35] <lamont> I glanced at the script, will look at it more later today, btw
[19:35] <ScottK-laptop> lamont: Great.
[19:35] <ScottK-laptop> If that's generally suitable, it's be easy to replicate into one to do the same for policy servers.
[19:36] <ScottK-laptop> lamont: After the last big round of "Debian/Ubuntu are insane to chroot by default", it was suggested that providing a 'unchroot' script would be a useful compromise.  Thoughts on that?
[19:37] <lamont> sure
[19:37] <lamont> that'd let me close my outstanding debian serious-bug
[19:38] <ScottK-laptop> OK.  If you like the add-filter script, that's about half the work towards chroot/unchroot scripts.
[20:03] <lamont> cool
[20:25] <osmosis> how difficult is it to setup a SMTP server ?
[20:27] <ScottK-laptop> Depends on how much you know about SMTP, your exact requirements, and if you're willing to spend money on a book.
[20:27] <ScottK-laptop> osmosis: ^^
[20:38] <osmosis> ScottK-laptop: sounds like you are saying it is a lot of work.
[20:39] <osmosis> ScottK-laptop: i can't just apt-get install postfix and be done.
[20:39] <ScottK-laptop> No, I'm saying it depends.
[20:39] <ScottK-laptop> Possibly.
[20:39] <ScottK-laptop> The postfix I run on my laptop was installed that way.
[20:39] <ScottK-laptop> The postfix I run on my prodcution mail servers needes some significant configuration and other bits added in.
[20:43] <osmosis> brb
[20:44]  * ScottK-laptop back later.
[20:47] <osmosis> back
[20:47] <osmosis> Are you talking about just the basic postfix configuration, or is there more...like dns settings that need to be done, reverse dns.
[21:23]  * delcoyote hi
[21:47] <nealmcb>  osmosis: your requirements are the main issue, I'd say.  If you want good anti-spam defenses, in my experience it is a pretty significant ongoing hassle, but recently things have gotten better.  If you just want to be able to send occasional emails from a personal domain, and really use another address and server for most mail, it can be pretty easy
[21:49] <osmosis> nealmcb: i just want to be able to send some mail from a php script, and have full control over the headers...which requires using a local server and not a remote smtp server.
[21:53] <jpds> ErikWestrup: Please fix your connection.
[21:53] <ErikWestrup> jpds: Everything is fixed now.
[21:53] <jpds> ErikWestrup: Cheers! :)
[21:54]  * Derander crosses his fingers, c'mon.. work mailserver, work!
[21:54] <ErikWestrup> jpds: I was configuring the proxy in irssi, i'm sorry for the disturbing *quit-messages*
[21:55] <Derander> OMG IT WORKS!
[21:55] <Derander> Oh wait..
[21:55] <Derander> nevermind
[22:35] <__stress___> ﻿I ﻿ accidentally deleted some of my /home/"user" config files and now when I type "sudo any_command" and "tab" the command so that it can be auto-completed it does not complete....otherwise when I just type the comand and tab it, it auto-copletes...what can I do?
[22:38] <Derander> Mine has never done that, so I have no idea :-)
[22:43] <mralphabet> __stress___: sounds like you lost your .bashrc file
[22:43] <mralphabet> create another user, copy theirs
[22:44] <__stress___> I copied .bashrc and .profile from the root changed the permissions and the like...and it's the same way :D
[22:45] <Derander> OMG! I've done it!
[22:45] <Derander> MAIL WORKS!
[22:45]  * Derander dances
[22:45] <Derander> ScottK: If you're still around, thanks for all of your help! Got it working!
[22:46] <Derander> Hads: Thank you too!
[22:47] <hads> Derander: Well done. I just got up :)
[22:47] <Derander> :-)
[22:47] <Derander> Now to turn on spamassassin and all that jazz :_)
[22:48] <Derander> back shortly, putting users online