Re: n00b question

2015-10-07 Thread Sunil Nimmagadda
> On Tue, Oct 06, 2015 at 13:38:31 -0400, Bryan C. Everly wrote:
> > I have two servers up and running and would like to know how to clean
> > out the queue on them.  I have a lot of test messages stuck there from
> > early attempts to get the configuration right.
> > 
> > Is there an option to do this?  I read the manpages and didn't see
> > anything.  If it's as simple as deleting some files out of a
> > directory, I'm fine doing that - I just couldn't find the right
> > directory.
> 
> When you're sure you want to get rid of every message in the queue you can us
e
> this one-liner (maybe overly complicated):
>  
> smtpctl show queue | awk -F \| '{ print "smtpctl remove "$1 }' |sh
> 
> Afaik there is no build in way to clean out the whole queue. 

There will be a...
# smtpctl remove all
in the future release. It's already in -current on github.

--
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: n00b question

2015-10-06 Thread Bryan C. Everly
Thanks!

Thanks,
Bryan


On Tue, Oct 6, 2015 at 1:42 PM, Joseph Mulloy  wrote:
> Use smtpctl
>
> https://www.opensmtpd.org/smtpctl.8.html
>
> List messages in queue
> smtpctl show queue
>
> To try to flush the queue (Send all messages)
> smtpctl schedule all
>
> To remove messages use the following with the message ids shown by show queue
> smtpctl remove $message-id
>
>> On Oct 6, 2015, at 1:38 PM, Bryan C. Everly  wrote:
>>
>> Hi,
>>
>> I have two servers up and running and would like to know how to clean
>> out the queue on them.  I have a lot of test messages stuck there from
>> early attempts to get the configuration right.
>>
>> Is there an option to do this?  I read the manpages and didn't see
>> anything.  If it's as simple as deleting some files out of a
>> directory, I'm fine doing that - I just couldn't find the right
>> directory.
>>
>> Thanks in advance for any help you can provide.
>>
>> Thanks,
>> Bryan
>>
>> --
>> You received this mail because you are subscribed to misc@opensmtpd.org
>> To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org
>>
>

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: n00b question

2015-10-06 Thread Christoph Borsbach
On Tue, Oct 06, 2015 at 13:38:31 -0400, Bryan C. Everly wrote:
> I have two servers up and running and would like to know how to clean
> out the queue on them.  I have a lot of test messages stuck there from
> early attempts to get the configuration right.
> 
> Is there an option to do this?  I read the manpages and didn't see
> anything.  If it's as simple as deleting some files out of a
> directory, I'm fine doing that - I just couldn't find the right
> directory.

When you're sure you want to get rid of every message in the queue you can use
this one-liner (maybe overly complicated):
 
smtpctl show queue | awk -F \| '{ print "smtpctl remove "$1 }' |sh

Afaik there is no build in way to clean out the whole queue. 

Best,
Christoph

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: n00b question

2015-10-06 Thread Joseph Mulloy
Use smtpctl

https://www.opensmtpd.org/smtpctl.8.html

List messages in queue
smtpctl show queue

To try to flush the queue (Send all messages)
smtpctl schedule all

To remove messages use the following with the message ids shown by show queue
smtpctl remove $message-id

> On Oct 6, 2015, at 1:38 PM, Bryan C. Everly  wrote:
> 
> Hi,
> 
> I have two servers up and running and would like to know how to clean
> out the queue on them.  I have a lot of test messages stuck there from
> early attempts to get the configuration right.
> 
> Is there an option to do this?  I read the manpages and didn't see
> anything.  If it's as simple as deleting some files out of a
> directory, I'm fine doing that - I just couldn't find the right
> directory.
> 
> Thanks in advance for any help you can provide.
> 
> Thanks,
> Bryan
> 
> -- 
> You received this mail because you are subscribed to misc@opensmtpd.org
> To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org
> 


--
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org