?

Log in

No account? Create an account
qpsmtpd -- wow - brad's life — LiveJournal [entries|archive|friends|userinfo]
Brad Fitzpatrick

[ website | bradfitz.com ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

qpsmtpd -- wow [Jan. 31st, 2004|04:29 pm]
Brad Fitzpatrick
[Tags|, ]

Baby, where you been all my life?

Pure-perl SMTP server
http://develooper.com/code/qpsmtpd/

I've been reading the docs and code. So simple and small! By itself it is totally non-functional. All it does by itself is speak proper SMTP, and plugins do the rest.

There are plugins for delivery, DNSRBL, SpamAssassin, you name it.

I can see myself really getting into this.

I fucking hate the ugly mess my personal/family mail system has turned into (mostly because it hardly works) and LiveJournal's mail system is far from ideal.
LinkReply

Comments:
[User Picture]From: ydna
2004-01-31 05:10 pm (UTC)
Doesn't that mean having to use qmail? qmail is great, technically and all, but it bugs the shit out me the way DJB does everything his way. Or can I plug Ask's qpsmtpd into Postfix too (or use it as a DMZ relay or something)? You don't really need to answer any of that. Those are just the things that come to my mind (ah! who's there?!!?).
(Reply) (Thread)
[User Picture]From: brad
2004-01-31 05:14 pm (UTC)

Re:

I think it's just modeled off of qmail's design. It has no dependence on qmail at all, short of it recommending you use the "service/svscan" tools, but that's not even a requirement.
(Reply) (Parent) (Thread)
[User Picture]From: askbjoernhansen
2004-02-03 12:34 am (UTC)

Re: postfix plugin

Peter J Holzer made a plugin to make it work with postfix ...

http://www.mail-archive.com/qpsmtpd@perl.org/msg00502.html

There's also an SMTP backend.

- ask
(Reply) (Parent) (Thread)
[User Picture]From: brad
2004-02-03 09:13 am (UTC)

Re: postfix plugin

Thanks!

I didn't know you were on LiveJournal. I've known of you for ages, ever since I started tinkering around with Perl/Apache/Open Source in like 1994 .... seems your name popped up everywhere.
(Reply) (Parent) (Thread)
[User Picture]From: askbjoernhansen
2004-02-19 02:51 am (UTC)

Re: postfix plugin

Yeah, occasionally on LiveJournal too. For a while I had a script to mirror my MT weblog into LJ, but it broke and I haven't had time to fix it. I really should have just set it up as an RSS feed of course. :-)


- ask

ps. the postfix plugin will be in qpsmtpd CVS in a few minutes. :-)
(Reply) (Parent) (Thread)
[User Picture]From: ydna
2004-02-03 11:44 am (UTC)

Re: postfix plugin

Thanks. That really is flexible stuff.

Bad joke: Ask and ye shall receive.
(Reply) (Parent) (Thread)
[User Picture]From: puppchen
2004-06-18 12:31 pm (UTC)

Re: postfix plugin

I'm working on a backend for Exim also. Slow going, not because of qpsmtpd but because I first have to teach exim to behave exactly like qmail on the inside. :P The actual spooler plugin is pretty short.
(Reply) (Parent) (Thread)
[User Picture]From: scsi
2004-01-31 06:57 pm (UTC)
Ive used this a bunch.

It works great with qmail, but there are a few things you gotta watch out for

1. Spamassassin plugin is broken.. Someone wrote one that invokes spamc instead of using a tcp socket to speak directly with spamd.
2. It works wonderful with a small server, but for anything large, its a memory/proc whore.. I've never ran it with persistant-perl (no deb's).. I tried it on one of my more-busy mail servers, and it was spending more time loading perl modules and running qpsmtp than processing actual mail.

It is intended for qmail, but you can have it pipe the message to whatever mail-queue program you use..

Just my 0.02.. :)
(Reply) (Thread)
[User Picture]From: askbjoernhansen
2004-02-19 02:53 am (UTC)

Re:

It scales well enough for perl.org, php.net and the MySQL list server. :-)

One of the early users wrote that it had rejected several hundred thousand spams in the first day he used it, so that must also be a moderately busy setup.

(but yes, it's much much less efficient than qmail-smtpd)

- ask
(Reply) (Parent) (Thread)
[User Picture]From: puppchen
2004-06-18 12:25 pm (UTC)
I wrote the spamc plugin; it's at http://devin.com/qpsmtpd/spamassassin_spamc if you want it. The spamassassin plugin was broken for a while around SA-2.60, but has been fixed for quite a while. The spamassassin plugin talks directly to the spamd socket and is most vulnerable to interface changes/bugs in SA, but is also the lightest-weight option. spamc is a middle ground that uses the spamc client, slightly slower but not affected by such changes.
(Reply) (Parent) (Thread)
[User Picture]From: taral
2004-02-01 09:43 am (UTC)
I have MTP.py if you want. It speaks [SL]MTP, and hands off to your designated handler...
(Reply) (Thread)
[User Picture]From: brad
2004-02-01 11:14 am (UTC)

Re:

I don't do the Python.
(Reply) (Parent) (Thread)
[User Picture]From: kippie
2004-02-17 07:30 am (UTC)
So, why don't you use CGP (http://www.stalker.com/CommuniGatePro/) as an outgoing mail relay? It can handle millions of accounts with only one server and it can relay millions of mail messages per day on limited resources. AND IT COST $500 for all your needs :)
(Reply) (Thread)
[User Picture]From: brad
2004-02-17 09:32 am (UTC)

Re:

So it's not free -or- Free? No thanks.
(Reply) (Parent) (Thread)
[User Picture]From: kippie
2004-02-17 01:45 pm (UTC)

Re:

When your admins _wasting_ their time while solving your mail system performance problems, is it free -or- Not Free? :)

When you installing a new server just to use it as mail relay, is it free -or- Not Free? :)

When your mail server load growing up to critical values and your paid users send you messages 'where is my comments, that not arrive at my mailbox?', this is free software used as MTA or not? :)

I can't agree with free/open software addiction. It can be effective to pay some money from time to time. Not too often, of course :))

[This is all rhetorical questions of course]
(Reply) (Parent) (Thread)
[User Picture]From: brad
2004-02-17 01:48 pm (UTC)

Re:

Until the day comes CGP can't do something I want it to.

No thanks, I'll drink the open source Kool-Aid. It's done me well, even if it involves more work and stress from time to time.
(Reply) (Parent) (Thread)
[User Picture]From: brad
2004-02-17 01:50 pm (UTC)

Re:

BTW, I do buy proprietary software sometimes, but only when it comes with hardware that it's been tested on.

We've bought F5 BIG-IPs, a NetApp Filer, a G5, etc.
(Reply) (Parent) (Thread)