Re: Lenteur mailq et bizarrerie sudo + timeout

2015-08-20 Thread Soliman Hindy
On Wed, Aug 19, 2015 at 01:06:59PM +0200, Grégory Bulot wrote:
 Bonjour,

Bonjour,

 - avez-vous exécuter la commande strace sur le process mailq ?
 
 Non je ne l'avais pas fait. Par contre j'avais hier un tty qui
 consommais 20% de cpu, après un kill de ce tty (ouais, je suis un peu
 bourrin), plus de latence mailq

Merci pour l'information, j'aurais pas pensé que c'était un tty qui aurait
posé problème.

 
 D'autre part même si ce n'est pas en rapport direct, il existe un
 plugin nagios qui permet de monitorer une file d'attente
 (check_mailq) :
 http://www.linuxjournal.com/content/monitoring-email-nagios
 
 
 Je regarderais pour l'utiliser sous xymon :-)

Bon hack ;)

-- 
Soliman Hindy


signature.asc
Description: Digital signature


Re: Lenteur mailq et bizarrerie sudo + timeout

2015-08-19 Thread Grégory Bulot

Bonjour,


Le Tue, 18 Aug 2015 22:11:10 +0200,
Soliman Hindy hi...@lovetux.net a écrit :



Quelques pistes :
- avez-vous de l'iowait sur votre serveur ?


Je viens de m'apercevoir que je ne monitor pas encore cela, je vais
l'ajouter. néamoins iostat ne semble pas afficher des problèmes dans ce
sens :

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
   0,440,050,180,450,00   98,88

Device:tpskB_read/skB_wrtn/skB_readkB_wrtn
sda   5,1336,7253,7517392542545874
sdb   5,1335,2253,7516680202545874
md1   1,18 3,94 4,50 186667 213008
md2   8,4967,9146,5332161782203922
dm-0  0,00 0,01 0,00377 18
dm-1  8,3467,8946,5332154412203904




- avez-vous exécuter la commande strace sur le process mailq ?


Non je ne l'avais pas fait. Par contre j'avais hier un tty qui
consommais 20% de cpu, après un kill de ce tty (ouais, je suis un peu
bourrin), plus de latence mailq



D'autre part même si ce n'est pas en rapport direct, il existe un
plugin nagios qui permet de monitorer une file d'attente
(check_mailq) :
http://www.linuxjournal.com/content/monitoring-email-nagios



Je regarderais pour l'utiliser sous xymon :-)



Re: Lenteur mailq et bizarrerie sudo + timeout

2015-08-18 Thread Soliman Hindy
On Mon, Aug 17, 2015 at 07:21:44PM +0200, Grégory Bulot wrote:
 Bonjour,

Bonjour,

 Je tente de superviser les mails systèmes que génèrent mes serveurs,
 pour cela j'ai un script qui tourne (en simple user) toutes les 5
 minutes et qui fait en résumé :

[snip, je supprime tous les outputs donnés]

 1/ Pourquoi timeout ne semble pas efficace ?
 2/ Pourquoi mailq dure aussi longtemps ?

Quelques pistes :
- avez-vous de l'iowait sur votre serveur ?
- avez-vous exécuter la commande strace sur le process mailq ?

D'autre part même si ce n'est pas en rapport direct, il existe un plugin
nagios qui permet de monitorer une file d'attente (check_mailq) :
http://www.linuxjournal.com/content/monitoring-email-nagios

-- 
Soliman Hindy


signature.asc
Description: Digital signature


Lenteur mailq et bizarrerie sudo + timeout

2015-08-17 Thread Grégory Bulot
Bonjour, 

Je tente de superviser les mails systèmes que génèrent mes serveurs,
pour cela j'ai un script qui tourne (en simple user) toutes les 5
minutes et qui fait en résumé : 

  timeout 5s sudo mailq

De temps en temps, j'ai un truc bizarre :
 - timeout ne semble pas faire son travail
 - mailq dure longtemps 

exemple 
time timeout 5s sudo mailq ; echo $?

real0m12.246s
user0m0.000s
sys 0m0.000s
124

~ 10secondes après 
==
time timeout 5s sudo mailq ; echo $?

real0m6.404s
user0m0.004s
sys 0m0.004s
124

plus tard (temps de générer ce mail)

time timeout 5s sudo mailq ; echo $?

real0m0.013s
user0m0.000s
sys 0m0.004s
0



un peu avant pour rigoler :
=
time mailq ; echo $?
exim: permission denied

real0m12.059s
user0m0.000s
sys 0m0.004s
1


La machine 
 - passe son temps à ne rien faire (kimsuffi, 4cpu Intel(R)
Xeon(R) CPU E3-1225 V2 @ 3.20GHz)
 - un top ou quasiment rien ne dépasse 1%CPU 
 - ram 16G, avec un top tranquille (tri ascendant conso ram):

top - 19:16:37 up 403 days,  4:45,  8 users,  load average: 0,02, 0,07,
0,27 Tasks: 326 total,   1 running, 325 sleeping,   0 stopped,   0
zombie %Cpu(s):  0,1 us,  0,1 sy,  0,0 ni, 99,4 id,  0,4 wa,  0,0 hi,
0,0 si,  0,0 st KiB Mem:  16380392 total, 15832216 used,   548176
free,  1006832 buffers KiB Swap:  1050616 total,0 used,
1050616 free, 12696044 cached

  PID USER  PR  NI  VIRT  RES  SHR S  %CPU %MEMTIME+
  COMMAND 
9384 sshd  20   0  506m 215m 8696 S   0,3  1,3  24:59.68
  mysqld 
5411 root  20   0 96740  35m 3168 S   0,0  0,2   0:01.00
  python2.7 
5412 root  20   0 96748  35m 3168 S   0,0  0,2
  0:00.86 python2.7 
5410 root  20   0 96728  35m 3168 S   0,0
  0,2   0:00.68 python2.7 


1/ Pourquoi timeout ne semble pas efficace ?
2/ Pourquoi mailq dure aussi longtemps ?

Merci de m'avoir lu :-)



Script con mailq

2007-09-06 Thread Diego Martínez

Hola,

Estoy dándole vueltas a un script que necesito pero no se me ocurre como
hacerlo. He googleado pero no encuentro exactamente lo que quiero. Os
cuento.
De vez en cuando la cola de correo se me queda tonta y se junta con 1000 ó
2000 correos sin procesar y tengo que hacer un flush a la cola para que
procese de nuevo, pero claro, hasta que no me doy cuenta la cola va
engordando.
La idea es hacer un script que haga un mailq y vea el número total de
correos encolados, y cuando pase de un número concreto de correos me avise
de alguna forma.

Espero haberme explicado bien.

Gracias


Re: Script con mailq

2007-09-06 Thread mariodebian
El jue, 06-09-2007 a las 09:29 +0200, Diego Martínez escribió:
 
 Hola,
 
 Estoy dándole vueltas a un script que necesito pero no se me ocurre
 como hacerlo. He googleado pero no encuentro exactamente lo que
 quiero. Os cuento.
 
 De vez en cuando la cola de correo se me queda tonta y se junta con
 1000 ó 2000 correos sin procesar y tengo que hacer un flush a la cola
 para que procese de nuevo, pero claro, hasta que no me doy cuenta la
 cola va engordando.
 
 La idea es hacer un script que haga un mailq y vea el número total de
 correos encolados, y cuando pase de un número concreto de correos me
 avise de alguna forma.
 
 Espero haberme explicado bien.
 
 Gracias
 

Sólo tienes que leer la última línea de mailq y buscar el número:


#!/bin/bash

MAX=500

por_procesar=$(mailq|tail -1| awk '{print $5}')

if [ $(por_procesar) -gt $MAX ]; then
  mailq -q
fi


echo Saludos

-- 
http://soleup.eup.uva.es/mariodebian


signature.asc
Description: Esta parte del mensaje está firmada	digitalmente


Exim4 mailq

2006-09-28 Thread Stephen Allen
Greetings:

Yesterday for a 20 hr period, my Bell Canada telephone service was down,
hence my DSL connection followed.

Since I have come back online, I've noticed that the e-mail I was
assuming had gone out to my SMARTHOST, (before I noticed the DSL was
down) is now in my Exim4 mailq.

I've been grokking the man page, but so far I haven't found a way, to
force/tell Exim to send these messages along their merry way.

I assumed that these messages would eventually go out, but when I sent a
test message just awhile ago, it stayed in the mailq and didn't go to
my SMARTHOST either.

Any ideas, on how to get these delivered ?

Thanks.
begin:vcard
fn:Stephen Allen
n:Allen;Stephen
org:SDA Digital Services
adr:;;76 Pembroke Street;Toronto;ON;M5A 2N8;Canada
email;internet:[EMAIL PROTECTED]
title:Mr.
tel;work:416-964-6647
note;quoted-printable:My rates are flexible depending on the work required and the timing ofcom=
	pletion.=0D=0A=
	=0D=0A=
	I'm very conversant in Print Design, typesetting and layout as well. Iwil=
	l be more than happy to discuss all your design needs, whether theybe for=
	 the Web or for Print.
