Process particular mail queued in /var/spool/mqueue

Hi,

Is there a way to run sendmail manually to process particular mails
stuck in /var/spool/mqueue?

Running "sendmail -q -v" sometimes just takes too long to reach certain
mails in /var/spool/mqueue due to time out on non deliverable mails
ahead in the queue.

Simon
Simon Gao [ Fr, 17 August 2007 01:42 ] [ ID #1798335 ]

Re: Process particular mail queued in /var/spool/mqueue

Simon Gao wrote:

> Is there a way to run sendmail manually to process particular mails
> stuck in /var/spool/mqueue?

Yes.

Process messages destined for domains containing "example.com":
sendmail -v -qRexample.com

Process messages whose queue-id contains 12345:
sendmail -v -qI12345

All of this info is in the sendmail man page. I guess that would've been
too easy...

--
David.
DFS [ Fr, 17 August 2007 02:53 ] [ ID #1798337 ]

Re: Process particular mail queued in /var/spool/mqueue

On 8/16/2007 7:53 PM, David F. Skoll wrote:
> Process messages destined for domains containing "example.com":
> sendmail -v -qRexample.com
>
> Process messages whose queue-id contains 12345:
> sendmail -v -qI12345

You can also do
sendmail -v -qSsender [at] domain.tld

-v is for verbose to watch, omit it if you don't care to watch.

-q will take S for sender, R for recipient, and I for queue ID.

The parameters after the S and R can be either a full email address
"user [at] domain.tld" or a domain name " [at] domain.tld".



Grant. . . .
gtaylor [ Fr, 17 August 2007 03:19 ] [ ID #1798339 ]

Re: Process particular mail queued in /var/spool/mqueue

In article
<mailman.43.1187313576.11203.comp.mail.sendmail [at] maillists.riverviewtech.net>
Grant Taylor <gtaylor [at] riverviewtech.net> writes:
>On 8/16/2007 7:53 PM, David F. Skoll wrote:
>> Process messages destined for domains containing "example.com":
>> sendmail -v -qRexample.com
>>
>> Process messages whose queue-id contains 12345:
>> sendmail -v -qI12345
>
>You can also do
> sendmail -v -qSsender [at] domain.tld
>
>-v is for verbose to watch, omit it if you don't care to watch.
>
>-q will take S for sender, R for recipient, and I for queue ID.

And Q for "quarantine reason".

>The parameters after the S and R can be either a full email address
>"user [at] domain.tld" or a domain name " [at] domain.tld".

It's just a substring (also for -qI and -qQ).

Read the man page as David suggested.

--Per Hedeland
per [at] hedeland.org
per [ Fr, 17 August 2007 21:10 ] [ ID #1798356 ]

Re: Process particular mail queued in /var/spool/mqueue

Thanks all for the replies.

Simon

Per Hedeland wrote:
> In article
> <mailman.43.1187313576.11203.comp.mail.sendmail [at] maillists.riverviewtech.net>
> Grant Taylor <gtaylor [at] riverviewtech.net> writes:
>> On 8/16/2007 7:53 PM, David F. Skoll wrote:
>>> Process messages destined for domains containing "example.com":
>>> sendmail -v -qRexample.com
>>>
>>> Process messages whose queue-id contains 12345:
>>> sendmail -v -qI12345
>> You can also do
>> sendmail -v -qSsender [at] domain.tld
>>
>> -v is for verbose to watch, omit it if you don't care to watch.
>>
>> -q will take S for sender, R for recipient, and I for queue ID.
>
> And Q for "quarantine reason".
>
>> The parameters after the S and R can be either a full email address
>> "user [at] domain.tld" or a domain name " [at] domain.tld".
>
> It's just a substring (also for -qI and -qQ).
>
> Read the man page as David suggested.
>
> --Per Hedeland
> per [at] hedeland.org
Simon Gao [ Mo, 20 August 2007 05:56 ] [ ID #1800743 ]
Miscellaneous » comp.mail.sendmail » Process particular mail queued in /var/spool/mqueue

Vorheriges Thema: Cannot receive email from sendmail under redhat 9
Nächstes Thema: The State of DKIM?