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
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.
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. . . .
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
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