x-mozilla-html:TRUE
url:http://sweetpig.dyndns.org:1200/Portfolio/
version:2.1
end:vcard



Re: Exim4 mailq

2006-09-28 Thread Clive Menzies
On (28/09/06 09:21), Stephen Allen wrote:
 Greetings:
 
 Yesterday for a 20 hr period, my Bell Canada telephone service was down,
 hence my DSL connection followed.
 
 Since I have come back online, I've noticed that the e-mail I was
 assuming had gone out to my SMARTHOST, (before I noticed the DSL was
 down) is now in my Exim4 mailq.
 
 I've been grokking the man page, but so far I haven't found a way, to
 force/tell Exim to send these messages along their merry way.
 
 I assumed that these messages would eventually go out, but when I sent a
 test message just awhile ago, it stayed in the mailq and didn't go to
 my SMARTHOST either.
 
 Any ideas, on how to get these delivered ?

Have you tried restarting exim4?

$ sudo /etc/init.d/exim4 restart

I've got the exim book and had a quick look through but couldn't find
anything useful.  If no-one else comes up with a solution and restarting
doesn't do it, I should try the exim-users list.

http://www.exim.org/

Regards

Clive

-- 
www.clivemenzies.co.uk ...
...strategies for business



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Exim4 mailq

2006-09-28 Thread Stephen Allen
Clive Menzies wrote:

Stephen Allen wrote:
 Greetings:

Hello Clive:
[...]

 Any ideas, on how to get these delivered ?
 
 Thanks. Have you tried restarting exim4?

Yup. First thing I tried.

Here is what the 'q' looks like (with e-mail addresses removed);

26h  1.0K 1GSYPt-0002lq-0Z [EMAIL PROTECTED] (steve123)


26h  2.5K 1GSYWO-0002m9-EP [EMAIL PROTECTED] (steve123)


24h  3.1K 1GSafL-00031F-Lf [EMAIL PROTECTED] (steve123)

 2h  1.2K 1GSvFt-0004jR-96 [EMAIL PROTECTED] (steve123)


75m   1GSvZB-0004n2-82 [EMAIL PROTECTED] (steve123)


I assume the figure on the left in minutes represents the time in the q.


 $ sudo /etc/init.d/exim4 restart
 
 I've got the exim book and had a quick look through but couldn't find
 anything useful.  If no-one else comes up with a solution and restarting
 doesn't do it, I should try the exim-users list.

Hm

 http://www.exim.org/

Right. May have to.

Thanks Clive.
begin:vcard
fn:Stephen Allen
n:Allen;Stephen
org:SDA Digital Services
adr:;;76 Pembroke Street;Toronto;ON;M5A 2N8;Canada
email;internet:[EMAIL PROTECTED]
title:Mr.
tel;work:416-964-6647
note;quoted-printable:My rates are flexible depending on the work required and the timing ofcom=
	pletion.=0D=0A=
	=0D=0A=
	I'm very conversant in Print Design, typesetting and layout as well. Iwil=
	l be more than happy to discuss all your design needs, whether theybe for=
	 the Web or for Print.
x-mozilla-html:TRUE
url:http://sweetpig.dyndns.org:1200/Portfolio/
version:2.1
end:vcard



Re: Exim4 mailq

2006-09-28 Thread celejar

On 9/28/06, Stephen Allen [EMAIL PROTECTED] wrote:

Clive Menzies wrote:

Stephen Allen wrote:
 Greetings:

Hello Clive:
[...]

 Any ideas, on how to get these delivered ?

 Thanks. Have you tried restarting exim4?

Yup. First thing I tried.

Here is what the 'q' looks like (with e-mail addresses removed);

   26h  1.0K 1GSYPt-0002lq-0Z [EMAIL PROTECTED] (steve123)


26h  2.5K 1GSYWO-0002m9-EP [EMAIL PROTECTED] (steve123)


24h  3.1K 1GSafL-00031F-Lf [EMAIL PROTECTED] (steve123)

 2h  1.2K 1GSvFt-0004jR-96 [EMAIL PROTECTED] (steve123)


75m   1GSvZB-0004n2-82 [EMAIL PROTECTED] (steve123)


I assume the figure on the left in minutes represents the time in the q.


 $ sudo /etc/init.d/exim4 restart

 I've got the exim book and had a quick look through but couldn't find
 anything useful.  If no-one else comes up with a solution and restarting
 doesn't do it, I should try the exim-users list.

Hm

 http://www.exim.org/

Right. May have to.

Thanks Clive.


Have you tried 'exim -qff' ?


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Exim4 mailq

2006-09-28 Thread James
Stephen Allen wrote:
 Greetings:
 
 Yesterday for a 20 hr period, my Bell Canada telephone service was down,
 hence my DSL connection followed.
 
 Since I have come back online, I've noticed that the e-mail I was
 assuming had gone out to my SMARTHOST, (before I noticed the DSL was
 down) is now in my Exim4 mailq.
 
 I've been grokking the man page, but so far I haven't found a way, to
 force/tell Exim to send these messages along their merry way.

try exim4 -qff.
That will force exim to run its queue and ignore retry times and thaw
frozen messages.

What happens is when exim notices a host is down, it will not try to
send to that host again until its retry time has passed.

-- 
James Richardson


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Exim4 mailq

2006-09-28 Thread Jörg-Volker Peetz
Have you tried

  exim -M message id message id ...

?
What does the command mailq print out?

-- 
Jörg-Volker.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Exim4 mailq

2006-09-28 Thread Stephen Allen
On Thu, Sep 28, 2006 at 10:34:14AM -0400 or thereabouts, celejar wrote:
 On 9/28/06, Stephen Allen [EMAIL PROTECTED] wrote:

 Right. May have to.
 
 Thanks Clive.

 Have you tried 'exim -qff' ?

Hello Celejar:

Yes, actually tried '-qf' prior as well -- No change in the 'q'.

It seems strange that Exim4 would break, if the network to the SMARTHOST
is down. One would assume that it would carry on as usual once the
connection was restored.
begin:vcard
fn:Stephen Allen
n:Allen;Stephen
org:SDA Digital Services
adr:;;76 Pembroke Street;Toronto;ON;M5A 2N8;Canada
email;internet:[EMAIL PROTECTED]
title:Mr.
tel;work:416-964-6647
note;quoted-printable:My rates are flexible depending on the work required and the timing ofcom=
	pletion.=0D=0A=
	=0D=0A=
	I'm very conversant in Print Design, typesetting and layout as well. Iwil=
	l be more than happy to discuss all your design needs, whether theybe for=
	 the Web or for Print.
x-mozilla-html:TRUE
url:http://sweetpig.dyndns.org:1200/Portfolio/
version:2.1
end:vcard



Re: Exim4 mailq

2006-09-28 Thread celejar

On 9/28/06, Stephen Allen [EMAIL PROTECTED] wrote:

On Thu, Sep 28, 2006 at 10:34:14AM -0400 or thereabouts, celejar wrote:
 On 9/28/06, Stephen Allen [EMAIL PROTECTED] wrote:

 Right. May have to.
 
 Thanks Clive.

 Have you tried 'exim -qff' ?

Hello Celejar:

Yes, actually tried '-qf' prior as well -- No change in the 'q'.

It seems strange that Exim4 would break, if the network to the SMARTHOST
is down. One would assume that it would carry on as usual once the
connection was restored.


I believe that '-qf' won't resend frozen messages; did you try '-qff' ?


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Exim4 mailq

2006-09-28 Thread Stephen Allen
James wrote:
 Stephen Allen wrote:
 Greetings:

 Yesterday for a 20 hr period, my Bell Canada telephone service was down,
 hence my DSL connection followed.

 Since I have come back online, I've noticed that the e-mail I was
 assuming had gone out to my SMARTHOST, (before I noticed the DSL was
 down) is now in my Exim4 mailq.

 I've been grokking the man page, but so far I haven't found a way, to
 force/tell Exim to send these messages along their merry way.
 
 try exim4 -qff.
 That will force exim to run its queue and ignore retry times and thaw
 frozen messages.
 
 What happens is when exim notices a host is down, it will not try to
 send to that host again until its retry time has passed.
 
BTW I apologize if some of you rec'd some of my e-mail in this thread
directly. Wasn't my intention.

Fellas, in case this helps, the most recent output from
'/var/spool/exim4/msglog' returns this;

