• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 493
  • Last Modified:

Sendmail options and queueing

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 ?

Regards
Claes Lindvall
0
cl071997
Asked:
cl071997
  • 2
1 Solution
 
HalldorGCommented:
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.
0
 
cl071997Author Commented:
0
 
vsamtaniCommented:
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

Similarly

sendmail -qS<string>

to process by sender.

All of this is detailed in the sendmail man pages.

Vijay
0
 
cl071997Author Commented:
0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now