LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-30-2004, 05:08 PM   #1
ltcstyle
LQ Newbie
 
Registered: Nov 2004
Location: UK
Distribution: FC3
Posts: 12

Rep: Reputation: 0
Question how MTA works? how do they detect files to send? how do they work for queuing message


hi, I wonder how MTAs work.

when they receive email, MTAs save the email to a files, one for content, one for header.
however, how do they detect new email comes up?

in my imagnation, there some possibles:

1. when they receive email, they give a signal to mailsender thread to delivery the email, then MTA start to find new files in queue directory. finished email delivery, the mailsender thread waiting for next signal.

2. mailsender thread have a loop, they detect the queue directory every 10 seconds, once new files have been detected, mailsender thread start to delivery these emails. then repeat the loop.

another question comes up, if MTAs use another thread to process the delivery, how do they works for queuing?

sorry, I have read Sendmail and QMail 's source code, but I couldn't make sense.

 
Old 11-30-2004, 05:37 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
i don't really nkow what you're expecting as an answer... i'm sure each major smtp implementation will manage it's queues in a different way... some are multithreaded, some aren't.
 
Old 11-30-2004, 05:50 PM   #3
ltcstyle
LQ Newbie
 
Registered: Nov 2004
Location: UK
Distribution: FC3
Posts: 12

Original Poster
Rep: Reputation: 0
in fact, my main question is how MTAs process queuing message!!!
I want to implement a MTA system, but I confused about the message queue
 
  


Reply



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
How do I send emails by PHP on FC3 (and configure the MTA)? murr4y Linux - Newbie 3 09-01-2005 04:20 PM
Send message over console stefaandk Linux - Newbie 4 08-15-2005 07:48 PM
how to send a message to one sys to another. bruse Linux - Networking 4 06-20-2005 03:46 AM
How to use command to send message to others? chinaundead Linux - General 4 05-09-2004 09:09 PM
Send message to window u4113072 Linux - Software 0 10-18-2002 04:17 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:05 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
Open Source Consulting | Domain Registration