Downloading and installing Procmail As the software is now reasonably mature, Procmail is usually available for installation on most Linux distributions and can. January 22, 2015 krizna Centos, Centos 7 45 This article helps you to install and configure basic mail server on Centos 7. Here i have used Postfix for SMTP, Dovecot for POP/IMAP and Dovecot SASL for SMTP AUTH. ![]() DESCRIPTION For a quick start, see NOTES at the end. Procmail should be invoked automatically over the.forward file mechanism as soon as mail arrives. Alternatively, when installed by a sys- tem administrator (and in the standard Red Hat Linux configuration), it can be invoked from within the mailer immediately. When invoked, it first sets some environment variables to default values, reads the mail message from stdin until an EOF, separates the body from the header, and then, if no command line arguments are present, it starts to look for a file named $HOME/.procmailrc. Earth 2160 activation keygen torrent. According to the pro- cessing recipes in this file, the mail message that just arrived gets distributed into the right folder (and more). If no rcfile is found, or processing of the rcfile falls off the end, procmail will store the mail in the default system mailbox. If no rcfiles and no -p have been specified on the command line, procmail will, prior to reading $HOME/.procmailrc, interpret commands from /etc/procmailrc (if present). Care must be taken when creating /etc/procmailrc, because, if circumstances permit, it will be executed with root privileges (contrary to the $HOME/.procmailrc file of course). If running suid root or with root privileges, procmail will be able to perform as a functionally enhanced, backwards compatible mail deliv- ery agent. Procmail can also be used as a general purpose mail filter, i.e., provisions have been made to enable procmail to be invoked in a special sendmail rule. The rcfile format is described in detail in the man page. The weighted scoring technique is described in detail in the man page. Examples for rcfile recipes can be looked up in the man page. Signals TERMINATE Terminate prematurely and requeue the mail. HANGUP Terminate prematurely and bounce the mail. INTERRUPT Terminate prematurely and bounce the mail. QUIT Terminate prematurely and silently lose the mail. ALARM Force a timeout (see TIMEOUT). USR1 Equivalent to a VERBOSE=off. USR2 Equivalent to a VERBOSE=on. OPTIONS -v Procmail will print its version number, display its compile time configuration and exit. -p Preserve any old environment. Normally procmail clears the environment upon startup, except for the value of TZ. However, in any case: any default values will override any preexisting environment variables, i.e., procmail will not pay any attention to any prede- fined environment variables, it will happily overwrite them with its own defaults. For the list of environment variables that proc- mail will preset see the man page. If both -p and -m are specified, the list of preset environment variables shrinks to just: LOGNAME, HOME, SHELL, ORGMAIL and MAILDIR. ![]() -t Make procmail fail softly, i.e., if procmail cannot deliver the mail to any of the destinations you gave, the mail will not bounce, but will return to the mailqueue. Ati technologies sb700 lpc host controller driver- download preactivated version. Another delivery-attempt will be made at some time in the future. -f fromwhom Causes procmail to regenerate the leading `From ' line with fromwhom as the sender (instead of -f one could use the alternate and obsolete -r). If fromwhom consists merely of a single `-', then procmail will only update the timestamp on the `From ' line (if present, if not, it will generate a new one). -o Instead of allowing anyone to generate `From ' lines, simply override the fakes. -Y Assume traditional Berkeley mailbox format, ignore any Content-Length: fields. -a argument This will set $1 to be equal to argument. Each succeeding -a argument will set the next number variable ($2, $3, etc). It can be used to pass meta information along to procmail. This is typically done by passing along the $@x information from the sendmail mailer rule. -d recipient. This turns on explicit delivery mode, delivery will be to the local user recipient. This, of course, only is possible if procmail has root privileges (or if procmail is already running with the recipient's euid and egid). Procmail will setuid to the intended recipi- ents and delivers the mail as if it were invoked by the recipient with no arguments (i.e., if no rcfile is found, delivery is like ordinary mail). This option is incompatible with -p. -m Turns procmail into a general purpose mail filter.
0 Comments
Leave a Reply. |