Solved

Manage Incoming mail in Linux mail Server

Posted on 2002-04-18
15
476 Views
Last Modified: 2013-12-16
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.
0
Comment
Question by:mpyw
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
  • 3
  • +4
15 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 6953513
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
 

Expert Comment

by:tallat
ID: 6953641
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
 

Author Comment

by:mpyw
ID: 6962262
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
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 
LVL 51

Expert Comment

by:ahoffmann
ID: 6962450
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
 
LVL 15

Expert Comment

by:samri
ID: 6963129
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
 
LVL 51

Expert Comment

by:ahoffmann
ID: 6964884
> 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
 

Expert Comment

by:aman66
ID: 6967371
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
 

Expert Comment

by:SpideyMod
ID: 8276352
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
 
LVL 51

Expert Comment

by:ahoffmann
ID: 8283329
several usefull suggestions there
0
 

Expert Comment

by:SpideyMod
ID: 8284117
Specific recommendation?
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 8290511
jlevie, ahoffmann, samri (in sequence of arrival)
I'd suggest a 0 points PAQ.
0
 
LVL 15

Expert Comment

by:samri
ID: 8290935
penalty for abandon question.
(pts * number of idle days ) / number of respondent.

:)
0
 
LVL 15

Expert Comment

by:samri
ID: 8290999
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
 

Accepted Solution

by:
SpideyMod earned 0 total points
ID: 8330319
Not enough points to be split that many ways, PAQ'd and points NOT refunded.

SpideyMod
Community Support Moderator @Experts Exchange
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 8333041
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

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question