Solved

Manage Incoming mail in Linux mail Server

Posted on 2002-04-18
15
473 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-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

685 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