2006-09-28 11:18:44 Received from  R=1GSYWO-0002m9-EP 
U=Debian-exim P=local S=1215
2006-09-28 11:18:45 [EMAIL PROTECTED]   
[EMAIL PROTECTED] R=smarthost T=remote_smtp_
smarthost defer (-53): retry time not reached for any host
2006-09-28 11:24:45 Remote host gmail-smtp.l.google.com 
[72.14.205.109] closed connection in response to MAIL FROM:   
SIZE=2265
2006-09-28 11:24:45 [EMAIL PROTECTED]   
[EMAIL PROTECTED] R=smarthost T=remote_smtp_
smarthost defer (-18): Remote host gmail-smtp.l.google.com  
[72.14.205.109] closed connection in response to MAIL FROM:   
SIZE=2265


How does one force the retry time to now ?


begin:vcard
fn:Stephen Allen
n:Allen;Stephen
org:SDA Digital Services
adr:;;76 Pembroke Street;Toronto;ON;M5A 2N8;Canada
email;internet:[EMAIL PROTECTED]
title:Mr.
tel;work:416-964-6647
note;quoted-printable:My rates are flexible depending on the work required and the timing ofcom=
	pletion.=0D=0A=
	=0D=0A=
	I'm very conversant in Print Design, typesetting and layout as well. Iwil=
	l be more than happy to discuss all your design needs, whether theybe for=
	 the Web or for Print.
x-mozilla-html:TRUE
url:http://sweetpig.dyndns.org:1200/Portfolio/
version:2.1
end:vcard



Re: Exim4 mailq

2006-09-28 Thread Clive Menzies
On (28/09/06 10:59), Stephen Allen wrote:
 On Thu, Sep 28, 2006 at 10:34:14AM -0400 or thereabouts, celejar wrote:
  On 9/28/06, Stephen Allen [EMAIL PROTECTED] wrote:
 
  Right. May have to.
  
  Thanks Clive.
 
  Have you tried 'exim -qff' ?
 
 Hello Celejar:
 
 Yes, actually tried '-qf' prior as well -- No change in the 'q'.
 
 It seems strange that Exim4 would break, if the network to the SMARTHOST
 is down. One would assume that it would carry on as usual once the
 connection was restored.

another thought:

dpkg-reconfigure exim4-config

Regards

Clive

-- 
www.clivemenzies.co.uk ...
...strategies for business



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Exim4 mailq

2006-09-28 Thread Stephen Allen
On 28/09/2006 celejar wrote:
 I believe that '-qf' won't resend frozen messages; did you try '-qff' 
 ? 

Yes. It appears that this will not over-ride the retry time, as per below.

  [EMAIL PROTECTED] [EMAIL PROTECTED] R=smarthost T=remote_smtp_
 smarthost defer (-53): retry time not reached for any host
 2006-09-28 11:24:45 Remote host gmail-smtp.l.google.com [72.14.205.109] 
 closed connection in respons
 e to MAIL FROM: SIZE=2265
 2006-09-28 11:24:45 [EMAIL PROTECTED] [EMAIL PROTECTED] R=smarthost 
 T=remote_smtp_
 smarthost defer (-18): Remote host gmail-smtp.l.google.com [72.14.205.109] 
 closed connection in resp
 onse to MAIL FROM: SIZE=2265
begin:vcard
fn:Stephen Allen
n:Allen;Stephen
org:SDA Digital Services
adr:;;76 Pembroke Street;Toronto;ON;M5A 2N8;Canada
email;internet:[EMAIL PROTECTED]
title:Mr.
tel;work:416-964-6647
note;quoted-printable:My rates are flexible depending on the work required and the timing ofcom=
	pletion.=0D=0A=
	=0D=0A=
	I'm very conversant in Print Design, typesetting and layout as well. Iwil=
	l be more than happy to discuss all your design needs, whether theybe for=
	 the Web or for Print.
x-mozilla-html:TRUE
url:http://sweetpig.dyndns.org:1200/Portfolio/
version:2.1
end:vcard



Re: Exim4 mailq

2006-09-28 Thread Stephen Allen
Clive Menzies wrote:
 On (28/09/06 10:59), Stephen Allen wrote:
 On Thu, Sep 28, 2006 at 10:34:14AM -0400 or thereabouts, celejar wrote:
 On 9/28/06, Stephen Allen [EMAIL PROTECTED] wrote:
 Right. May have to.

 Thanks Clive.
 Have you tried 'exim -qff' ?
 Hello Celejar:

 Yes, actually tried '-qf' prior as well -- No change in the 'q'.

 It seems strange that Exim4 would break, if the network to the SMARTHOST
 is down. One would assume that it would carry on as usual once the
 connection was restored.
 
 another thought:
 
 dpkg-reconfigure exim4-config

Clive:

Yeah I don't really want to resort to that -- If one has to do such a
draconian measure then I would think this is a bug in Exim4, no ?

Surely one shouldn't have to do this to fix a mailq issue.



begin:vcard
fn:Stephen Allen
n:Allen;Stephen
org:SDA Digital Services
adr:;;76 Pembroke Street;Toronto;ON;M5A 2N8;Canada
email;internet:[EMAIL PROTECTED]
title:Mr.
tel;work:416-964-6647
note;quoted-printable:My rates are flexible depending on the work required and the timing ofcom=
	pletion.=0D=0A=
	=0D=0A=
	I'm very conversant in Print Design, typesetting and layout as well. Iwil=
	l be more than happy to discuss all your design needs, whether theybe for=
	 the Web or for Print.
x-mozilla-html:TRUE
url:http://sweetpig.dyndns.org:1200/Portfolio/
version:2.1
end:vcard



Re: Exim4 mailq

2006-09-28 Thread Pete Hicks
On Thu, Sep 28, 2006 at 11:51:15AM -0400, Stephen Allen wrote:
Clive Menzies wrote:
 On (28/09/06 10:59), Stephen Allen wrote:
 On Thu, Sep 28, 2006 at 10:34:14AM -0400 or thereabouts, celejar wrote:
 On 9/28/06, Stephen Allen [EMAIL PROTECTED] wrote:
 Right. May have to.

 Thanks Clive.
 Have you tried 'exim -qff' ?
 Hello Celejar:

 Yes, actually tried '-qf' prior as well -- No change in the 'q'.

 It seems strange that Exim4 would break, if the network to the SMARTHOST
 is down. One would assume that it would carry on as usual once the
 connection was restored.
 
 another thought:
 
 dpkg-reconfigure exim4-config

Clive:

Yeah I don't really want to resort to that -- If one has to do such a
draconian measure then I would think this is a bug in Exim4, no ?

Surely one shouldn't have to do this to fix a mailq issue.


You can look at the log for a particular message like so:

# exim4 -Mvl message-id

and if you want to retry delivery on a particular message,

# exim4 -M message-id

This will thaw a particular message id:

# exim4 -Mt message-id

that should be enough to get you going.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Exim4 mailq

2006-09-28 Thread Stephen
On Thu, Sep 28, 2006 at 12:48:43PM -0700 or thereabouts, Pete Hicks wrote:

Hi Pete:

 You can look at the log for a particular message like so:
 
 # exim4 -Mvl message-id
 
 and if you want to retry delivery on a particular message,
 
 # exim4 -M message-id
 
 This will thaw a particular message id:
 
 # exim4 -Mt message-id
 
 that should be enough to get you going.

Thanks for the syntax. 

Well, after running the 'Mt' command on the message-ids in my mailq, I'm
told their not frozen. So, I attempted to retry delivery on most of the
list, but it didn't do anything.

I'm puzzled by this behaviour, and don't understand why, when the
ethernet connection is down, Exim allows itself to be put in such a
state.

I appreciate your effort and everyone else's -- I think I'll sleep on
this, and approach it when I'm fresher.


-- 
Regards
Stephen
+
... A solemn, unsmiling, sanctimonious old iceberg who looked like he
was waiting for a vacancy in the Trinity.
-- Mark Twain
+


signature.asc
Description: Digital signature


[postfix] Como remover emails na fila de entrega (mailq)

2006-09-15 Thread sirhamacker sir

Um xarope dum usuario metido a programador criou uma fila de 5000
mensagens todas de mesmo conteúdo.

Será que é possivel remover todas essas mensagens sem afetar as
demais, visto que todas elas tem o mesmo remetente ?

Qualquer ajuda é bem vinda.

[]'s a todos.



Re: [postfix] Como remover emails na fila de entrega (mailq)

2006-09-15 Thread William da R. Lima

Caro,

   Basta usar o seguinte comando

postsuper -d ALLOupostsuper -d IDAbs,- Original Message - 
From: sirhamacker sir [EMAIL PROTECTED]

To: debian-user-portuguese@lists.debian.org
Sent: Friday, September 15, 2006 2:24 PM
Subject: [postfix] Como remover emails na fila de entrega (mailq)


Um xarope dum usuario metido a programador criou uma fila de 5000
mensagens todas de mesmo conteúdo.

Será que é possivel remover todas essas mensagens sem afetar as
demais, visto que todas elas tem o mesmo remetente ?

Qualquer ajuda é bem vinda.

[]'s a todos.




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: [postfix] Como remover emails na fila de entrega (mailq)

