cl071997
asked on
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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
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
ASKER
ASKER