Koozali.org formerly Contribs.org

How to stop mail service?

vlevalois

How to stop mail service?
« 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

Offline raem

  • *
  • 3,972
Re: How to stop mail service?
« Reply #1 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
...

vlevalois

How to stop mail service?
« Reply #2 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?

vlevalois

How to stop mail service?
« Reply #3 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.

Offline raem

  • *
  • 3,972
How to stop mail service?
« Reply #4 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
...

Offline raem

  • *
  • 3,972
How to stop mail service?
« Reply #5 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
...