A well formatted configs on Procmail, Postfix & Spamassassin Rumi, November 28, 2008December 7, 2008 In this article I’ve placed the all tiring process to configure procmail, postfix and spamassasin in a single place. Read my other article too for chmod and other things which are not included in this section. Enjoy! Procmail configuration file /etc/procmailrc DROPPRIVS=yes :0fw | /usr/bin/spamassassin :0 * ^X-Spam-Status: Yes $DEFAULT ORGMAIL=/home/mail/$LOGNAME DEFAULT=/home/mail/$LOGNAME DROPPRIVS=yes You need to Yum now!- yum install cyrus-sasl cyrus-sasl-devel cyrus-sasl-gssapi cyrus-sasl-md5 cyrus-sasl-plain Now edit the following file- /usr/lib/sasl2/smtpd.conf and make it looks like this: pwcheck_method: saslauthd mech_list: plain login Postfix configuration file /etc/postfix/main.cf (version- 2.3.3) queue_directory = /var/spool/postfix command_directory = /usr/sbin daemon_directory = /usr/libexec/postfix mail_owner = postfix inet_interfaces = all mydestination = $myhostname, localhost.$mydomain, localhost unknown_local_recipient_reject_code = 550 alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases mailbox_command = /usr/bin/procmail debug_peer_level = 2 debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin xxgdb $daemon_directory/$process_name $process_id & sleep 5 sendmail_path = /usr/sbin/sendmail.postfix newaliases_path = /usr/bin/newaliases.postfix mailq_path = /usr/bin/mailq.postfix setgid_group = postdrop html_directory = no manpage_directory = /usr/share/man sample_directory = /usr/share/doc/postfix-2.3.3/samples readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES virtual_alias_maps = hash:/etc/postfix/virtual mail_spool_directory = /home/mail smtpd_sasl_auth_enable = yes broken_sasl_auth_clients = yes smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination Spamassasin configuration file /etc/mail/spamassassin/local.cf (version- 3.1.9)- i used the default file- just enable procmail to work with. Configurations (Linux)