procmail
[Top] [All Lists]

Re: help

2000-08-29 10:01:16
--------
 Hello all:
i am seting up a mailserver in my solaris7 system,my MTA is sendmail8.9.3
how could i use procmail as a local deliver agent to deliver mail to every us
er's home mailbox?please help me and give me more details,i have  lost my 
soul for a long time.

When you install sendmail, there is a bunch of m4 macros you can use to 
configure it.

There's a lot of reading to do to get the whole thing right, but only a little 
bit of typing;-)

Once you have installed it, you will have a directory that's conents are mich 
like this (on RHL 6.2):
[root(_at_)dugite sendmail-cf]# ls
total 132
-r--r--r--    1 root        90792 Feb  4  1999 README
drwxr-xr-x    2 root         4096 Aug 29 16:50 cf
drwxr-xr-x    2 root         4096 Aug 29 16:50 domain
drwxr-xr-x    2 root         4096 Aug 29 16:50 feature
drwxr-xr-x    2 root         4096 Aug 29 16:50 hack
drwxr-xr-x    2 root         4096 Aug 29 16:50 m4
drwxr-xr-x    2 root         4096 Aug 29 16:50 mailer
drwxr-xr-x    2 root         4096 Aug 29 16:50 ostype
drwxr-xr-x    2 root         4096 Aug 29 16:50 sh
drwxr-xr-x    2 root         4096 Aug 29 16:50 siteconfig
[root(_at_)dugite sendmail-cf]#
 
On my Linux system, it's at /usr/lib/sendmail-cf/

You do your work in the cf directory

For my purposes, I can get away with this:[root(_at_)possum cf]# cat possum.mc
divert(-1)
include(`../m4/cf.m4')dnl
define(`confDEF_USER_ID',``8:12'')dnl
OSTYPE(`linux')dnl
DOMAIN(`Summerfield')dnl
define(`SMART_HOST',`relay:mail.os2.ami.com.au.')dnl
 
MAILER(smtp)dnl
MAILER(procmail)dnl
[root(_at_)possum cf]#
 
 and this:
[root(_at_)possum cf]# cat ../domain/Summerfield.m4
divert(-1)
#
 
#
#  The following is a generic domain file.  You should be able to
#  use it anywhere.  If you want to customize it, copy it to a file
#  named with your domain and make the edits; then, copy the appropriate
#  .mc files and change `DOMAIN(generic)' to reference your updated domain
#  files.
#
divert(0)
VERSIONID(`@(#)Summerfield.m4   8.3 (Berkeley) 3/24/96')
define(`ALIAS_FILE',`/etc/mail/aliases')dnl
define(`confCW_FILE', ` /etc/mail/sendmail.cw')dnl
define(`confTO_QUEUEWARN', 19h)dnl
define(`confTO_QUEUEWARN_NORMAL', 19h)dnl
define(`confTO_QUEUEWARN_URGENT', 12h)dnl
define(`confTO_QUEUEWARN_NONURGENT', 24h)dnl
define(`confFORWARD_PATH', `$z/.forward.$w:$z/.forward')dnl
undefine(`confPRIVACY_FLAGS')
define(`confPRIVACY_FLAGS', `goaway,authwarnings')dnl
MASQUERADE_AS(Os2.aMi.coM.AU)dnl
undefine(`UUCP_RELAY')
undefine(`BITNET_RELAY')
FEATURE(redirect)dnl
FEATURE(use_cw_file)dnl
FEATURE(always_add_domain)dnl
FEATURE(nouucp,reject)dnl
FEATURE(relay_local_from)dnl
FEATURE(domaintable)dnl
FEATURE(relay_entire_domain)dnl
FEATURE(local_procmail)dnl
FEATURE(accept_unresolvable_domains)dnl
FEATURE(masquerade_entire_domain)dnl
FEATURE(masquerade_envelope)dnl
 
[root(_at_)possum cf]#    

The idea is you creat a domain file that contains stuff that applies to your 
whole, um, domand;0)

My possum.mc is particular to one machine; next time, I'll probably move some 
of it into my domain file.

Don't blindly copy MY files; your needs are probably different.

Oh, and this is a sendmail question, not a procmail question.


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>