2006-09-15 Thread Guilherme de Freitas Figueiredo
opas!

postsuper -d 

dando uma olhada no manpage ele faz o que vc precisa

Delete  one  message  with the named queue ID from the named mail queue(s) 
(default: hold, incoming, active and deferred).

  If a queue_id of - is specified, the program reads queue IDs  
from  standard  input.
  For example, to delete all mail with exactly one recipient [EMAIL 
PROTECTED]:

  mailq | tail +2 | awk  ´BEGIN { RS =  }
  # $7=sender, $8=recipient1, $9=recipient2
  { if ($8 == [EMAIL PROTECTED]  $9 == )
print $1 }
  ´ | tr -d '*!' | postsuper -d -

[]s!

On Fri, 15 Sep 2006 14:24:49 -0300, sirhamacker sir [EMAIL PROTECTED] wrote:
 Um xarope dum usuario metido a programador criou uma fila de 5000
 mensagens todas de mesmo conteúdo.
 
 Será que é possivel remover todas essas mensagens sem afetar as
 demais, visto que todas elas tem o mesmo remetente ?
 
 Qualquer ajuda é bem vinda.
 
 []'s a todos.
--
[]s
--
Guilherme de Freitas Figueiredo - [EMAIL PROTECTED]
http://gui.maniacs.com.br


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



[solucao] [postfix] Como remover emails na fila de entrega (mailq)

2006-09-15 Thread hamacker
seu exemplo tá com erro, eu tambem tentei o 'man' e não funciona. Mas eu 
captei a idéia do man e fiz uma conversão para bash que deu certo.

Só para constar no historico a solução :
#!/bin/sh
SUSPECT_MAIL=[EMAIL PROTECTED]

count=0
for MAIL_ID in `mailq | grep $SUSPECT_MAIL |cut -d   -f 1|tr *   ` ;
do
  echo removendo o email : $MAIL_ID `postsuper -d $MAIL_ID`
  $count=count+1
done
echo Foram excluidas $count a partir do email suspeito $SUSPECT_MAIL.

Pode não ter sido tão eficiente quanto awk, mas funcionou que foi uma 
maravilha.


[]'s e obrigado pela ajuda.

Guilherme de Freitas Figueiredo escreveu:

opas!

postsuper -d 


dando uma olhada no manpage ele faz o que vc precisa

Delete  one  message  with the named queue ID from the named mail queue(s) 
(default: hold, incoming, active and deferred).

  If a queue_id of - is specified, the program reads queue IDs  
from  standard  input.
  For example, to delete all mail with exactly one recipient [EMAIL 
PROTECTED]:

  mailq | tail +2 | awk  ´BEGIN { RS =  }
  # $7=sender, $8=recipient1, $9=recipient2
  { if ($8 == [EMAIL PROTECTED]  $9 == )
print $1 }
  ´ | tr -d '*!' | postsuper -d -

[]s!

On Fri, 15 Sep 2006 14:24:49 -0300, sirhamacker sir [EMAIL PROTECTED] wrote:

Um xarope dum usuario metido a programador criou uma fila de 5000
mensagens todas de mesmo conteúdo.

Será que é possivel remover todas essas mensagens sem afetar as
demais, visto que todas elas tem o mesmo remetente ?

Qualquer ajuda é bem vinda.

[]'s a todos.

--
[]s
--
Guilherme de Freitas Figueiredo - [EMAIL PROTECTED]
http://gui.maniacs.com.br





--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Exim4 y mailq

2006-08-18 Thread Horacio Castellini

Holas como puedo hacer que un usuario ordinario vea la cola de mensajes
cuando uno usa exim4... es decir no me salga..???

[EMAIL PROTECTED]:~$ mailq
exim: permission denied

ahora como root si puedo verla...

Saludetes...


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Exim4 y mailq

2006-08-18 Thread Ricardo Frydman Eureka!
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Horacio Castellini wrote:
 Holas como puedo hacer que un usuario ordinario vea la cola de mensajes
 cuando uno usa exim4... es decir no me salga..???
 
 [EMAIL PROTECTED]:~$ mailq
 exim: permission denied
 
 ahora como root si puedo verla...

Por ejemplo, con sudo, peropara que quieres eso?


 
 Saludetes...
 
 


- --
Ricardo A.Frydman
Consultor en Tecnología Open Source - Administrador de Sistemas
jabber: [EMAIL PROTECTED] - http://www.eureka-linux.com.ar
SIP # 1-747-667-9534
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFE5b1/kw12RhFuGy4RAjReAJ0fgF8qXew0qKQnLFwIoxHkVMN6MQCgkJfo
WURS5gKql37VSEptRq5KMA4=
=+Ba+
-END PGP SIGNATURE-



Re: Exim4 y mailq

2006-08-18 Thread Jesus Aneiros

On 8/18/06, Horacio Castellini [EMAIL PROTECTED] wrote:

Holas como puedo hacer que un usuario ordinario vea la cola de mensajes
cuando uno usa exim4... es decir no me salga..???

[EMAIL PROTECTED]:~$ mailq
exim: permission denied

ahora como root si puedo verla...



Es solo un problema de permisos, puedes lograrlo de dos formas:
cambiando los permisos de los directorios (para nada recomendable, no
hacerlo nunca). La otra visudo y agregar una línea como:
loginDelUsuario ALL=NOPASSWD: /usr/bin/mailq
Así no te pide password. Revisa sudoers(5).

--
La educación comienza en la cuna y termina en la tumba
José de la Luz y Caballero



Re: Exim4 y mailq

2006-08-18 Thread Luis Rodrigo Gallardo Cruz
On Fri, Aug 18, 2006 at 10:06:14AM -0300, Horacio Castellini wrote:
 Holas como puedo hacer que un usuario ordinario vea la cola de mensajes
 cuando uno usa exim4... es decir no me salga..???
 
 [EMAIL PROTECTED]:~$ mailq
 exim: permission denied

De man exim4:

  mailq  Behave as if the option -bp were present before any other
 options.  The -bp option requests a listing of the contents
 of the mail queue on the standard output.

 [ ... ]

  -bp This option requests a listing of the contents of the mail
  queue on the standard output. If the -bp option is followed
  by a list of message ids, just those messages are
  listed. By default, this option can be used only by
  an admin user. However, the queue_list_requires_admin
  option can be set false to allow any user to see the
  queue.

Es decir:
* Añade los usuarios que quieres que vean la cola de mensajes al grupo
  de usuarios admin (Debian-exim en Debian), o
* Pon la opción queue_list_requires_admin = falso


-- 
Rodrigo Gallardo
GPG-Fingerprint: 7C81 E60C 442E 8FBC D975  2F49 0199 8318 ADC9 BC28


signature.asc
Description: Digital signature


Re: Exim4 y mailq

2006-08-18 Thread Horacio Castellini

ya ha lo resolví tocando el archivo de configuración.
usar sudo es como abusar de un recurso y crear un agujero de seguridad.


2006/8/18, Ricardo Frydman Eureka! [EMAIL PROTECTED]:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Horacio Castellini wrote:
 Holas como puedo hacer que un usuario ordinario vea la cola de mensajes
 cuando uno usa exim4... es decir no me salga..???

 [EMAIL PROTECTED]:~$ mailq
 exim: permission denied

 ahora como root si puedo verla...

Por ejemplo, con sudo, peropara que quieres eso?



 Saludetes...




- --
Ricardo A.Frydman
Consultor en Tecnología Open Source - Administrador de Sistemas
jabber: [EMAIL PROTECTED] - http://www.eureka-linux.com.ar
SIP # 1-747-667-9534
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFE5b1/kw12RhFuGy4RAjReAJ0fgF8qXew0qKQnLFwIoxHkVMN6MQCgkJfo
WURS5gKql37VSEptRq5KMA4=
=+Ba+
-END PGP SIGNATURE-






Re: Exim4 y mailq

2006-08-18 Thread Ricardo Frydman Eureka!
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Horacio Castellini wrote:
 ya ha lo resolví tocando el archivo de configuración.
bin

 usar sudo es como abusar de un recurso y crear un agujero de seguridad.

De ninguna manera.
O mas bien, depende como lo configures.
Pero esa es otra discusion...BTW...existe una razon de seguridad por la
cual Debian te deja configurado asi el exim, ya que mencionas ese punto...

 
 
 2006/8/18, Ricardo Frydman Eureka! [EMAIL PROTECTED]:
 
 Horacio Castellini wrote:
 Holas como puedo hacer que un usuario ordinario vea la cola de mensajes
 cuando uno usa exim4... es decir no me salga..???
 
 [EMAIL PROTECTED]:~$ mailq
 exim: permission denied
 
 ahora como root si puedo verla...
 
 Por ejemplo, con sudo, peropara que quieres eso?
 
 
 
 Saludetes...
 
 
 
 
 --
 Ricardo A.Frydman
 Consultor en Tecnología Open Source - Administrador de Sistemas
 jabber: [EMAIL PROTECTED] - http://www.eureka-linux.com.ar
 SIP # 1-747-667-9534



