Re: Using deliver from perl
On Tue, 2002-03-26 at 19:18, Scott Russell wrote: Greets. Does anyone have any examples for using cyrus deliver from perl? I'm making a few perl admin scripts and would like to use the deliver exec to directly dump mail into a users mailbox. You could use Net::LMTP instead ?? ( or support both) How to use deliver is mainly in the deliver manpage . Its really easy to use by hand. -- Simon
Re: Using deliver from perl
You could use Net::LMTP instead ?? ( or support both) Can Net::LMTP force a message to be delivered even if the mailbox is over quota? Erm I think so definitely patch it in easily having had a brief look at the LMTP RFC. How to use deliver is mainly in the deliver manpage . Its really easy to use by hand. Yeah, saw the man page. Was getting lmtp socket errors calling it from the command line by hand. I figured I was missing something an example would be enough to set me straight. Dont have one... to hand ( probably permissions on lmtp socket if it is a unix socket) -- Simon Loader
Re: Using deliver from perl
On Tue, Mar 26, 2002 at 08:04:16PM +, simon wrote: On Tue, 2002-03-26 at 19:18, Scott Russell wrote: Greets. Does anyone have any examples for using cyrus deliver from perl? I'm making a few perl admin scripts and would like to use the deliver exec to directly dump mail into a users mailbox. You could use Net::LMTP instead ?? ( or support both) Can Net::LMTP force a message to be delivered even if the mailbox is over quota? How to use deliver is mainly in the deliver manpage . Its really easy to use by hand. Yeah, saw the man page. Was getting lmtp socket errors calling it from the command line by hand. I figured I was missing something an example would be enough to set me straight. -- Regards, Scott Russell ([EMAIL PROTECTED]) Linux Technology Center, System Admin, RHCE. T/L 441-9289 / External 919-543-9289 http://bzimage.raleigh.ibm.com/webcam
Re: Using deliver from perl
Scott Russell wrote: On Tue, Mar 26, 2002 at 08:14:00PM +, simon wrote: You could use Net::LMTP instead ?? ( or support both) Can Net::LMTP force a message to be delivered even if the mailbox is over quota? Erm I think so definitely patch it in easily having had a brief look at the LMTP RFC. That sounds cool. If a patched version of Net::LMTP that supports forced quota delivery exists I would prefer to use it. Let me know where I can download it. I have Net-LMTP-0.02 now and also don't see anything about using Unix Sockets to handle delivery. Yeah, saw the man page. Was getting lmtp socket errors calling it from the command line by hand. I figured I was missing something an example would be enough to set me straight. Dont have one... to hand ( probably permissions on lmtp socket if it is a unix socket) Yeah, that's what I thought too. Then I tried my command as root and got the same lmtp socket error. :) Maybe I'm being stupid about this. What's the easiest way to get a message into the users INBOX by passing any quota restrictions? I thought it would be deliver but it may not be. deliver ken /tmp/test-message works for me when run as the 'cyrus' user. Add the '-q' option to bypass the quota check (adds IGNOREQUOTA keyword to the LMTP RCPT command). Ken -- Kenneth Murchison Oceana Matrix Ltd. Software Engineer 21 Princeton Place 716-662-8973 x26 Orchard Park, NY 14127 --PGP Public Key--http://www.oceana.com/~ken/ksm.pgp