LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-26-2017, 04:54 AM   #1
Michael Uplawski
Senior Member
 
Registered: Dec 2015
Location: Apples
Distribution: Apple-selling shops, markets and direct marketing
Posts: 1,171
Blog Entries: 30

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
Procmail filter against unencrypted email


Good morning all.

I am about to compose*) a procmail recipe to filter unencrypted and/or encrypted mail.

A rule against the content-type header will be easy to write, but there are other ways to recognize GnuPG- or differently encrypted mails.

Could you help me cover all possibilities, not necessarily in a single recipe, but in a way that lets me react with an automatism, like a notification, that I can no longer accept unencrypted mail...

TIA.
Michael

*) compose: write, test, modify, dump, restart.
 
Old 07-26-2017, 11:05 PM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1010Reputation: 1010Reputation: 1010Reputation: 1010Reputation: 1010Reputation: 1010Reputation: 1010Reputation: 1010
Hello,

Your post seems ask for your work to be done for you. It also sounds like part of a class assignment. Almost every encrypted email will have a PGP header. You could encrypt an email and look at it. You'll need to generate a key pair.
 
Old 07-27-2017, 01:56 PM   #3
Michael Uplawski
Senior Member
 
Registered: Dec 2015
Location: Apples
Distribution: Apple-selling shops, markets and direct marketing
Posts: 1,171

Original Poster
Blog Entries: 30

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
Quote:
Originally Posted by AwesomeMachine View Post
Hello,

Your post seems ask for your work to be done for you. It also sounds like part of a class assignment. Almost every encrypted email will have a PGP header. You could encrypt an email and look at it. You'll need to generate a key pair.
Skip it.

I'll stick with the filter against the content-header and see how it behaves. I have not seen a lot of inline encryption anyway. SOLVED.

Last edited by Michael Uplawski; 07-27-2017 at 02:17 PM. Reason: SKIP IT
 
Old 08-07-2017, 03:45 AM   #4
Michael Uplawski
Senior Member
 
Registered: Dec 2015
Location: Apples
Distribution: Apple-selling shops, markets and direct marketing
Posts: 1,171

Original Poster
Blog Entries: 30

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
Yeah. I don't know, why I do this, but here is a new blog-entry on the topic:
Autoresponder with procmail, but without sendmail.

Fire at your own discretion.
 
  


Reply

Tags
encrypted, mail, procmail, recipe, unencrypted


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Email/procmail filter query n1uro Linux - General 4 09-27-2016 05:46 PM
procmail recipe to filter email to different folder newbie.my Linux - Server 2 12-30-2012 10:46 PM
Can a firewall block unencrypted email attachments from being sent? tarekeldeeb Linux - Security 5 12-11-2010 05:05 AM
Anyone Filter Email w/ Procmail carlosinfl Linux - Server 10 03-14-2008 03:07 PM
MS Security Virus Email bypasses Procmail Filter lewt Linux - Security 3 09-24-2003 06:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration