Koozali.org: home of the SME Server

Obsolete Releases => SME Server 6.x => Topic started by: vlevalois on July 20, 2007, 09:52:46 PM

Title: How to stop mail service?
Post by: vlevalois on July 20, 2007, 09:52:46 PM
Hello!

Is there a simple way to shut down any inbound/outbound email services on the server?

Thanks.

Vince
Title: Re: How to stop mail service?
Post by: raem on July 21, 2007, 02:36:52 AM
vlevalois

/sbin/e-smith/db configuration setprop qmail status disabled
/sbin/e-smith/db configuration setprop smtpfront-qmail status disabled
/etc/init.d/qmail stop
/etc/init.d/smptfront-qmail stop

signal-event email-update

Keep in mind you will no longer receive admin emails from root
Title: How to stop mail service?
Post by: vlevalois on July 23, 2007, 07:05:48 PM
Thank you for that.

On

/etc/init.d/smptfront-qmail stop

I get no such file or directory.

On

signal-event email-update

I get bash: signal-event: command not found

ideas?
Title: How to stop mail service?
Post by: vlevalois on July 23, 2007, 10:03:05 PM
Also...

Is there an easy command to delete ALL emails in the queue?  I've got about 126000 SPAM emails waiting to go out.

Thanks.
Title: How to stop mail service?
Post by: raem on July 24, 2007, 02:39:06 AM
vlevalois

Typo, that should be
/etc/init.d/smtpfront-qmail stop
and
/sbin/e-smith/signal-event email-update
Title: How to stop mail service?
Post by: raem on July 24, 2007, 02:48:39 AM
vlevalois

> Is there an easy command to delete ALL emails in the queue?  

Install the qmHandle contrib for sme6, and use command line commands to delete the queue
For syntax (use correct case) after installing the rpm
man qmHandle

As you ar estill using sme6 you are looking for
smeserver-qmHandle-1.0.2-9.noarch.rpm
or
e-smith-qmHandle-1.0.0-7.noarch.rpm

Search the forums on qmHandle