Manage Incoming mail in Linux mail Server

How do I delete some of the incoming mail into the Linux server? the mail seems like hanging there if wanna download to Outlook express.
mpywAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
SpideyModConnect With a Mentor Commented:
Not enough points to be split that many ways, PAQ'd and points NOT refunded.

SpideyMod
Community Support Moderator @Experts Exchange
0
 
jlevieCommented:
I'm not sure what your problem is. Are you saying that you are having trouble retrieving some of the mail with outlook? Or are you saying that you can't retrieve any of the mail with outlook?

The former case might imply a problem with a particular message. Perhaps one that contains data in a form that outlook can't handle. This seldom happens with the current version of outlook, but older versions can be a problem.

The later case might imply that your Linux box isn't set up to allow remote access to email. For outlook to be able to retrieve email you must have a POP or IMAP service installed. The most common one, which is included in Linux distributions, is the Univ. of Washington IMAP implementation. It's generally named imapd.
0
 
tallatCommented:
well if u want to delete the mail from server than its very easy way to delete just do in \var\mail folder than what ever u want to delete just delete the mail from there cause this is the specified path to delete the mails from the server
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
mpywAuthor Commented:
I am using multiple accounts, delete from the \var\mail will delete the whole folder and not individual massage, I wanted to delete only some of the massage in the server but not all.
0
 
ahoffmannCommented:
if your mail server places all (incomming) mails in the user's mailbox /var/mail/.... then there is no other way than editing the file in question.
0
 
samriCommented:
addition to ahoffmann's comment:
Yes, you can just edit the mailbox search for the respective mail, and delete the entire line starting from "From" header, towards the next "From" header.  Be extra careful, or you might "jumble-up" your mailbox.  Make sure the exact format would be like:
-------------------------
From sender@blahblah.com Fri Dec 12 08:11:44 2001
Received: (from...
Date: ..
From:

mesages
.
lastline

From anothersender@....
.
.
-----------
Just delete all lines starting from "From sender@blahblah" to "lastline", and leave a blank line before the "From anothersender@". Do not get confused with "From" and "From:".

The other option is to grab yourself a copy of Webmin (http://www.webmin.com/webmin/). It's a full Web based system admnis tool for Unix/Linux.  Once it is installed (by  default it will listen to port 10000), use you favorite web browser and connect to the server.   Choose on "Server" applets, pick "sendmail" and go to "user mailboxes".  You will be presented with a "web-mail" look of you malboxes.  Selectd the desired mail, and delete it.  This solutions may sounds complicated, but you can do a lot more than "deleting mail".  Grab a copy, and explore.

cheers.
0
 
ahoffmannCommented:
> Yes, you can just edit the mailbox ..

Argh, please don't do it as long as the mail server is running, otherwise you might get corrupted mailbox files.
0
 
aman66Commented:
You can telnet to your server, and delete email manual.
try command as below:

1)telnet 111.222.333.444 110
2)user aman
3)pass 123456
4)list
5)top 2 10
6)dele 2
7)quit


explain:
1)telnet to your email server port 110
2)aman is my email account
3)123456 is my email password
4)list all email
5)shows 2th email top 10 line(include mail header and mail body)
6)delete 2th email
7)quit








http://linuxnews.idv.tw/
http://forum.linuxnews.idv.tw/
0
 
SpideyModCommented:
All,
I am unlocking this question in preparation for cleanup.  I will return in 7 days to finalize this question.  Please leave any recommendations for the final state of this question, I will take all recommendations into consideration.  Failing any feedback, I may decide in 7 days to delete or PAQ this question with no refund.  Thanks.

SpideyMod
Community Support Moderator @Experts Exchange
0
 
ahoffmannCommented:
several usefull suggestions there
0
 
SpideyModCommented:
Specific recommendation?
0
 
ahoffmannCommented:
jlevie, ahoffmann, samri (in sequence of arrival)
I'd suggest a 0 points PAQ.
0
 
samriCommented:
penalty for abandon question.
(pts * number of idle days ) / number of respondent.

:)
0
 
samriCommented:
jlevie : tend to seek more detail, hoping to seek better alternative

ahoffmann: initial comment seems to narrow down to editing mbox file.

samri: elaborating on the editing mbox file approach.

ahoffman: ensuring that (samri's) elaboration is done correctly to minimize mbox corruption.

amann: kinda good approach to connect via POP service to delete the mail.

SpidayMod - pts split?  

Wait... what about using Webmin??  It shoud be possible (again another options).
0
 
ahoffmannCommented:
hehe, that's how EE works, aehm should work.
If someone gets the dangling open questions to a state with (general) accepted solution ...

Well done, SpideyMod ;-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.