Re: Announcing cyrus-user-map, a local recipient map generator for Postfix

2009-03-10 Thread Stefan Schmidt
Hi Farzad,

On Tuesday 10 March 2009 00:25:42 Farzad FARID wrote:
 Having just deployed a Cyrus Imap server with Postfix, with only
 virtual users and no Unix or LDAP based imap accounts, I needed a way
 to generate a local recipient map for Postfix. This map is used by
 Postfix to identify existing email accounts and correctly reject
 incoming mail received for unknown recipients (as in
 http://www.postfix.org/LOCAL_RECIPIENT_README.html).

 So I wrote a little tool that generates and update this map
 automatically, with the help of cron. You can download the script and
 documentation from my website
 http://www.pragmatic-source.com/en/opensource/source-code/cyrus-user-
map-generate-cyrus-user-map-postfix or from GitHub:
 http://github.com/Farzy/cyrus-user-map

Nice thing, but just out of curiosity, why don't you use postfix' 
recipient verification mechanism?
In smtp_recipient_restrictions add reject_unverified_recipient at a 
reasonable position in these restrictions. Everything else 
automagically happens.

Greetings,

Stefan
-- 
Stefan Schmidt  listrea...@jsj.dyndns.org

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Announcing cyrus-user-map, a local recipient map generator for Postfix

2009-03-10 Thread Stefan Schmidt
On Tuesday 10 March 2009 10:58:36 Farzad FARID wrote:
 Thanks for asking. In the Postfix Address Verification Howto
 (http://www.postfix.org/ADDRESS_VERIFICATION_README.html) it says
 that:
 
: verification process

 This is a very heavyweight process, especially if we have the Cyrus
 database at hand :) So I think that looking up an entry in a hash map
 is much faster and doesn't involve any SMTP/LMTP connection.

Postfix cashes to test result for a configurable time spam, with 
separately definable ranges for positive and negative test results.
It is - after an initial learning period - basically a hash table lookup 
without the hazzles of manually generating the lookup table.

 And if the Postfix relay and the Cyrus database are not on the same
 physical computer, and someone's interested, I can extend my little
 tool to use a network connection to fetch the user database.

Still no problem, as postfix has to deliver the mail sto cyrus somehow, 
either smtp or lmtp. The verification simply works here.

Greetings,

Stefan
-- 
Stefan Schmidt  listrea...@jsj.dyndns.org

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Pop process hangs in the write()

2009-03-02 Thread Stefan Schmidt
Hi,

On Monday 02 March 2009 12:33:43 ram wrote:
 I have problem at a clients end exactly same as described in this

 http://marc.info/?l=info-cyrusm=108967188821511w=2

 A pop process blocks at write() for any mail at random. And they
 start getting pop lock issues

 I have checked with the customer , there is no IDS on their network
 Is there any other way I can debug this issue

I have seen issues with pop3d's locking up some weeks agao while 
maintaining our University's Cyrus IMAPD installation.

It turned out to be caused by the used file system for /var/lib/imap. We 
used reiserfs there - the system itself is a openSUSE 11.1 and has been 
older SUSE-variants before.

After reformatting with xfs, which we have used for the mailbox 
partitions everything went smooth again.

I didi not follow this issue, as the system had to be running without 
flaws in the shortest possible time.

This should be no reiserfs-bashing. I use it frequently without 
problems, but here it broke something.

HTH,

Stefan
-- 
Stefan Schmidt  listrea...@jsj.dyndns.org

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html