Link to home
Start Free TrialLog in
Avatar of BillFinkNC
BillFinkNCFlag for Afghanistan

asked on

FreeBSD Sendmail Procmail Spamassassin

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?
Avatar of arnold
arnold
Flag of United States of America image

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)?
Avatar of BillFinkNC

ASKER

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!
ASKER CERTIFIED SOLUTION
Avatar of arnold
arnold
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks so much for your input.

Regards,

Bill