FreeBSD Sendmail Procmail Spamassassin

BillFinkNC
BillFinkNC used Ask the Experts™
on
I am responsible for maintaining a couple of small business' email server.

I currently use FreeBSD, Sendmail, Procmail, and Spamassassin. (Apache as the web-server along with Squirrelmail.)

While writing a procmail recipe is easy for me, the average end-user is never going to be able to ssh into the mail-server and edit their own procmail.rc file.

I would like to add a feature that adds to the bottom of their emails some sort of 'footer' that will be appended to their messages  for them to click on a link and perhaps say; "Add This Sender To Whitelist" or "Block This Sender"  - and then update their procmail recipe.

Any suggestions on how to accomplish this?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Distinguished Expert 2017

Commented:
You can setup a simple procmail recipe and their click will only add the email address to a flat file that is assembled into a variable
$permit_list="email1|email2|email3"
Rather than having a recipe for each email address.

Is there a single mail server or do you have multiple mail servers with the mailbox storage on NFS mounts?
Squirelmail configuration is using pop or does it run with SUID as the user that logs in and accesses the mail directly (Maildir format of messages)?

Author

Commented:
Great! Thanks for that input. SInce I posted that question did I discover that Procmail will probably do what I'd like it do, and much, much more.

I have a single mailserver serving up perhaps 5 or 6 virtual domains - Squirrelmail is configured to use IMAP.

So a varialbe of '$permit_list' is all I need to configure in the .procmail.rc file? That would be/is a great solution. I could write the CGI script on a web-page to invoke that; (adding an address to their 'flat-file."

Am I on the right track from your solution? Perfect answer if it is!
Distinguished Expert 2017
Commented:
Yes, if you have mysql as the backend, you can add a table with a list for each user and incorporate the functionality in spamassassin to assign a value to the sender's email that will make sure that the message is not filtered.

Author

Commented:
Thanks so much for your input.

Regards,

Bill

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial