LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-21-2005, 05:01 AM   #1
madhurtanwani
LQ Newbie
 
Registered: Apr 2005
Posts: 3

Rep: Reputation: 0
QMAIL/MAILDROP/PROCMAIL: obtaining the filename used to deliver the new mails


Hi,

I intend to use qmail(the MTA) along with maildrop/procmail(the MDA) to achieve delivery of incoming mails to "Maildir" format.

I've got a perfect install of qmail and maildrop and they work fine. However, in making the package suitable to my project requirements, I'm facing some problems. They are enlisted below with my efforts on resolving them :

1.> I am trying to figure out a way by which i would come to know the name by which qmail-local delivered a new mail.
Normally, it first writes the mail to a tmp directory and then moves it to the "new" directory in the maildir of the user. What i expect is to somehow find out the name of the file with which qmail-local module created the new mail.
I've found two plausible solutions - use FAM(File Alteration Monitor) to check if new files have been created in the "new" directory OR modify the qmail's qmail-local.c or maildrop's maildir/deliverquota.c to get the filename. The FAM approach seems heavy on the system and _may_ not be scalable to large number of user mail directories.

2.> On lines parallel to 1, the module of qmail which provided pop3 access to the users (qmail-pop3d) reads mails from the "new" directory and then moves the mail to a "cur" directory (after possibly changing the file name). I again expect to obtain the name of the file that was moved (the new name is more important).
It would also be fine if we could be able to _stop_ qmail-pop3d from moving the files from new to cur.
Again, one mechanism here is to modify qmail's qmail-pop3.c file to either _stop_ it from moving the file OR to get the new name of the file.

However, as you might have observed, these methods require changing the code of a stable and safe system. I was looking for methods/addons(patches?) for the modules which could perform this work. I'm trying to find out more about this.

In case, any one of you had a similar experience or could direct me to someone, it would e great!! Any pointer to information would be greatly appreciated!!

Anticipating a resolving reply,
Thanks,
 
Old 09-22-2005, 09:54 AM   #2
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
That, uhhh, an interesting question.

Have you had a look at the Maildir page yet?
 
Old 09-23-2005, 12:54 AM   #3
madhurtanwani
LQ Newbie
 
Registered: Apr 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks, but no thanks - for the link.

If you check out the link, it only explains HOW the unique filenames are generated in a standard maildir implementation, as probably suggested by Dan.
However, if you've understood my question correctly, what i'm looking for is the unique filename itself, that was created by the mail delivery agent when it delivers the mail.

I've found a solution hint and intend to try out "safecat" as the delivery agent which returns the filename with which it stored the new mail.

I'll update this thread with anything else that i have so that other people may atleast have the solution (one i get it) ahead.

Thanks,
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fetchmail+procmail+qmail+popa3d jayakrishnan Linux - Networking 4 11-23-2005 05:01 AM
postfix/procmail doesn't deliver emails! eisman Ubuntu 1 05-18-2005 09:21 AM
Logging mails sent through Qmail ramnath Programming 1 07-23-2004 07:04 AM
qmail not sending mails spank Linux - Software 0 05-21-2004 12:08 PM
maildrop and qmail patch conflict mpk25 Linux - Software 1 04-28-2004 04:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration