Sendmail options and queueing

Posted on 2001-08-19
Medium Priority
Last Modified: 2013-12-17
I think there is a way to filter mail by
letting sendmail recieve mail and place them in
one directory. A there have a script that filters the mail
and put it in a another directory and from there let
another sendmailprocess empty that directory/queue.

Which parameters should I put after the sendmail command ?

Claes Lindvall
Question by:cl071997
  • 2

Accepted Solution

HalldorG earned 600 total points
ID: 6404436
Well you would have to change the mailer lines in sendmail

check out amavis

It does more or less what you are thinking about and the README
describe how to to what you want to do.

Author Comment

ID: 6405282

Expert Comment

ID: 6405514
In queuing mode, and in deferred delivery mode, sendmail will place all the mails it receives in its queue directory (or across multiple directories, if you have multiple queuing configured). You can also invoke sendmail processes to run the queue, either in full or selecting by sender or by recipient, or by queue ID.

To run sendmail in queuing mode, either change your sendmail.cf or sendmail.mc file to include the appropriate option, or invoke sendmail with -O DeliveryMode=q in the command line.

To run a queue process, run

sendmail -q

To limit the queue process to messages by recipient, use

sendmail -qR<string>

- if <string> is found in the recipient address, the queue process will attempt to deliver the message


sendmail -qS<string>

to process by sender.

All of this is detailed in the sendmail man pages.


Author Comment

ID: 6405573

Featured Post

Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

One-stop solution for Exchange Administrators to address all MS Exchange Server issues, which is known by the name of Stellar Exchange Toolkit.
Here in this article, you will get a step by step guidance on how to restore an Exchange database to a recovery database. Get a brief on Recovery Database and how it can be used to restore Exchange database in this section!
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…

619 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question