Ramblings from MostlyChris

Tech stuff and a bit more

Browsing Posts tagged Postfix

I stole this from Here. Also see this. I think it's well worth configuring Postfix with these options (tuned to your exact needs, of course) to block SPAM. Blocking spammers with Postfix alone The battle between email admins and spammers is an ongoing arms race. The spammers are at a disadvantage because by and large, [...]

To create an autoresponder or vacation notice on a server using Postfix, I use procmail on an individual account basis. In order to do this, first create a .forward file in the user's home directory with the following (quotes are to be included). "|IFS=' ' && exec /usr/bin/procmail -f- || exit 75 #tina_fp" Create a [...]

There is a method to bypass RBL checking for certain addresses and domains in Postfix. This assumes that you are using RBL checking in the first place. First, create an rbl_override file in /etc/postfix. vi /etc/postfix/rbl_override Place the domains and/or IP addresses you would like whitelisted into that file. 192.168.0.1 192.168.0.2 domain.com subdomain.example.com Create the [...]

Change to the Postfix configuration directory. Usually this is in /etc/postfix. cd /etc/postfix Open the sender_access file or create it if it doesn't exist. vi sender_access Add the email address you want rejected on a new line in the file followed by REJECT. email@address.com REJECT Save the file. Create the server_access database with the postmap [...]

Postfix has some spam fighting abilities built in. However, you will need to enable them for them to work. Just throw the code below into your main.cf file and restart Postfix. Voila. smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_pipelining, reject_non_fqdn_recipient, reject_non_fqdn_sender, reject_unknown_recipient_domain, reject_unauth_destination, reject_invalid_hostname, reject_rbl_client sbl.spamhaus.org, reject_rbl_client xbl.spamhaus.org, permit