- --
Ricardo A.Frydman
Consultor en Tecnología Open Source - Administrador de Sistemas
jabber: [EMAIL PROTECTED] - http://www.eureka-linux.com.ar
SIP # 1-747-667-9534
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFE5fb8kw12RhFuGy4RAgMrAKCJkO2t5VXJwfroFiszYP/uwCWHLACdH/mS
4vF2P0iEGZhO4LRFLRe1jdU=
=eMn0
-END PGP SIGNATURE-



Re: Exim4 y mailq

2006-08-18 Thread Iñaki
El Viernes, 18 de Agosto de 2006 18:48, Horacio Castellini escribió:

 usar sudo es como abusar de un recurso y crear un agujero de seguridad.

Esa debe ser tu opinión. La mía es que sudo es uno de los mejores inventos 
para garantizar la seguridad y la flexibilidad que permite es asombrosa, por 
ejemplo:

Haces un interfaz web para administrar un servicio de la máquina. El servicio 
se ejecuta necesariamente como root y el servidor web como www-data.
Bien, pues poniendo la entrada pertinente en /etc/sudoers puedes conseguir que 
el usuario www-data pueda ejecutar un determinado comando con permisos de 
root sin necesidad de introducir contraseña.

La versatilidad que permite es asombrosa y es en mi opinión el mejor método 
para casos como el ejemplo que describía. ¿Qué sería mejor? ¿ejecutar apache 
como root? ¿que la web solicitas al usuario la clave de root por un 
formulario?


-- 
Iñaki



Re: Exim4 y mailq

2006-08-18 Thread Horacio Castellini

Horacio Castellini wrote:
 ya ha lo resolví tocando el archivo de configuración.
bin

 usar sudo es como abusar de un recurso y crear un agujero de seguridad.

De ninguna manera.
O mas bien, depende como lo configures.
Pero esa es otra discusion...BTW...existe una razon de seguridad por la
cual Debian te deja configurado asi el exim, ya que mencionas ese punto...


Si así fuese, entonces todos los admistradores que usan sendmail y
qmail vienen con un agujero por defecto... ya que cualquier usuario
puede ver la cola de correo de los otros... y se debería denegar esa
cualidad. Bueno eso debe formar parte de la regla del buen
administrador debian que desconozco.
Pido perdón por mi ignorancia como diría Borges.

Es decir para mi la postura y por algo será no la comparto...



Re: Exim4 y mailq

2006-08-18 Thread Horacio Castellini

  -bp This option requests a listing of the contents of the mail
  queue on the standard output. If the -bp option is followed
  by a list of message ids, just those messages are
  listed. By default, this option can be used only by
  an admin user. However, the queue_list_requires_admin
  option can be set false to allow any user to see the
  queue.

Es decir:
* Añade los usuarios que quieres que vean la cola de mensajes al grupo
  de usuarios admin (Debian-exim en Debian), o
* Pon la opción queue_list_requires_admin = falso


Gracias de todas formas como dije en un mail anterior esa es la forma
que buscaba, y que ya la había encontrado. Es decir la última en el
archivo exim4.conf.template



Re: Exim3 mailq

2004-07-08 Thread Paul Johnson
S.D.A. [EMAIL PROTECTED] writes:

 On Wed, Jul 07, 2004 at 05:09:39PM -0700 or thereabouts, Paul Johnson wrote:
 S.D.A. [EMAIL PROTECTED] writes:
 
  I have several messages stuck in my mailq. I've been reading the Exim3
  manpages, and under the mailq page, I couldn't find any mention of
  forcing them to be delivered -- I had problems off and on to-day with my
  ISP. Now that the connection is a little more stable, I would like to
  get them on their way.
 
  Any suggestions?
 
 Go get eximon and then take a look in eximon what's going on.  If you
 hold shift and click the LMB on a message in the bottom pane, it'll give
 you several possible actions for the message, including forcing
 delivery.  If the message has a star next to it, that message couldn't
 be delivered or bounced, so you need to take a look at it and figure out
 to whom it was to be delivered or delete it.

 Does this work from a term? I don't have X-Windows.

In that case, you're going to want to look at the exim(8) manpage to
figure out how to do this in exim on the command line.


pgpc8TShelFQd.pgp
Description: PGP signature


Re: Exim3 mailq

2004-07-08 Thread Florian Ernst
Hello!

On Wed, Jul 07, 2004 at 03:17:55PM -0400, S.D.A. wrote:
 I have several messages stuck in my mailq. I've been reading the Exim3 manpages,
 and under the mailq page, I couldn't find any mention of forcing them to be
 delivered -- I had problems off and on to-day with my ISP. Now that the
 connection is a little more stable, I would like to get them on their way.
 
 Any suggestions?

Just for starters, does maybe
http://www.debian.org/doc/manuals/reference/ch-tips#s-flush-mail
help you?

Cheers,
Flo


PS: Honoring your Mail-Followup-To...


signature.asc
Description: Digital signature


Re: Exim3 mailq

2004-07-08 Thread S.D.A.
On Wed, Jul 07, 2004 at 11:25:08PM +0200 or thereabouts, Florian Ernst wrote:
 Hello!
 
 On Wed, Jul 07, 2004 at 03:17:55PM -0400, S.D.A. wrote:
  I have several messages stuck in my mailq. I've been reading the Exim3 manpages,
  and under the mailq page, I couldn't find any mention of forcing them to be
  delivered -- I had problems off and on to-day with my ISP. Now that the
  connection is a little more stable, I would like to get them on their way.
  
  Any suggestions?
 
 Just for starters, does maybe
 http://www.debian.org/doc/manuals/reference/ch-tips#s-flush-mail
 help you?

What an excellent resource. I wasn't aware of it before, now it's bookmarked.

I used exim -Mg `mailq | grep frozen | awk '{ print $3 }'`

(To remove frozen mail from the local spool with a delivery error message:)

I had the flush commands, but I wasn't sure that flush would deliver the
messages.

Thanks Florian, and everyone else who offered help.

 Cheers,
 Flo
 
 
 PS: Honoring your Mail-Followup-To...

Excellent. :)


-- 
Steve
+
  Thursday Jul 08 2004 09:11:01 AM EDT
+



pgpL0i6rxProy.pgp
Description: PGP signature


Re: Exim3 mailq

2004-07-08 Thread S.D.A.
On Thu, Jul 08, 2004 at 02:29:54AM -0700 or thereabouts, Paul Johnson wrote:
 S.D.A. [EMAIL PROTECTED] writes:
 
  On Wed, Jul 07, 2004 at 05:09:39PM -0700 or thereabouts, Paul Johnson wrote:
  S.D.A. [EMAIL PROTECTED] writes:
  
   I have several messages stuck in my mailq. I've been reading the Exim3
   manpages, and under the mailq page, I couldn't find any mention of
   forcing them to be delivered -- I had problems off and on to-day with my
   ISP. Now that the connection is a little more stable, I would like to
   get them on their way.
  
   Any suggestions?
  
  Go get eximon and then take a look in eximon what's going on.  If you
  hold shift and click the LMB on a message in the bottom pane, it'll give
  you several possible actions for the message, including forcing
  delivery.  If the message has a star next to it, that message couldn't
  be delivered or bounced, so you need to take a look at it and figure out
  to whom it was to be delivered or delete it.
 
  Does this work from a term? I don't have X-Windows.
 
 In that case, you're going to want to look at the exim(8) manpage to
 figure out how to do this in exim on the command line.

That's what I've been attempting. :) I have commands to delete them (flush), but
that wasn't what I needed. Sometimes manpages aren't specific enough.

In any event Florian seems to have me sorted out. Thanks for the help. Eximon
seems like a great tool.


-- 
Steve
+
  Thursday Jul 08 2004 09:16:01 AM EDT
+
I prefer to think that God is not dead, just drunk 
-- John Huston


pgp4Lz5oWQHM5.pgp
Description: PGP signature


Exim3 mailq

2004-07-07 Thread S.D.A.
Seems to be my day with little issues...

I have several messages stuck in my mailq. I've been reading the Exim3 manpages,
and under the mailq page, I couldn't find any mention of forcing them to be
delivered -- I had problems off and on to-day with my ISP. Now that the
connection is a little more stable, I would like to get them on their way.

Any suggestions?

-- 
Steve
+
  Wednesday Jul 07 2004 03:11:01 PM EDT
+
I say we take off; nuke the site from orbit.  It's the only way to be sure.
- Corporal Hicks, in Aliens


pgpNryQN2c3kE.pgp
Description: PGP signature


Re: Exim3 mailq

2004-07-07 Thread Paul Johnson
S.D.A. [EMAIL PROTECTED] writes:

 I have several messages stuck in my mailq. I've been reading the Exim3
 manpages, and under the mailq page, I couldn't find any mention of
 forcing them to be delivered -- I had problems off and on to-day with my
 ISP. Now that the connection is a little more stable, I would like to
 get them on their way.

 Any suggestions?

