Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Hi to all,
I have setup and actually running a Postfix SMTP with DSPAM as antispam method. I did not wanted to use other ports, so I decided to use postfix 's content filtering, aka content_filter in master.cf.
Unfortunately, my users are complaining about spam. Checking /var/log/maillog, I found that dspam permitted all incoming mail to be delivered to my users! I suppose that the configuration is wrong.
Initial problem was solved. Somehow, postfix was not trusted from dspam, that way, dspam did not reinjected mail to postfix.
Now, I have another problem.
All mails of July 8,2008 are stored in file /var/spool/dspam (and we are talking about 1300 emails). I managed to extract messages from dspam to files, as I use maildir, using the mb2ml tool. Now, I want to manually insert those files in a postfix queue, in order to be delivered to my user's mailboxes. How can I do that?
I tried by copying files to various queues (incoming, hold, bounce, etc) but
mailq reports an empty queue. A real example of the extracted filename is:
No, you can't copy the files into postfix queues. Those are postfix private, and the contents is undocumented (because it is private).
You can reintroduce into the post content_filter smtpd port with something like mini_sendmail. If you don't care that the mail goes through the content filter again, you can reintroduce into the before content_filter smtpd process. For this you can use even sendmail (sendmail -i recipient < mail_file).
Caution! Using the -t option for already-queued mail will misdirect and loose mail. This option is only appropriate for original mail submission where you control who is in the headers.
Hopefully the messages have a Delivered-To: header or other information that shows the actual recipient. OP will need a script to extract this information and inject the mail into sendmail or mini_sendmail.
The advice from all the others is correct... there is no way to directly move these files into a postfix queue. The only ways to get mail into postfix is via the sendmail(1) command, or via SMTP or QMQP
I've only used mini_sendmail in the case Noel suggests - you'll have to verify your recipients.