11-15-2004
http://userpages.umbc.edu/~ian/procmail.html
The above link is useful ; It is descibing how to use 'procmail'
which does filtering which u are looking for ;
I do n't have a chance to work on that as i don't have procmail in my system;
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all:
I have a problem with this simple script. It appears that it should work, but I am getting an error message.
I am trying to pass a file through a filter to grep for "urgent" and forward the message to me.
Here it is.
#!/bin/ksh
#
if (`grep urgent /tmp/test.tmp| wc -l` -gt 0)... (13 Replies)
Discussion started by: Kelam_Magnus
13 Replies
2. UNIX for Dummies Questions & Answers
When I try to use the CLI mail, I get the following error. What's wrong?
Welcome to Darwin!
% mail root
Subject: test
test
.
EOT
% /etc/mail/sendmail.cf: line 81: fileclass: cannot open /etc/mail/local-host-names: Group writable directory
Do I just need to change the... (1 Reply)
Discussion started by: chenly
1 Replies
3. Solaris
Dear All,
Now I use solaris 10 and I try to forward mail from /var/mail/username to their external mail so what should I do?
thank u in advance (2 Replies)
Discussion started by: unitipon
2 Replies
4. UNIX for Dummies Questions & Answers
Hi
The below script working when we are sending the html as attachment can u please guide how to send thesmae data in table form direct in the mail and not in mail attachment .
cat Employee.sql
SET VERIFY OFF
SET PAGESIZE 200
SET MARKUP HTML ON SPOOL ON PREFORMAT OFF ENTMAP ON -
HEAD... (0 Replies)
Discussion started by: mani_isha
0 Replies
5. UNIX for Advanced & Expert Users
i have sun machines having solaris 9 & 10 OS . Now i need to send mail from the machines to my outlook account . I have the ip adress of OUTLOOK mail server. Now what are the setting i need to do in solaris machines so that i can use mailx or sendmail.
actually i am trying to automate the high... (2 Replies)
Discussion started by: amitranjansahu
2 Replies
6. OS X (Apple)
I was wondering -- when I delete a mail message, I know it goes into the trash, but I've noticed that the subject lines of messages are still in the viewing pane, and I have to delete them as well. Can anyone tell me why this is, and where they are? (1 Reply)
Discussion started by: Straitsfan
1 Replies
7. Linux
hi experts
2012-01-30 10:30:01:812 "y" "NA" "30/01/2012 10:30:01:154 AM"
2012-01-30 10:33:46:342 "y" "NA" "30/01/2012 10:33:45:752 AM"
2012-01-30 10:41:11:148 "n" "200" "30/01/2012 10:41:10:558 AM"
2012-01-30 10:44:48:049 "y" "NA" ... (7 Replies)
Discussion started by: nith_anandan
7 Replies
8. UNIX for Dummies Questions & Answers
Hi Folks,
I have a text file with lots of rows with duplicates in the first column, i want to filter out records based on filter columns in a different filter text file.
bash scripting is what i need.
Data.txt
Name OrderID Quantity
Sam 123 300
Jay 342 498
Kev 78 2500
Sam 420 50
Vic 10... (3 Replies)
Discussion started by: tech_frk
3 Replies
9. UNIX for Advanced & Expert Users
I am having trouble getting mail to work on a red hat server. At first I was getting this message.
Diagnostic-Code: X-Postfix; delivery temporarily suspended: connect to :25: Connection refused
Then added the port to my firewall. Then I temporarily turned off selinux. I then copied this file... (1 Reply)
Discussion started by: cokedude
1 Replies
DMAIL(1) General Commands Manual DMAIL(1)
NAME
dmail - procmail Mail Delivery Module
SYNOPSIS
dmail [-D] [-f from_name] [-s] [-k keyword_list] [user][+folder]
DESCRIPTION
dmail delivers mail to a user's INBOX or a designated folder. dmail may be configured as a drop-in replacement for binmail(1),
mail.local(1) for use with a mail delivery filter such as procmail(1).
Because of security considerations (see below) dmail is not intended to be used for direct delivery by the mailer daemon; tmail(1) is the
preferred tool for this purpose. If dmail is used for mailer daemon delivery, the mailer daemon must invoke dmail with the dmail process'
user id set to the recipient's user id.
When dmail exits, it returns exit status values to enable procmail(1) to determine whether a message was delivered successfully or had a
temporary (requeue for later delivery) or permanent (return to sender) failure.
If the user name is present, it must be the same as the logged-in user name.
If the +folder extension is included in the user argument (or appears by itself if there is no user argument), dmail will attempt to
deliver to the designated folder. If the folder does not exist or the extension is not included, the message is delivered to the user's
INBOX. If delivery is to INBOX and no INBOX currently exists, dmail will create a new INBOX. dmail recognizes the format of an existing
INBOX or folder, and appends the new message in that format.
The -D flag specifies debugging; this enables additional message telemetry.
The -f or -r flag is used to specify a Return-Path. The header
Return-Path: <from_name>
is prepended to the message before delivery.
The -s flag specifies that the message will be flagged as being "seen".
The -k flag is used to specify delivery keywords, which are set on the message at delivery time if and only if the keywords are already
defined in the mailbox. Multiple keywords can be specified by using a quoted string, e.g.,
dmail -k "$Junk Discard" +junkbox
RESTRICTIONS
Absolute pathnames and ~user specifications are not permitted in +folder extensions.
SECURITY CONSIDERATIONS
Unlike tmail you can use dmail to deliver to IMAP4 namespace names via +folder extensions. This means that it is possible to deliver to
mh(1) format mailboxes.
However, this can also include such namespaces as #shared, #public, and #ftp. In most cases, it is undesirable to allow anybody sending
mail to the user to deliver to these namespaces. Consequently, there needs to be a rule in place in the configuration of either
sendmail(8) or procmail(1) to prevent such abuse.
AUTHOR
Mark Crispin, MRC@CAC.Washington.EDU
SEE ALSO
binmail(1)
procmail(1)
June 18, 2007 DMAIL(1)