Go get eximon and then take a look in eximon what's going on.  If you
hold shift and click the LMB on a message in the bottom pane, it'll give
you several possible actions for the message, including forcing
delivery.  If the message has a star next to it, that message couldn't
be delivered or bounced, so you need to take a look at it and figure out
to whom it was to be delivered or delete it.


pgp1rAKo2RZyw.pgp
Description: PGP signature


Re: Exim3 mailq

2004-07-07 Thread S.D.A.
On Wed, Jul 07, 2004 at 05:09:39PM -0700 or thereabouts, Paul Johnson wrote:
 S.D.A. [EMAIL PROTECTED] writes:
 
  I have several messages stuck in my mailq. I've been reading the Exim3
  manpages, and under the mailq page, I couldn't find any mention of
  forcing them to be delivered -- I had problems off and on to-day with my
  ISP. Now that the connection is a little more stable, I would like to
  get them on their way.
 
  Any suggestions?
 
 Go get eximon and then take a look in eximon what's going on.  If you
 hold shift and click the LMB on a message in the bottom pane, it'll give
 you several possible actions for the message, including forcing
 delivery.  If the message has a star next to it, that message couldn't
 be delivered or bounced, so you need to take a look at it and figure out
 to whom it was to be delivered or delete it.

Hi Paul:

Does this work from a term? I don't have X-Windows.


-- 
Steve
+
  Wednesday Jul 07 2004 11:53:02 PM EDT
+
Don't worry about people stealing your ideas.  If your ideas are any good,
you'll have to ram them down people's throats.
-- Howard Aiken


pgp2HTXt9X8Q9.pgp
Description: PGP signature


mailq w postfixie HELP

2003-02-23 Thread bieniu
heja

mam nastepujacy problemik zebralo mi sie duzo maili w kolejce ktore nie chce
zeby wyszly sa smieciami tylko ale jest ich tyle ze reczne usuwanie pokolei

postsuper -d numerek

nie jest zbyt praktyczne, reczne wymazywanie maili w postfixie tez nie jest
zbyt latwe :) probowalem komenda

postsuper -s -p

ale maile nadal sa
czy ktos zna komende ktora usuwa wszystkie maile z kolejki  HELP

pozdro
bieniu




Re: mailq w postfixie HELP

2003-02-23 Thread Pawel Kowalski
Dnia Sun, Feb 23, 2003 at 10:18:25AM +0100, bieniu napisal(a):
 heja
 
 mam nastepujacy problemik zebralo mi sie duzo maili w kolejce ktore nie chce
 zeby wyszly sa smieciami tylko ale jest ich tyle ze reczne usuwanie pokolei
 
 postsuper -d numerek
 
 nie jest zbyt praktyczne, reczne wymazywanie maili w postfixie tez nie jest
 zbyt latwe :) probowalem komenda
 
 postsuper -s -p
 

postsuper -d ALL

(man postsuper)


-- 
Kowalski Pawel
[EMAIL PROTECTED] | [EMAIL PROTECTED]
JID: [EMAIL PROTECTED]



pgpRPilXZPrYQ.pgp
Description: PGP signature


recuperar correos del mailq?

2002-11-15 Thread Juan Guil
Hola:
HE tenido un pequeño fallo y me ha pasado lo siguiente:
Yo bajo el correo de mis servidores con el fetchmail.
Ayer tuve que modificar una cuenta en el fichero .fetchmailrc por poblemas
con el servidor (aun sigo teniendolo porque eresMas es un CHAPUZA), y sin
querer modifique tambien una de las lineas de unas de mis cuentas que si me
funciona bien, es decir, comente tambien la linea
to [EMAIL PROTECTED] de la otra cuenta.
¿Que paso?
Que mientras me ha estado recogiendo los correos el fetchmail de mi cuenta,
el exim al no saber donde poner los correos ya que la linea estaba
comentada, me los ha puesto en la cola de correos (Que la verdad no se como
se llama) que pones cuando ejecutas el mailq.
No tengo ni idea como recuperarlos
¿alguien me podria decir como recuperarlos?

Muchas Gracias
+++
Juan Francisco Guil Vazquez
[EMAIL PROTECTED]
POWERED BY LINUX  DEBIAN SARGE TESTING
Linux user nº  #279087
Socio Hispalinux 373
+++



Re: recuperar correos del mailq?

2002-11-15 Thread Victor Calzado Mayo
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hola Juanillo
que te enfurruñas con nosotros y no nos quieres nada
:PP
On Friday 15 November 2002 11:20, Juan Guil wrote:
 Hola:
 HE tenido un pequeño fallo y me ha pasado lo siguiente:
 Yo bajo el correo de mis servidores con el fetchmail.
 Ayer tuve que modificar una cuenta en el fichero .fetchmailrc por poblemas
 con el servidor (aun sigo teniendolo porque eresMas es un CHAPUZA), y sin
 querer modifique tambien una de las lineas de unas de mis cuentas que si me
 funciona bien, es decir, comente tambien la linea
 to [EMAIL PROTECTED] de la otra cuenta.
 ¿Que paso?
 Que mientras me ha estado recogiendo los correos el fetchmail de mi cuenta,
 el exim al no saber donde poner los correos ya que la linea estaba
 comentada, me los ha puesto en la cola de correos (Que la verdad no se como
 se llama) que pones cuando ejecutas el mailq.

Para ver lo que tienes en la cola haz un:

exim -bp

debbie:/home/vcalzado# exim -bp
49d  1.5K 17us47-Hn-00  *** frozen ***
  [EMAIL PROTECTED]

49d  2.2K 17us4F-I4-00  *** frozen ***
  [EMAIL PROTECTED]

vaya

Parece que yo también tengo algún correo que tiene mal el destinatario
( ¿a quién ha decidido tu fetchmail que le iba a enviar el correo si no tenía
to? )

bueno, editemos uno a ver que hace
# export VISUAL=vi
# exim -Meb 17us47-Hn-00
17us47-Hn-00-D
This message was created automatically by mail delivery software (Exim).

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

  [EMAIL PROTECTED]
unknown local-part root in domain debian

- -- This is a copy of the message, including all the headers. --

buff, mi usuario no existe en el sistema, es un mensaje de
error
¿Será lo mismo que tienen los tuyos y los correos son para el fulano que
ejecuta fetchmail ?

Si no es así, osea los tuyos tienen un destinatario válido pero estan frozen
pues:
( cuidado si no lo tienen el sistema puede acabar mandando tu correo a vete a
saber donde )
exim -qff

debería quitarlos de frozen e intentar enviarlos:
2002-11-15 12:25:56 17us4F-I4-00 Completed
2002-11-15 12:25:56 17us4F-I8-00 Unfrozen by forced delivery

Pero claro
Si los correos van a un dominio que no es local... pues los pierdes todos...
porque los lanza contra tu smarthost:

2002-11-15 12:25:56 17us4F-I8-00 = [EMAIL PROTECTED] R=smarthost 
T=remote_smtp
H=asterisios.cnio.es

Por lo que...
Asegurate de que el dominio del destinario es local...

¿Cómo?

a mi me gusta este:

# exim -Mvh message id

The contents of the message headers (-H) spool file are written to the
standard output. This option can be used only by an admin user.


¿Qué te ha ocurrido realmente?

¿Qué tal mirar el log en la base de datos de deliveries?

exim -Mvl message id

Bueno venga, ya te has mirado las cosas , ya tienes más o menos claro lo que
pasa pero sigues sin poder recuperar el correo, pues bueno, venga, una
ñapilla pal Juan:


Hum
De no poder hacer nada asi, están frozen y no pueden ser enviados..
Pués , ñapa v

Añade a tu usuario como destinario del mensaje y por si acaso vuelcate el
mensaje a un fichero, para que quede por lo menos algo que salvar :P



- -Mar message id address address

The first argument must be a message id, and the remaining ones must be email
addresses. Exim adds the addresses to the list of recipients of the message
(`ar' for `add recipients'). However, if the message is active (in the middle
of a delivery attempt), its status is not altered. This option can be used
only by an admin user.

#!/bin/sh
for MessID in `exim -bp | grep frozen | awk '{ print $2 }'`
do
#copio las cabeceras
exim -Mvh $MessID  copia-$MessID
#copio el cuerpo
exim -Mvb $entrada  copia-$MessID
#añado mi destinario extra
exim -Mar $MessID [EMAIL PROTECTED]
#por si acaso descongelo el mensaje
exim -Mt $MessID
#con esto ya toy
done

si no te los envía por si solo ni descongelando, pues fuerza el envio con
exim -qff

:))

 No tengo ni idea como recuperarlos
 ¿alguien me podria decir como recuperarlos?


