Sendmail + Cyrus Local From: Verify
By Anish Mistry
Background - 2005-06-22
Over the past week or so we have been receiving a lot of spam that forged the From: header of a non-existent user with our local domain. ie. somefakeuser@united-ware.com. This became really annoying so I wrote some sendmail rules to lookup the "mail from:" and the "From:" header in the Cyrus (cyrusv2) database.
Instructions
- Cyrus v2.1.20 or greater. Lower versions may work, but 2.1.20 was what we are using.
- Sendmail 8.13 or greater or Sendmail 8.12.7 with the socketmap patch.
- Beyond the normal Cyrus compile flags for Sendmail. You will need to compile it with
-DSOCKETMAP. - In /usr/local/etc/cyrus.conf add smmap cmd="smmapd" listen="/var/imap/socket/smmapd" prefork=0 to create the socket map.
- Restart Cyrus. killall -HUP master
- Add the from verify code to your .mc
- Rebuild your .cf and then stop and start Sendmail.cd /etc/mail && make && make install && make stop && make start
- Enjoy!
| Copyright 2002-2010 UnitedWare, LLC
High Quality Web, Software, and eCommerce Consultants for all of your IT needs | |
| Site Map | Privacy Policy |

