{"id":12,"date":"2007-02-15T10:30:40","date_gmt":"2007-02-15T14:30:40","guid":{"rendered":"http:\/\/ryepup.unwashedmeme.com\/blog\/2007\/02\/15\/qpsmtpd-forkserver-on-debian\/"},"modified":"2007-02-15T10:30:40","modified_gmt":"2007-02-15T14:30:40","slug":"qpsmtpd-forkserver-on-debian","status":"publish","type":"post","link":"http:\/\/ryepup.unwashedmeme.com\/blog\/2007\/02\/15\/qpsmtpd-forkserver-on-debian\/","title":{"rendered":"qpsmtpd-forkserver on debian"},"content":{"rendered":"<p>I had some problems getting qpsmtpd-forkserver to run on debian.  The punchline: qpsmtpd-forkserver relies on an environment variable called QPSMTPD_CONFIG, which should point to the directory containing your config files. <\/p>\n<pre>$ export QPSMTPD_CONFIG=\/etc\/qpsmtp\r\n$ qpsmtpd-forkserver ...<\/pre>\n<p>Problem solved.<\/p>\n<p>I didn&#8217;t want to run qpsmtpd for its standard usage (wrapping a mail server on the same machine), I just wanted a mail proxy that ran some code whenever any email came in, and then forward the email to a real mail server running on a different machine.  qpsmtpd has a great plugin system, and was the path of least resistance.  However, Debian&#8217;s <a href=\"http:\/\/packages.debian.org\/testing\/mail\/qpsmtpd\">qpsmtpd package<\/a> is setup to wrap another mail server running on the same machine, and its init scripts configure the QPSMTPD_CONFIG variable for you.  This did not help when I tried to start qpsmtpd-forkserver on the command line.  I eventually figured it out by reading through the perl code for qpsmtpd, and then the init script itself.<\/p>\n<p>To add insult to injury, qpsmtpd-forkserver had no way to pass the config on the command line.  <\/p>\n<p>I don&#8217;t know if this behavior is debian-specific, or just an oversight by the qpsmtpd maintainers.<\/p>\n<p>At any rate, I was able to look through the code and figure it out, which is more than I can say for my latest .NET problem.  The solution to that one was to speed my move to a new machine.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I had some problems getting qpsmtpd-forkserver to run on debian. The punchline: qpsmtpd-forkserver relies on an environment variable called QPSMTPD_CONFIG, which should point to the directory containing your config files. $ export QPSMTPD_CONFIG=\/etc\/qpsmtp $ qpsmtpd-forkserver &#8230; Problem solved. I didn&#8217;t want to run qpsmtpd for its standard usage (wrapping a mail server on the same [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,8],"tags":[],"class_list":["post-12","post","type-post","status-publish","format-standard","hentry","category-linux","category-open-source"],"_links":{"self":[{"href":"http:\/\/ryepup.unwashedmeme.com\/blog\/wp-json\/wp\/v2\/posts\/12","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/ryepup.unwashedmeme.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/ryepup.unwashedmeme.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/ryepup.unwashedmeme.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/ryepup.unwashedmeme.com\/blog\/wp-json\/wp\/v2\/comments?post=12"}],"version-history":[{"count":0,"href":"http:\/\/ryepup.unwashedmeme.com\/blog\/wp-json\/wp\/v2\/posts\/12\/revisions"}],"wp:attachment":[{"href":"http:\/\/ryepup.unwashedmeme.com\/blog\/wp-json\/wp\/v2\/media?parent=12"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/ryepup.unwashedmeme.com\/blog\/wp-json\/wp\/v2\/categories?post=12"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/ryepup.unwashedmeme.com\/blog\/wp-json\/wp\/v2\/tags?post=12"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}