Suerte juanillo y recuerda que aunqe tu no nos quieras nosotros a ti sí
descastao
:PP



 Muchas Gracias
 +++
 Juan Francisco Guil Vazquez
 [EMAIL PROTECTED]
 POWERED BY LINUX  DEBIAN SARGE TESTING
 Linux user nº  #279087
 Socio Hispalinux 373
 +++

De na juanito
a mandar
:**
Victor
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE91N9jEzqHF8R72ekRAr38AJ4mBm8qSlEFfvmoB/m/pg/Xwbnf4gCdGsDS
ssS4Ni9MLjF7pORwSA228Yw=
=C0mo
-END PGP SIGNATURE-



Re: recuperar correos del mailq?

2002-11-15 Thread Victor Calzado Mayo
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

ahhh
claro, si recuperas los mensajes pero los sigue teniendo frozen...
exim -Mrm MessID 
para borrarlos todos
;))
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE91OPUEzqHF8R72ekRAiIYAKCPR+WpEN81Xd6cl00ae/dYaC5rnQCgmxVF
ZOUbtePwoJeiSWrRx3ty+64=
=UhNz
-END PGP SIGNATURE-



Re: recuperar correos del mailq?

2002-11-15 Thread Juan Guil
Muchas Gracias Tio.
Te lo agradezco de Corazon (Sabia que me ibas a contestar)

Un abrazo
- Original Message -
From: Victor Calzado Mayo [EMAIL PROTECTED]
To: Lista Debian debian-user-spanish@lists.debian.org
Sent: Friday, November 15, 2002 12:49 PM
Subject: Re: recuperar correos del mailq?


 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Hola Juanillo
 que te enfurruñas con nosotros y no nos quieres nada
 :PP
 On Friday 15 November 2002 11:20, Juan Guil wrote:
  Hola:
  HE tenido un pequeño fallo y me ha pasado lo siguiente:
  Yo bajo el correo de mis servidores con el fetchmail.
  Ayer tuve que modificar una cuenta en el fichero .fetchmailrc por
poblemas
  con el servidor (aun sigo teniendolo porque eresMas es un CHAPUZA), y
sin
  querer modifique tambien una de las lineas de unas de mis cuentas que si
me
  funciona bien, es decir, comente tambien la linea
  to [EMAIL PROTECTED] de la otra cuenta.
  ¿Que paso?
  Que mientras me ha estado recogiendo los correos el fetchmail de mi
cuenta,
  el exim al no saber donde poner los correos ya que la linea estaba
  comentada, me los ha puesto en la cola de correos (Que la verdad no se
como
  se llama) que pones cuando ejecutas el mailq.

 Para ver lo que tienes en la cola haz un:

 exim -bp

 debbie:/home/vcalzado# exim -bp
 49d  1.5K 17us47-Hn-00  *** frozen ***
   [EMAIL PROTECTED]

 49d  2.2K 17us4F-I4-00  *** frozen ***
   [EMAIL PROTECTED]

 vaya

 Parece que yo también tengo algún correo que tiene mal el destinatario
 ( ¿a quién ha decidido tu fetchmail que le iba a enviar el correo si no
tenía
 to? )

 bueno, editemos uno a ver que hace
 # export VISUAL=vi
 # exim -Meb 17us47-Hn-00
 17us47-Hn-00-D
 This message was created automatically by mail delivery software (Exim).

 A message that you sent could not be delivered to one or more of its
 recipients. This is a permanent error. The following address(es) failed:

   [EMAIL PROTECTED]
 unknown local-part root in domain debian

 - -- This is a copy of the message, including all the headers. --

 buff, mi usuario no existe en el sistema, es un mensaje de
 error
 ¿Será lo mismo que tienen los tuyos y los correos son para el fulano que
 ejecuta fetchmail ?
 
 Si no es así, osea los tuyos tienen un destinatario válido pero estan
frozen
 pues:
 ( cuidado si no lo tienen el sistema puede acabar mandando tu correo a
vete a
 saber donde )
 exim -qff

 debería quitarlos de frozen e intentar enviarlos:
 2002-11-15 12:25:56 17us4F-I4-00 Completed
 2002-11-15 12:25:56 17us4F-I8-00 Unfrozen by forced delivery

 Pero claro
 Si los correos van a un dominio que no es local... pues los pierdes
todos...
 porque los lanza contra tu smarthost:

 2002-11-15 12:25:56 17us4F-I8-00 = [EMAIL PROTECTED] R=smarthost
T=remote_smtp
 H=asterisios.cnio.es

 Por lo que...
 Asegurate de que el dominio del destinario es local...

 ¿Cómo?

 a mi me gusta este:

 # exim -Mvh message id

 The contents of the message headers (-H) spool file are written to the
 standard output. This option can be used only by an admin user.


 ¿Qué te ha ocurrido realmente?

 ¿Qué tal mirar el log en la base de datos de deliveries?

 exim -Mvl message id

 Bueno venga, ya te has mirado las cosas , ya tienes más o menos claro lo
que
 pasa pero sigues sin poder recuperar el correo, pues bueno, venga, una
 ñapilla pal Juan:


 Hum
 De no poder hacer nada asi, están frozen y no pueden ser enviados..
 Pués , ñapa v

 Añade a tu usuario como destinario del mensaje y por si acaso vuelcate el
 mensaje a un fichero, para que quede por lo menos algo que salvar :P



 - -Mar message id address address

 The first argument must be a message id, and the remaining ones must be
email
 addresses. Exim adds the addresses to the list of recipients of the
message
 (`ar' for `add recipients'). However, if the message is active (in the
middle
 of a delivery attempt), its status is not altered. This option can be used
 only by an admin user.

 #!/bin/sh
 for MessID in `exim -bp | grep frozen | awk '{ print $2 }'`
 do
 #copio las cabeceras
 exim -Mvh $MessID  copia-$MessID
 #copio el cuerpo
 exim -Mvb $entrada  copia-$MessID
 #añado mi destinario extra
 exim -Mar $MessID [EMAIL PROTECTED]
 #por si acaso descongelo el mensaje
 exim -Mt $MessID
 #con esto ya toy
 done

 si no te los envía por si solo ni descongelando, pues fuerza el envio con
 exim -qff

 :))

  No tengo ni idea como recuperarlos
  ¿alguien me podria decir como recuperarlos?


 Suerte juanillo y recuerda que aunqe tu no nos quieras nosotros a ti sí
 descastao
 :PP


 
  Muchas Gracias
  +++
  Juan Francisco Guil Vazquez
  [EMAIL PROTECTED]
  POWERED BY LINUX  DEBIAN SARGE TESTING
  Linux user nº  #279087
  Socio Hispalinux 373
  +++

 De na juanito
 a mandar
 :**
 Victor
 -BEGIN PGP

mailq

2002-07-25 Thread bieniu



heja

taki problem 

uzywam postfixa i gdy czasem zdazy sie ze sle do 
listy mailowej ludzi to niektorych maili nie ma
i zapycha mi sie queue i ciezko latac po katalogach 
spoola postfixa i wymazywac z lapy

pod komenda mailq widac liste, jak wymazac jest 
jakas komenda ?


Re: mailq

2002-07-25 Thread Krzysztof Krzyzaniak
On Fri, Jul 26, 2002 at 03:16:01PM +0200, bieniu wrote:
 heja
 
 taki problem 
 
 uzywam postfixa i gdy czasem zdazy sie ze sle do listy mailowej ludzi to 
 niektorych maili nie ma
 i zapycha mi sie queue i ciezko latac po katalogach spoola postfixa i 
 wymazywac z lapy
 
 pod komenda mailq widac liste, jak wymazac jest jakas komenda ?

postsuper

  eloy
-- 
[EMAIL PROTECTED]

  You're going to reap just what you sow, you're going to reap
 Oh! What a perfect day


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: mailq

2002-07-25 Thread bieniu
no ale nie bede przeciez z lapy wpisywac kazdego id maila jak ih tam jest ze
100 hmmm

- Original Message -
From: Krzysztof Krzyzaniak [EMAIL PROTECTED]
To: debianowa lista debian-user-polish@lists.debian.org
Sent: Thursday, July 25, 2002 3:16 PM
Subject: Re: mailq


 On Fri, Jul 26, 2002 at 03:16:01PM +0200, bieniu wrote:
  heja
 
  taki problem
 
  uzywam postfixa i gdy czasem zdazy sie ze sle do listy mailowej ludzi to
niektorych maili nie ma
  i zapycha mi sie queue i ciezko latac po katalogach spoola postfixa i
wymazywac z lapy
 
  pod komenda mailq widac liste, jak wymazac jest jakas komenda ?

 postsuper

   eloy
 --
 [EMAIL PROTECTED]
rg--

   You're going to reap just what you sow, you're going to reap
  Oh! What a perfect day


 --
 To UNSUBSCRIBE, email to [EMAIL PROTECTED]
 with a subject of unsubscribe. Trouble? Contact
[EMAIL PROTECTED]



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: mailq

