hi frndz...
i m new to linux i need to config sendmail MTA and i hav to use procmail as filter and cyrus as LDA... plz help me guys ...
i need a sendmail config file for the above mentioned options ....

hi guys i found a solution for that i think it will be helpfull to others by posting this ...

Edit /etc/sendmail.cf and look for the section that defines the Cyrus mailer. It will look something like the lines below. If you've customized your sendmail configuration, it might look slightly different, but will begin with the identifier "Mcyrus".

Mcyrus, P=/usr/cyrus/bin/deliver, F=lsDFMnPqA5@, S=10, R=20/40, T=X-Unix,
A=deliver -e -m $h -- $u
Comment out that section and add the following lines below it:

Mcyrus, P=/usr/bin/procmail, F=lsDFMnPqA5@, S=10, R=20/40, T=X-Unix,
A=procmail -p /var/imap/procmail/procmail.global CYRUSUSER=$u
The -p argument tells procmail to preserve the existing environment.The last parameter, /var/imap/procmail/procmail.global, tells procmail to use /var/imap/procmail/procmail.global to determine its filtering behavior. The last parameter, CYRUSUSER, sets the CYRUSUSER variable to username and passes the variable to procmail. CYRUSUSER is used in the procmail rules files

A Global procmail Rules File:

# File: procmail.global


# Make a backup copy of all incoming mail (comment the next entry
# out once you're finished testing procmail integration)
#:0 ic
#| $DELIVER -e -a $CYRUSUSER -m user.$CYRUSUSER.backup

# Execute CYRUSUSER's personal rules

[The user's procmail rules are included (via the INCLUDERC statement above)
and executed here. Rules after this point resume after the user's personal
rules have been executed.]

# Example recipes

# If the "To:" line doesn't exist, it's SPAM
* !^To:

# Get rid of SPAM from a specific email address
* ^To:.*makemoneyfast@aol.com

# All the mail that falls through to this point
# will be delivered into the user's INBOX
Personal procmail rules file

Each user has a personal procmail rules file. It's stored under /var/imap/procmail/user/ in the file procmail.username. The personal rules file is the file each user edits when he wants to change his filtering rules. If the file exists, the INCLUDERC statement in the global procmail rules file runs the rules in the personal file.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.