Solved

Manage Incoming mail in Linux mail Server

Posted on 2002-04-18
15
468 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
  • 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
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 
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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Suggested Solutions

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

803 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