2002-07-25 Thread Adam Galant
 no ale nie bede przeciez z lapy wpisywac kazdego id maila jak ih tam jest ze
 100 hmmm

Spróbuj tak:
for i in `mailq | grep MAIL | cut -c -9`; do postsuper $i; done

Nie wiem, jak używać postsuper (w manualu nic nie znalazłem o usuwaniu
maila o danym id...), ale wymyślisz coś na ten wzór.

Pozdrawiam,

Adam





--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Lschen von eMails im exim-mailq

2002-06-21 Thread Andreas Metzler

Gerhard Engler [EMAIL PROTECTED] wrote:
 durch einen Fehler mit samassassin habe ich eine Reihe von eMails in der 
 exim-mailq. Diese würde ich gerne löschen exim -Mrm geht aber 
 anscheinend nicht.
[...]

Wie geht nicht, Fehlermeldung (mit -Option -d10)?
downhill:~# mailq
 0m   347 17LIKA-0001Fb-00 [EMAIL PROTECTED]
  [EMAIL PROTECTED]
downhill:~# exim  -Mrm 17LIKA-0001Fb-00
Message 17LIKA-0001Fb-00 has been removed

   cu andreas


-- 
Zum AUSTRAGEN schicken Sie eine Mail an [EMAIL PROTECTED]
mit dem Subject unsubscribe. Probleme? Mail an [EMAIL PROTECTED] (engl)




Lschen von eMails im exim-mailq

2002-06-20 Thread Gerhard Engler

Hallo Mailingliste,

durch einen Fehler mit samassassin habe ich eine Reihe von eMails in der 
exim-mailq. Diese würde ich gerne löschen exim -Mrm geht aber 
anscheinend nicht.

Wie kriege ich die eMails raus?

Vielen Dank!

Gerhard


-- 
Zum AUSTRAGEN schicken Sie eine Mail an [EMAIL PROTECTED]
mit dem Subject unsubscribe. Probleme? Mail an [EMAIL PROTECTED] (engl)




Re: Lschen von eMails im exim-mailq

2002-06-20 Thread Udo Mueller

Hallo Gerhard,

* Gerhard Engler schrieb [20-06-02 23:01]:
 Hallo Mailingliste,
 
 durch einen Fehler mit samassassin habe ich eine Reihe von eMails in der 
 exim-mailq. Diese würde ich gerne löschen exim -Mrm geht aber 
 anscheinend nicht.
 
 Wie kriege ich die eMails raus?

rm /var/spool/exim/input/*
rm /var/spool/exim/msglog/*

_So_ auf alle Fälle. ;]

Gruss Udo

-- 
Einmal im Monat ist meine Frau freundlich zu mir.
Sie sagt dann Herr und Sie zu mir.
Her mit dem Geld; sieh zu, daß du mehr verdienst



msg10870/pgp0.pgp
Description: PGP signature


Re: Löschen von eMails im exim-mailq

2002-06-20 Thread Hartmut Figge

[Udo Mueller]:

 * Gerhard Engler schrieb [20-06-02 23:01]:

Wie kriege ich die eMails raus?

 rm /var/spool/exim/input/*
 rm /var/spool/exim/msglog/*
 
 _So_ auf alle Fälle. ;]

oder komfortabler mit eximon, so mich meine Erinnerung an slink nicht
täuscht.

cu
-- 
hafi


-- 
Zum AUSTRAGEN schicken Sie eine Mail an [EMAIL PROTECTED]
mit dem Subject unsubscribe. Probleme? Mail an [EMAIL PROTECTED] (engl)




mailq question

2001-12-19 Thread Jijo Jose A
hi all
i still used exim as MTA. how can i run 'mailq ' without as root . In the 
normal user it seems to 'exim: permission denied' will occured.
TIA
-jijojose


 



Re: mailq question

2001-12-19 Thread Johann Spies
On Wed, Dec 19, 2001 at 01:39:03PM +0530, Jijo Jose A wrote:
 hi all
 i still used exim as MTA. how can i run 'mailq ' without as root . In the 
 normal user it seems to 'exim: permission denied' will occured.

You can add the user to the group mail but I am not sure about the
security risk involved.  Maybe some other can comment.

Johann.
-- 
Johann Spies  Telefoon: 021-808 4036
Informasietegnologie, Universiteit van Stellenbosch

 And the angel said to her,  Do not be afraid, Mary; 
  for you have found favor with God. And behold, you 
  will conceive in your womb, and bear a son, and you 
  shall name Him Jesus.   Luke 1:30,31 



Re: mailq question

2001-12-19 Thread Alvin Oga

h ya jijo

put mailq as an app that jijo can run in the sudo.conf
file
( ie.. check into sudo )

have fun
alvin


On Wed, 19 Dec 2001, Johann Spies wrote:

 On Wed, Dec 19, 2001 at 01:39:03PM +0530, Jijo Jose A wrote:
  hi all
  i still used exim as MTA. how can i run 'mailq ' without as root . In the 
  normal user it seems to 'exim: permission denied' will occured.
 
 You can add the user to the group mail but I am not sure about the
 security risk involved.  Maybe some other can comment.
 
 Johann.



mailq

2001-09-09 Thread Michael P. Soulier
Greetings. 

mailq is linked to exim, so the mailq command is just a shortcut to do a
queue check. Is it a security risk to permit normal users to check the mailq,
because if I try it as a non-root user, I get permission denied. 

Thanks,

Mike

-- 
Michael P. Soulier [EMAIL PROTECTED], GnuPG pub key: 5BC8BE08
Pretty soon, massive bloat is the industry standard and everyone is using
huge, buggy programs not even their developers can love.
-Eric S. Raymond, The Art of Unix Programming


pgpVP89pIM2oU.pgp
Description: PGP signature


Re: mailq

2001-09-09 Thread Davor Balder
On Sun, Sep 09, 2001 at 07:29:50AM -0400, Michael P. Soulier wrote:
 Greetings. 
 
 mailq is linked to exim, so the mailq command is just a shortcut to do a
 queue check. Is it a security risk to permit normal users to check the mailq,
 because if I try it as a non-root user, I get permission denied. 
 
 Thanks,
 
 Mike
 
 -- 
 Michael P. Soulier [EMAIL PROTECTED], GnuPG pub key: 5BC8BE08
 Pretty soon, massive bloat is the industry standard and everyone is using
 huge, buggy programs not even their developers can love.
 -Eric S. Raymond, The Art of Unix Programming


No, it's not a security risk... for the reasons you mentioned... just edit 
permissions in usual manner...


Take care, 

Davor



pgpXgkJOF2SHN.pgp
Description: PGP signature


Re: mailq

2001-09-09 Thread Brian Potkin
On Sun, Sep 09, 2001 at 11:02:34PM +1000, Davor Balder wrote:

 No, it's not a security risk... for the reasons you mentioned... just
 edit permissions in usual manner...

There is no need to alter permissions to change this behaviour.  Setting
queue_list_requires_admin to false in /etc/exim.conf is sufficient.  Or
I suppose adding a user to group mail would also be a way of seeing
queued mail.

Brian



Re: mailq

2001-09-09 Thread Brian Potkin
On Sun, Sep 09, 2001 at 07:29:50AM -0400, Michael P. Soulier wrote:

 Greetings. 
 
 mailq is linked to exim, so the mailq command is just a shortcut to do a
 queue check. Is it a security risk to permit normal users to check the mailq,
 because if I try it as a non-root user, I get permission denied.

Originally I was going to comment that mailq on my system (exim version
3.12) works as described in the manual and gives a list of my outgoing
mails.  But being a little intrigued I thought the bug reports for exim
were worth a look.

Basically, this aspect of exim's behaviour was altered in version 3.3
and the message you got is now normal behaviour.

See bugs 109394, 107222 and 109619.

Brian.



smail, runq, mailq y cron

1999-06-17 Thread Cesar Talon
Hola,

He intentado modificar el crontab del smail para que ejecute el runq
cada pocos minutos en vez de ejecutarlo en los minutos 3,23,43 de cada
hora. He cambiado eso en /etc/smail/crontab y luego he vuelto a arrancar
el smail y también el cron, pero nada, el runq se sigue ejecutando cada
20 minutos como si nada.

¿Qué es lo que estoy haciendo mal? Supongo que hay algún otro fichero de
configuración que indica esto.

La razón de querer cambiarlo era en principio para conseguir que el mail
se distribuyese lo más rápido posible. Intenté buscar la forma de hacer
que el smail repartiese el mail sin ponerlo en una cola de espera, pero
no lo he logrado.

Gracias de antemano

-- 
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Cesar Talon email: [EMAIL PROTECTED]
Laboratorio de Bajas Temperaturas / Dpto.Física de la Materia condensada
Universidad Autonoma de Madrid / Cantoblanco, E-28049 Madrid
Phone: +34 91 397 4756 /  Fax:   +34 91 397 3961
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+