Hi,

I am running a mail server for a community, my server receives lot of spam, which results in thousands of emails in mail queue as the senders use dummy emails.

I am using Sendmail on Linux Red Hat 7.2, the folder of mail queue is /var/spool/mqueue. I want to use a php script and program is via Webmin/Cron to execute it couple of times a day to delete only files from the queue.

Any idea of how to code this script?

    Hello,

    Plz tell me how to code it, it must be a simple script, thanks.

      Get SA, itll do alot of the stuff for you. But if you still want to empty the mail queue, id suggest using a shell script. Take you about 10 minutes to write one and then sue Cron jobs to excute it. I was curious, what IMAP server or pop3 server do you use? and do you use Virtual Accounts or plain old system users for every account?

        drag0n plz tell me what u mean by SA, I am using Sendmail for both, and creating virtual accounts via php+mysql application, thanks.

          maybe we should move this forum to e-mail, e-mail me at
          hennychenny at yahoo dot com
          I am using Sendmail also and having trouble with virtual accounts, maybe you can help ME out and I can help you out.

            Write a Reply...