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. Related Configurations (Linux)
Create a local ISO SR at XCP-NG March 22, 2023 From the CLI: Create a directory on the local filesystem to storage your ISOs Copy/move ISOs to this new location Create the ISO SR using xe sr-create You can add or update ISOs later by placing them into the directory you created in step 1 Rescan the SR if you… Read More
Reset lost root password on Ubuntu 18.04 Bionic Beaver Linux March 5, 2020 Boot Into GRUB menu The first step is to reboot into the GRUB menu. If Ubuntu 18.04 Bionic Beaver is the only operating system installed you need to keep pressing SHIFT for the GRUB menu to show up. Edit Grub Menu Using arrows select the Ubuntu menu or the menu… Read More
Using NGinx to serve static files and Apache for dynamic September 6, 2019 Apache is a great web-server, but it has a pretty heavy memory footprint. It can get quite restrictive quite quickly, especially if you’re on a system will limited resources (given how many people now run on a VPS, and the poor disk IO of these systems it’s all the more… Read More