[SLE}Deleting a message from mail queue
Hi all, I just started to use Kmail, I had been using evolution, and i left the default outgoing account as sendmail, which i believe can only handle local mail. Because of this oversight there are 2 or 3 messages that were undeliverable and have yet to be returned. I just get a message every so often stating ... "A message that you sent has not yet been delivered to one or more of its recipients after more than 48 hours on the queue on linux.local." is there away to delete these messages from the queue? If so, where is the queue? and how can I delete them? i now they'll go away on their own but i'd like to learn how to get rid of them manually. Thanks -- Franklin Maurer <nebbish@sprynet.com>
* Franklin Maurer (nebbish@sprynet.com) [021204 21:19]: ->Hi all, ->I just started to use Kmail, I had been using evolution, and i left the ->default outgoing account as sendmail, which i believe can only handle local ->mail. ->Because of this oversight there are 2 or 3 messages that were undeliverable ->and have yet to be returned. I just get a message every so often stating ... -> ->"A message that you sent has not yet been delivered to one or more of its ->recipients after more than 48 hours on the queue on linux.local." -> ->is there away to delete these messages from the queue? ->If so, where is the queue? ->and how can I delete them? ->i now they'll go away on their own but i'd like to learn how to get rid of ->them manually. Yes, if you go into /var/spool/mqueue you should see a file that looks like a jumble of letters and numbers. To check that it's the message that's queued just cat the file like this.. cat JF89rskeie9 | more JF89rskeie9 is just an example. It won't be what your message is actually named. Once you see that it's the message that's failing..you can just delete it and sendmail won't bitch at all. -- Ben Rosenberg ---===---===---===--- mailto:ben@whack.org Tell me what you believe.. I tell you what you should see.
On Thursday 05 December 2002 1:22 am, Ben Rosenberg wrote:
->is there away to delete these messages from the queue? ->If so, where is the queue? ->and how can I delete them? ->i now they'll go away on their own but i'd like to learn how to get rid of ->them manually.
Yes, if you go into /var/spool/mqueue you should see a file that looks like a jumble of letters and numbers. To check that it's the message that's queued just cat the file like this..
cat JF89rskeie9 | more
JF89rskeie9 is just an example. It won't be what your message is actually named. Once you see that it's the message that's failing..you can just delete it and sendmail won't bitch at all.
Thanks Ben, But I don't have a mqueue in /var/spool, I'm running 8.1 if that matters. linux:/home/framau # ls /var/spool . atjobs clientmqueue cups locks mail postfix voice .. atspool cron exim lpd nagios uucp wwwoffle there was a clientmqueue which is empty. I'm running a search for *mqueue* and if i find anything I'll try the command you told me about. It just finished, with only /var/spool/clientmqueue 8-{ Franklin -- Franklin Maurer <nebbish@sprynet.com> SuSE 8.1
* Franklin Maurer (nebbish@sprynet.com) [021204 22:51]: ->But I don't have a mqueue in /var/spool, I'm running 8.1 if that matters. -> ->linux:/home/framau # ls /var/spool ->. atjobs clientmqueue cups locks mail postfix voice ->.. atspool cron exim lpd nagios uucp wwwoffle -> -> there was a clientmqueue which is empty. ->I'm running a search for *mqueue* and if i find anything I'll try the command ->you told me about. ->It just finished, with only /var/spool/clientmqueue 8-{ It's not 8.1 that actually makes the difference in this case. It's that you appear to have postfix installed instead of sendmail. Postfix may queue it's mail in a different spot under /var/spool/postfix maybe. Sorry about assuming you were running sendmail..I'm running 8.1 but I chose to use sendmail over postfix since it's what I'm more familiar with and it's what we use at work. Hope you figure it out. Cheers! -- Ben Rosenberg ---===---===---===--- mailto:ben@whack.org Tell me what you believe.. I tell you what you should see.
On Thursday 05 December 2002 2:12 am, Ben Rosenberg wrote:
It's not 8.1 that actually makes the difference in this case. It's that you appear to have postfix installed instead of sendmail. Postfix may queue it's mail in a different spot under /var/spool/postfix maybe. Sorry about assuming you were running sendmail..I'm running 8.1 but I chose to use sendmail over postfix since it's what I'm more familiar with and it's what we use at work.
Hope you figure it out.
Cheers!
Thanks, someone emailed with mailq, but i haven't figured out the right name to enter to delete it. but, if you can humor me, what is the benefit of sendmail over postfix, or the other mail delivery systems. Or is just what you're used to, like it is with shells? Any info or links would be helpful. I have a few O'reilly books but they don't go into great depth about e-mail. -- Franklin Maurer <nebbish@sprynet.com>
On Thu, 5 Dec 2002, Franklin Maurer wrote:
but, if you can humor me, what is the benefit of sendmail over postfix, or the other mail delivery systems. Or is just what you're used to, like it is with shells?
Basically, I would say yes. The best MTA for you is the MTA you know best. (Or the one your local guru knows best.) All MTAs can be secure if they are set up by someone who knows his way around that MTA. Regards Ole
Hi, One advantage with Postfix on SuSE 8.1 is that you can configure it with Yast2-Network-Mail Transfer Agent. Makes it more easy than hacking on the Sendmail configuration file. To delete mails in the Postfix queue do: postsuper -d ALL Jostein On 05.12.02,11:56, Franklin Maurer wrote:
On Thursday 05 December 2002 2:12 am, Ben Rosenberg wrote:
It's not 8.1 that actually makes the difference in this case. It's that you appear to have postfix installed instead of sendmail. Postfix may queue it's mail in a different spot under /var/spool/postfix maybe. Sorry about assuming you were running sendmail..I'm running 8.1 but I chose to use sendmail over postfix since it's what I'm more familiar with and it's what we use at work.
Hope you figure it out.
Cheers!
Thanks, someone emailed with mailq, but i haven't figured out the right name to enter to delete it.
but, if you can humor me, what is the benefit of sendmail over postfix, or the other mail delivery systems. Or is just what you're used to, like it is with shells? Any info or links would be helpful. I have a few O'reilly books but they don't go into great depth about e-mail. -- Franklin Maurer <nebbish@sprynet.com>
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
* jostein.berntsen@sensewave.com (jostein.berntsen@sensewave.com) [021205 13:14]: -> ->Hi, -> ->One advantage with Postfix on SuSE 8.1 is that you can configure it ->with Yast2-Network-Mail Transfer Agent. Makes it more easy than ->hacking on the Sendmail configuration file. -> ->To delete mails in the Postfix queue do: ->postsuper -d ALL That's not really true. YaST2 checks what MTA you have installed and has the ability to write config files for it...as long as it's SuSE supplied. I don't think it does exim or qmail. And one should never hack a .cf file ..it should always be done by editing simple .mc files then running the m4 macros. Editing .cf files hasn't been needed in quite sometime. For me it's just a prefs thing. I use Sendmail at work and I know a bunch of the sendmail developers personally...so it's easier for me. I say choose what you like ...play with a couple different MTA's and choose what suits you best. -- Ben Rosenberg ---===---===---===--- mailto:ben@whack.org Tell me what you believe.. I tell you what you should see.
* Ben Rosenberg <ben@whack.org> [12-05-02 16:28]:
* jostein.berntsen@sensewave.com (jostein.berntsen@sensewave.com) [021205 13:14]: -> ->One advantage with Postfix on SuSE 8.1 is that you can configure it ->with Yast2-Network-Mail Transfer Agent. Makes it more easy than ->hacking on the Sendmail configuration file. -> ->To delete mails in the Postfix queue do: ->postsuper -d ALL
That's not really true. YaST2 checks what MTA you have installed and has the ability to write config files for it...as long as it's SuSE supplied. I don't think it does exim or qmail.
And one should never hack a .cf file ..it should always be done by editing simple .mc files then running the m4 macros. Editing .cf files hasn't been needed in quite sometime.
For me it's just a prefs thing. I use Sendmail at work and I know a bunch of the sendmail developers personally...so it's easier for me. I say choose what you like ...play with a couple different MTA's and choose what suits you best.
Postfix on SuSE does not appear to use .mc files, at least on vers 7.3 and 8.1??? -- Patrick Shanahan Registered Linux User #207535 @ http://counter.li.org icq#173753138
* SuSEnixER (WideGlide@MyRealBox.com) [021205 13:41]: ->* Ben Rosenberg <ben@whack.org> [12-05-02 16:28]: ->> * jostein.berntsen@sensewave.com (jostein.berntsen@sensewave.com) [021205 13:14]: ->> -> ->> ->One advantage with Postfix on SuSE 8.1 is that you can configure it ->> ->with Yast2-Network-Mail Transfer Agent. Makes it more easy than ->> ->hacking on the Sendmail configuration file. ->> -> ->> ->To delete mails in the Postfix queue do: ->> ->postsuper -d ALL ->> ->> That's not really true. YaST2 checks what MTA you have installed and has ->> the ability to write config files for it...as long as it's SuSE ->> supplied. I don't think it does exim or qmail. ->> ->> And one should never hack a .cf file ..it should always be done by ->> editing simple .mc files then running the m4 macros. Editing .cf files ->> hasn't been needed in quite sometime. ->> ->> For me it's just a prefs thing. I use Sendmail at work and I know a ->> bunch of the sendmail developers personally...so it's easier for me. ->> I say choose what you like ...play with a couple different MTA's and ->> choose what suits you best. -> ->Postfix on SuSE does not appear to use .mc files, at least on vers 7.3 ->and 8.1??? I'm aware that postfix doesn't have mc files. The previous poster said using Postfix was easier because YaST2 could be used to configure it instead of hacking config files. The biggest bitch people have had with sendmail is generating .cf files...that's what I was talking about with the .mc file reference. :) -- Ben Rosenberg ---===---===---===--- mailto:ben@whack.org Tell me what you believe.. I tell you what you should see.
On Thursday 05 December 2002 06:16, Franklin Maurer wrote:
Hi all, I just started to use Kmail, I had been using evolution, and i left the default outgoing account as sendmail, which i believe can only handle local mail. Because of this oversight there are 2 or 3 messages that were undeliverable and have yet to be returned. I just get a message every so often stating ...
"A message that you sent has not yet been delivered to one or more of its recipients after more than 48 hours on the queue on linux.local."
is there away to delete these messages from the queue?
Yup there is.
If so, where is the queue?
/var/spool/postfix
and how can I delete them?
The easiest way that I have found is to run "mailq" to get a list of emails in the queue. After that you can run the following: find /var/spool/postfix -name <queue-id> -print | xargs rm Where <queue-id> would be replaced with the messages id that you find using mailq. After the xargs is "rm"... this can also be replaced with pretty much any other Linux file-related command (ie. cat, more, head, tail, etc...) So that you can see first that the email is the correct one to delete.
i now they'll go away on their own but i'd like to learn how to get rid of them manually.
Hope that helps :) Justin T
Thanks -- Franklin Maurer <nebbish@sprynet.com>
participants (6)
-
Ben Rosenberg
-
Franklin Maurer
-
jostein.berntsen@sensewave.com
-
Justin T.
-
Ole Kofoed Hansen
-
SuSEnixER