<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Setting up maildrop</title>
	<atom:link href="http://switch.richard5.net/isp-in-a-box-v2/setting-up-maildrop/feed/" rel="self" type="application/rss+xml" />
	<link>http://switch.richard5.net</link>
	<description>How to build your Mac into a internet server using open source software</description>
	<lastBuildDate>Tue, 17 Jun 2008 18:25:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Richard5</title>
		<link>http://switch.richard5.net/isp-in-a-box-v2/setting-up-maildrop/comment-page-1/#comment-43947</link>
		<dc:creator>Richard5</dc:creator>
		<pubDate>Sat, 13 Oct 2007 20:26:45 +0000</pubDate>
		<guid isPermaLink="false">http://switch.richard5.net/isp-in-a-box-v2/setting-up-maildrop/#comment-43947</guid>
		<description>@Dennis, No there is no need for a real password. This is not a security risk as there is also no shell access defined for that user.

You could set the GID to 102, it would be neater but it doesn&#039;t really matter. I will correct it later !

Thanks.</description>
		<content:encoded><![CDATA[<p>@Dennis, No there is no need for a real password. This is not a security risk as there is also no shell access defined for that user.</p>
<p>You could set the GID to 102, it would be neater but it doesn&#8217;t really matter. I will correct it later !</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dennis</title>
		<link>http://switch.richard5.net/isp-in-a-box-v2/setting-up-maildrop/comment-page-1/#comment-43945</link>
		<dc:creator>Dennis</dc:creator>
		<pubDate>Sat, 13 Oct 2007 20:13:02 +0000</pubDate>
		<guid isPermaLink="false">http://switch.richard5.net/isp-in-a-box-v2/setting-up-maildrop/#comment-43945</guid>
		<description>Silly question perhaps but should the * be replaced with an actual password? Also should --enable-maildrop-gid=27 be 102?

sudo niutil -createprop / /users/vmail passwd &quot;*&quot;</description>
		<content:encoded><![CDATA[<p>Silly question perhaps but should the * be replaced with an actual password? Also should &#8211;enable-maildrop-gid=27 be 102?</p>
<p>sudo niutil -createprop / /users/vmail passwd &#8220;*&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard5</title>
		<link>http://switch.richard5.net/isp-in-a-box-v2/setting-up-maildrop/comment-page-1/#comment-36772</link>
		<dc:creator>Richard5</dc:creator>
		<pubDate>Mon, 20 Aug 2007 11:55:41 +0000</pubDate>
		<guid isPermaLink="false">http://switch.richard5.net/isp-in-a-box-v2/setting-up-maildrop/#comment-36772</guid>
		<description>Maildrop does not create maildir&#039;s you will need to add the creation of maildir&#039;s to your script to get this working. Maildrop in your current setup only works with existing maildirs.</description>
		<content:encoded><![CDATA[<p>Maildrop does not create maildir&#8217;s you will need to add the creation of maildir&#8217;s to your script to get this working. Maildrop in your current setup only works with existing maildirs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: agnello</title>
		<link>http://switch.richard5.net/isp-in-a-box-v2/setting-up-maildrop/comment-page-1/#comment-36767</link>
		<dc:creator>agnello</dc:creator>
		<pubDate>Mon, 20 Aug 2007 10:48:58 +0000</pubDate>
		<guid isPermaLink="false">http://switch.richard5.net/isp-in-a-box-v2/setting-up-maildrop/#comment-36767</guid>
		<description>HI
I have configured a mail server to use a maildrop as the MDA to deliver mails.

my /etc/maildroprc file looks like this
###############################################
#
EXTENSION=&quot;$1&quot;
user=&quot;5&quot;
domain=&quot;$6&quot;
MAILHOME=&quot;/home/vmail/&quot;
DEFAULT=&quot;$MAILHOME/$domain/$user/Maildir&quot;

if (/^X-SPAM: Spam*/)
{
 to &quot;$MAILHOME/$domain/$user/Maildir/Junk&quot;
}
else
{
 to &quot;$MAILHOME/$domain/$user/Maildir&quot;

###############################################

When i try to send create mail box using postfixadmin there is no
error but the Maildir is created in /home/vmail  instead of
/home/vamil/domain.com/user1/

(here is the logs) 
################################################
Aug 17 14:02:19 server3 clamd.amavisd[2152]: Database correctly
reloaded (94464 viruses)
Aug 17 14:17:00 server3 postfix/qmgr[6233]: 34FE237221:
from=, size=421, nrcpt=1 (queue active)
Aug 17 14:17:00 server3 postfix/qmgr[6233]: B1B1137154:
from=, size=421, nrcpt=1 (queue active)
Aug 17 14:17:00 server3 postfix/qmgr[6233]: 7617637155:
from=, size=421, nrcpt=1 (queue active)
Aug 17 14:17:00 server3 postfix/pipe[6401]: 34FE237221:
to=, relay=maildrop, delay=1087, status=sent
(newwork.asia)
Aug 17 14:17:00 server3 postfix/qmgr[6233]: 34FE237221: removed
Aug 17 14:17:00 server3 postfix/pipe[6403]: B1B1137154:
to=, relay=maildrop, delay=1331, status=sent
(newwork.asia)
Aug 17 14:17:00 server3 postfix/qmgr[6233]: B1B1137154: removed
Aug 17 14:17:00 server3 postfix/pipe[6404]: 7617637155:
to=, relay=maildrop, delay=1227, status=sent
(newwork.asia)
Aug 17 14:17:00 server3 postfix/qmgr[6233]: 7617637155: removed

#################################################################
 my /etc/postfix/master.cf file looks like this


#############################################################
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
maildrop  unix  -       n       n       -       -       pipe
 flags=DRhu user=vmail argv=/usr/local/bin/maildrop /etc/maildroprc
-d ${recipient}
#
################################################################

could some onel pls help me as to why maildrop is not creating the
maildir in the right location .



--
Warm Regards

Agnello . G .Dsouza</description>
		<content:encoded><![CDATA[<p>HI<br />
I have configured a mail server to use a maildrop as the MDA to deliver mails.</p>
<p>my /etc/maildroprc file looks like this<br />
###############################################<br />
#<br />
EXTENSION=&#8221;$1&#8243;<br />
user=&#8221;5&#8243;<br />
domain=&#8221;$6&#8243;<br />
MAILHOME=&#8221;/home/vmail/&#8221;<br />
DEFAULT=&#8221;$MAILHOME/$domain/$user/Maildir&#8221;</p>
<p>if (/^X-SPAM: Spam*/)<br />
{<br />
 to &#8220;$MAILHOME/$domain/$user/Maildir/Junk&#8221;<br />
}<br />
else<br />
{<br />
 to &#8220;$MAILHOME/$domain/$user/Maildir&#8221;</p>
<p>###############################################</p>
<p>When i try to send create mail box using postfixadmin there is no<br />
error but the Maildir is created in /home/vmail  instead of<br />
/home/vamil/domain.com/user1/</p>
<p>(here is the logs)<br />
################################################<br />
Aug 17 14:02:19 server3 clamd.amavisd[2152]: Database correctly<br />
reloaded (94464 viruses)<br />
Aug 17 14:17:00 server3 postfix/qmgr[6233]: 34FE237221:<br />
from=, size=421, nrcpt=1 (queue active)<br />
Aug 17 14:17:00 server3 postfix/qmgr[6233]: B1B1137154:<br />
from=, size=421, nrcpt=1 (queue active)<br />
Aug 17 14:17:00 server3 postfix/qmgr[6233]: 7617637155:<br />
from=, size=421, nrcpt=1 (queue active)<br />
Aug 17 14:17:00 server3 postfix/pipe[6401]: 34FE237221:<br />
to=, relay=maildrop, delay=1087, status=sent<br />
(newwork.asia)<br />
Aug 17 14:17:00 server3 postfix/qmgr[6233]: 34FE237221: removed<br />
Aug 17 14:17:00 server3 postfix/pipe[6403]: B1B1137154:<br />
to=, relay=maildrop, delay=1331, status=sent<br />
(newwork.asia)<br />
Aug 17 14:17:00 server3 postfix/qmgr[6233]: B1B1137154: removed<br />
Aug 17 14:17:00 server3 postfix/pipe[6404]: 7617637155:<br />
to=, relay=maildrop, delay=1227, status=sent<br />
(newwork.asia)<br />
Aug 17 14:17:00 server3 postfix/qmgr[6233]: 7617637155: removed</p>
<p>#################################################################<br />
 my /etc/postfix/master.cf file looks like this</p>
<p>#############################################################<br />
# maildrop. See the Postfix MAILDROP_README file for details.<br />
# Also specify in main.cf: maildrop_destination_recipient_limit=1<br />
maildrop  unix  &#8211;       n       n       &#8211;       &#8211;       pipe<br />
 flags=DRhu user=vmail argv=/usr/local/bin/maildrop /etc/maildroprc<br />
-d ${recipient}<br />
#<br />
################################################################</p>
<p>could some onel pls help me as to why maildrop is not creating the<br />
maildir in the right location .</p>
<p>&#8211;<br />
Warm Regards</p>
<p>Agnello . G .Dsouza</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://switch.richard5.net/isp-in-a-box-v2/setting-up-maildrop/comment-page-1/#comment-31697</link>
		<dc:creator>James</dc:creator>
		<pubDate>Mon, 02 Jul 2007 07:57:09 +0000</pubDate>
		<guid isPermaLink="false">http://switch.richard5.net/isp-in-a-box-v2/setting-up-maildrop/#comment-31697</guid>
		<description>Set things up as per docs, but I get:

Jul  2 17:49:34 mail-bordo-com-au postfix/qmgr[487]: 652C6A54432: removed
Jul  2 17:49:46 mail-bordo-com-au postfix/qmgr[487]: warning: connect to transport maildrop: Connection refused
Jul  2 17:49:56 mail-bordo-com-au authdaemond: stopping authdaemond children
Jul  2 17:49:57 mail-bordo-com-au pop3d: Connection, ip=[::ffff:58.170.149.36]

Authdaemond is running.

Also get:

Jul  2 17:56:03 mail-bordo-com-au imapd-ssl: Failed to create cache file: maildirwatch (peter.psarros@bordo.com.au)
Jul  2 17:56:03 mail-bordo-com-au imapd-ssl: Error: Permission denied

Don&#039;t know what I&#039;ve done. Any ideas?

Thanks, James.</description>
		<content:encoded><![CDATA[<p>Set things up as per docs, but I get:</p>
<p>Jul  2 17:49:34 mail-bordo-com-au postfix/qmgr[487]: 652C6A54432: removed<br />
Jul  2 17:49:46 mail-bordo-com-au postfix/qmgr[487]: warning: connect to transport maildrop: Connection refused<br />
Jul  2 17:49:56 mail-bordo-com-au authdaemond: stopping authdaemond children<br />
Jul  2 17:49:57 mail-bordo-com-au pop3d: Connection, ip=[::ffff:58.170.149.36]</p>
<p>Authdaemond is running.</p>
<p>Also get:</p>
<p>Jul  2 17:56:03 mail-bordo-com-au imapd-ssl: Failed to create cache file: maildirwatch (peter.psarros@bordo.com.au)<br />
Jul  2 17:56:03 mail-bordo-com-au imapd-ssl: Error: Permission denied</p>
<p>Don&#8217;t know what I&#8217;ve done. Any ideas?</p>
<p>Thanks, James.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://switch.richard5.net/isp-in-a-box-v2/setting-up-maildrop/comment-page-1/#comment-17539</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Mon, 19 Feb 2007 20:03:44 +0000</pubDate>
		<guid isPermaLink="false">http://switch.richard5.net/isp-in-a-box-v2/setting-up-maildrop/#comment-17539</guid>
		<description>New insight viz. #1:

Put 

VERBOSE=&quot;5&quot; 

in your mailfilter and look in awe at /var/log/mail.info whenever your maildrop goes aboogie :)

(it might help, but still..)

And: If you&#039;re looking at making a per user setup, try something like this (works for me):

`test -f $MAILHOME/mailfilters/${USER}@${HOST}`
if ( $RETURNCODE == 0 )
{
  #log &quot; == User $USER has own mailfilter, including $MAILHOME/mailfilters/${USER}@${HOST} ...&quot;
  include &quot;$MAILHOME/mailfilters/${USER}@${HOST}&quot;
}

near the end but don&#039;t forget a 

to &quot;$MAILHOME/$HOST/$USER/&quot;

after that.

This assumes all individualized mailfilters in $MAILHOME/mailfilters/user@domain.tld ...
(again: doesn&#039;t work if shell is bin/false, at least on this end of things)

Cheers
Chris</description>
		<content:encoded><![CDATA[<p>New insight viz. #1:</p>
<p>Put </p>
<p>VERBOSE=&#8221;5&#8243; </p>
<p>in your mailfilter and look in awe at /var/log/mail.info whenever your maildrop goes aboogie <img src='http://switch.richard5.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>(it might help, but still..)</p>
<p>And: If you&#8217;re looking at making a per user setup, try something like this (works for me):</p>
<p>`test -f $MAILHOME/mailfilters/${USER}@${HOST}`<br />
if ( $RETURNCODE == 0 )<br />
{<br />
  #log &#8221; == User $USER has own mailfilter, including $MAILHOME/mailfilters/${USER}@${HOST} &#8230;&#8221;<br />
  include &#8220;$MAILHOME/mailfilters/${USER}@${HOST}&#8221;<br />
}</p>
<p>near the end but don&#8217;t forget a </p>
<p>to &#8220;$MAILHOME/$HOST/$USER/&#8221;</p>
<p>after that.</p>
<p>This assumes all individualized mailfilters in $MAILHOME/mailfilters/user@domain.tld &#8230;<br />
(again: doesn&#8217;t work if shell is bin/false, at least on this end of things)</p>
<p>Cheers<br />
Chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard5</title>
		<link>http://switch.richard5.net/isp-in-a-box-v2/setting-up-maildrop/comment-page-1/#comment-17535</link>
		<dc:creator>Richard5</dc:creator>
		<pubDate>Mon, 19 Feb 2007 19:36:39 +0000</pubDate>
		<guid isPermaLink="false">http://switch.richard5.net/isp-in-a-box-v2/setting-up-maildrop/#comment-17535</guid>
		<description>I agree on the first, it&#039;s a dog.. The second explains why didn&#039;t get it working, thanks for that. I haven&#039;t tried the 3rd but will give it a go later on. I hope someone else will give us some insights on the security angle.</description>
		<content:encoded><![CDATA[<p>I agree on the first, it&#8217;s a dog.. The second explains why didn&#8217;t get it working, thanks for that. I haven&#8217;t tried the 3rd but will give it a go later on. I hope someone else will give us some insights on the security angle.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://switch.richard5.net/isp-in-a-box-v2/setting-up-maildrop/comment-page-1/#comment-17530</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Mon, 19 Feb 2007 17:28:45 +0000</pubDate>
		<guid isPermaLink="false">http://switch.richard5.net/isp-in-a-box-v2/setting-up-maildrop/#comment-17530</guid>
		<description>Thanks for this.

Btw: I just figured out why my setup didn&#039;t work (meaning: mailfilter not working). 

First of all, mailfilter&#039;s a pain to debug. 
2ndly: the logfile arg does take a full path (e.g. /var/log/maildrop.info otl) and writes to it if its owned by e.g. vmail&#124;virtual&#124;whatever your vuser is called. Which is great.

3rdly (and what took me hours to figure out): if you follow this guide and others on the net, you have wisely given let&#039;s say vmail the /bin/false shell. However, if you decide to e.g 

`test -d $DEFAULT`
if ( $RETUNRCODE != 0) { # do something }

this ends up always being called since test cannot return TRUE!

My solution was to put 

SHELL=&quot;/bin/sh&quot; # or what flavour have you

on top of the global mailfilterrc.

I don&#039;t know if this opens up a whole bunch of security issues, though. Any insights on this?

Thought I&#039;d share this..
Thx
Chris</description>
		<content:encoded><![CDATA[<p>Thanks for this.</p>
<p>Btw: I just figured out why my setup didn&#8217;t work (meaning: mailfilter not working). </p>
<p>First of all, mailfilter&#8217;s a pain to debug.<br />
2ndly: the logfile arg does take a full path (e.g. /var/log/maildrop.info otl) and writes to it if its owned by e.g. vmail|virtual|whatever your vuser is called. Which is great.</p>
<p>3rdly (and what took me hours to figure out): if you follow this guide and others on the net, you have wisely given let&#8217;s say vmail the /bin/false shell. However, if you decide to e.g </p>
<p>`test -d $DEFAULT`<br />
if ( $RETUNRCODE != 0) { # do something }</p>
<p>this ends up always being called since test cannot return TRUE!</p>
<p>My solution was to put </p>
<p>SHELL=&#8221;/bin/sh&#8221; # or what flavour have you</p>
<p>on top of the global mailfilterrc.</p>
<p>I don&#8217;t know if this opens up a whole bunch of security issues, though. Any insights on this?</p>
<p>Thought I&#8217;d share this..<br />
Thx<br />
Chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://switch.richard5.net/isp-in-a-box-v2/setting-up-maildrop/comment-page-1/#comment-8625</link>
		<dc:creator>James</dc:creator>
		<pubDate>Mon, 04 Dec 2006 23:42:37 +0000</pubDate>
		<guid isPermaLink="false">http://switch.richard5.net/isp-in-a-box-v2/setting-up-maildrop/#comment-8625</guid>
		<description>OK. I look forward to do your docs when you figure it out!

For some reason the changes that I started to make stopped me being able to retrieve my mail. Don&#039;t know why it would say user unknown. Anyway, all seems to be OK now.</description>
		<content:encoded><![CDATA[<p>OK. I look forward to do your docs when you figure it out!</p>
<p>For some reason the changes that I started to make stopped me being able to retrieve my mail. Don&#8217;t know why it would say user unknown. Anyway, all seems to be OK now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard5</title>
		<link>http://switch.richard5.net/isp-in-a-box-v2/setting-up-maildrop/comment-page-1/#comment-8591</link>
		<dc:creator>Richard5</dc:creator>
		<pubDate>Mon, 04 Dec 2006 12:14:59 +0000</pubDate>
		<guid isPermaLink="false">http://switch.richard5.net/isp-in-a-box-v2/setting-up-maildrop/#comment-8591</guid>
		<description>No don&#039;t do this or you will receive everyone&#039;s mail. I&#039;m looking into a per user setup but haven&#039;t quite found out how to do this in an easy way.

PS your mail is being bounced, user unknown !</description>
		<content:encoded><![CDATA[<p>No don&#8217;t do this or you will receive everyone&#8217;s mail. I&#8217;m looking into a per user setup but haven&#8217;t quite found out how to do this in an easy way.</p>
<p>PS your mail is being bounced, user unknown !</p>
]]></content:encoded>
	</item>
</channel>
</rss>

