Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 09-13-2005, 09:40 AM   #1
LQ Newbie
Registered: Feb 2005
Location: pune, India
Distribution: Redhad Linux
Posts: 8

Rep: Reputation: 0
How To Divert Email While Receiving And Sending?

suppose I am using mozilla thunderbird as a Mail User Agent(MUA) or for example take any one, which sends/recieves(smtp/pop3) emails from a particular mail server.

Now i want to write an application, which will receive emails before reaching to MUA, i want to edit that mail and then want to send it to the MUA. simillarly while sending emails from MUA it should come to my application and then my application should send it to the server.
How can i do that?
I found one way. as follows:
step 1: first my application will connect to the two ports on which email works(port 110 and 25).
step 2: i will change the MUA server settings as a localhost, so whenever MUA send anything my application will get the data and it will send it to the server(as i know the ip of server)
step 3: when server sends any thing, my application will receive it and then send to the MUA.

I havn't tried it yet. Is it a efficient way? or is there any other way possible?
The drawback i can see in this is:
The coding is application base and i want is more system base.

waiting for help.


Old 09-13-2005, 10:53 AM   #2
Senior Member
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 63
Postfix has the ability to do some rewriting, and is indeed between your MUA and internet. If your needs are not too complicated, it should do.

Old 09-14-2005, 06:21 AM   #3
LQ Newbie
Registered: Feb 2005
Location: pune, India
Distribution: Redhad Linux
Posts: 8

Original Poster
Rep: Reputation: 0
i want it on the client side and not the server side.

Is is compulsory that every MUA uses the postfix?

and postfix is again at a application level but i want the solution at the system level.

thanks for help


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
How To Divert Email While Receiving And Sending? kiranprashant Linux - Newbie 2 09-13-2005 02:51 PM
having 2 Qmail probs - sending and receiving jaymer Linux - Software 1 06-24-2005 12:11 AM
Sending, receiving through the USB interface The_Nerd Programming 5 02-13-2005 03:49 AM
local email sending/receiving problem htm Linux - Software 2 04-10-2004 12:06 AM
Problem receiving email from email server sharon Linux - Newbie 3 07-11-2003 04:57 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:29 AM.

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