10 More Discussions You Might Find Interesting
1. Solaris
I need to start a service among the last on a freshly booted system. Via the manifest, I've made it dependent on very milestone on the computer yet the service still comes back with an error that a kstat variable in the kernel does not exist.
I run it right the service process right there... (6 Replies)
Discussion started by: JWH
6 Replies
2. UNIX for Dummies Questions & Answers
Hi there!
A bit of a background: I am running an opensuse 11.3 box for fetching mails, scanning them for viruses and spam with amavis and deliver them to the user mailboxes in a dual sendmail daemon configuration: fetchmail -> sendmail-1 -> amavis -> sendmail-2 -> Exchange. Everything is... (1 Reply)
Discussion started by: lpacor
1 Replies
3. UNIX for Advanced & Expert Users
Hi there!
A bit of a background: I am running an opensuse 11.3 box for fetching mails, scanning them for viruses and spam with amavis and deliver them to the user mailboxes in a dual sendmail daemon configuration: fetchmail -> sendmail-1 -> amavis -> sendmail-2 -> Exchange. Everything is just... (0 Replies)
Discussion started by: lpacor
0 Replies
4. Red Hat
I have installed version of ntop 4.0.3 by guide.
But I can't start ntop daemon/service. I didn't find a service file for starting.
During the installation there was no problem only want to RRDTool so I installed that. Now there is no necessary package required.
I didn't find in /etc/init.d/... (9 Replies)
Discussion started by: getrue
9 Replies
5. Red Hat
Today I have installed VSFTPD but service is failing to start.
We have been using standard FTP successful but need to introduce an FTPS option.
I have run YUM install VSFTPD and everything appeared to load ok.
(If I run rpm - qa | grep vsftpd I get vsftpd-2.0.5-16.el5_4.1 which I... (4 Replies)
Discussion started by: PaulComins
4 Replies
6. Red Hat
hi,
i am using RHEL 5 and i am not able to on the vsftp
i have tried to on the vsftp service using command
service vsftpd start
Starting vsftpd for vsftpd:
i am posting the content of my /etc/xinetd.d/vsftpd file
# description: The vsftpd FTP... (2 Replies)
Discussion started by: u.n.i.x
2 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I wish to disable POP3 services in sendmail and just use IMAP. I am running: Version 8.13.4. How do I go about doing this?
According to the config file the Cyrus IMAP/POP3 server is being used so I am not sure how to go about configuring the config file to use only IMAP. (0 Replies)
Discussion started by: mojoman
0 Replies
8. AIX
As topic, assume we have a service called "blahservice"
and we can start it by:
startsrc -s blahservice
what is the best practice to run such command when system start?
- directly use mkitab to add it into /etc/inittab
or
- drop startup scripts in /etc/rc.d/rcX.d
I know they... (4 Replies)
Discussion started by: acerlinux
4 Replies
9. Shell Programming and Scripting
Hi
I need a service to be start as user after a reboot. My script in /etc/init.d contain the following:
start()
{
su - $USER
cd ${INSTALL_PATH}/bin
./MyApp -X
exit
return 0
}
This function stops after su - $USER, I get user shell, and only if I manualy... (5 Replies)
Discussion started by: potro
5 Replies
10. UNIX for Dummies Questions & Answers
Hi,
I have a shell script t1.sh. on my solaris box.
So, what are the steps required to make this script run as a Service, when the system re-starts. (for ex:- at run level 3).
I know that I should use the rc.d folders. But I don't know the exact steps.
Kindly explain,
Thanks in... (3 Replies)
Discussion started by: S.Vishwanath
3 Replies
mailexec(1) Mail Avenger 0.8.3 mailexec(1)
NAME
mailexec - run program on messages in mbox file or maildir
SYNOPSIS
mailexec [-nvFR] mailbox program [arg ...]
DESCRIPTION
mailexec runs a program over every message in mailbox, which must be an mbox-format mail file or maildir directory. For each message
encountered, mailexec executes program with the specified arguments, supplying the message as standard input. mailexec synthesizes a
"From " line and a "Return-Path:" header field for each message if the message does not already contain one. (This behavior can be
modified by the -F and -R flags, described below.)
When parsing mbox format files, mailexec unescapes "From " lines. If a line begins with one or more ">" characters followed by "From ",
mailexec deletes one of the ">" characters. If you do not want this unescaping behavior, see the formail(1) utility, which has a -s flag
that performs a similar function to mailexec.
OPTIONS
-n When processing a maildir, causes mailexec to look exclusively at "new" messages that have not yet been moved to the cur directory.
-v Turns on verbose mode. If mailbox is a maildir, mailexec prints out the name of each file it processes inside the maildir. If mailbox
is an mbox format file, mailexec prints the message-id of each message it processes (as long as messages have a message-id header).
-F Suppresses printing of the initial "From " line at the beginning of each message.
-R Suppresses printing of initial "Return-Path:" lines.
EXAMPLES
To get the same behavior as the Unix from(1) command on a mail directory dir, you can run either of the following two commands:
mailexec -n dir head -1
mailexec -n dir sed -ne 1p
To convert an mbox-format file mbox into a maildir directory dir, you can run:
mailexec mbox deliver dir/
Conversely, to convert maildir dir into an mbox-format file mbox, run:
mailexec dir deliver mbox
To train the spamassassin filter on a mail folder called spam containing unwanted messages, run:
mailexec spam sa-learn --spam
Note that this works whether spam is an mbox format file or a maildir directory.
If you have an old mbox file or maildir directory box and wish to "import" the old mail into your web mail account, say example@gmail.com,
you can run:
mailexec -F box sendmail example@gmail.com
Note again that this works whether box is an mbox format file or a maildir directory.
SEE ALSO
avenger(1), deliver(1), dotlock(1), avenger.local(8)
The Mail Avenger home page: <http://www.mailavenger.org/>.
BUGS
When reading from a maildir and synthesizing a "From " line, mailexec guesses the delivery date of the message based on the name of the
file, which works in practice but could be considered dangerous since file names in maildirs are supposed to be opaque. Thus, while
generally mailexec places sensible dates in "From " lines and processes maildir messages in order of delivery, it might be unwise to rely
on this behavior.
mailexec generates the time for the "From " line in the local time zone, as is customary on Unix. This could lead to loss of information
when transferring mailboxes across time zones or combining mailboxes created in different timezones. Moreover, this practice is
incompatible with qmail, which uses GMT in the "From " line.
mailexec expects that if there is a "Return-Path:" header field, it will be the first header field in the message (possibly after the
initial "From " line, which is not itself a header field).
There are many different variants of the mbox message format. mailexec expects the "mboxrd" variant, in which each message is delimited by
a "From " line at the beginning and a blank line at the end, and every line beginning with either "From " or one or more ">" characters
followed by "From " is escaped by adding another ">" character. In particular, this means mailexec will incorrectly parse System V
"mboxcl2" files, which use "Content-Length:" header fields to determine message boundaries rather than "From " lines.
mailexec attempts to lock mbox format files, but will execute anyway even if it cannot obtain the lock. This allows it to work on read-
only files, but if you are highly unlucky could result in the last message being truncated.
There is no locking for maildir files. If a maildir is modified while mailexec is running over it, mailexec could miss messages. If you
are concurrently manipulating the maildir with a mail reader, maildir could even miss old messages that just happen to have been moved from
the new to the cur directory. mailexec will issue a warning if it fails to open a file that it had previously seen when scanning the
directory.
AUTHOR
David Mazieres
Mail Avenger 0.8.3 2012-04-05 mailexec(1)