Koozali.org: home of the SME Server

Dropping email FROM an external mail account

Offline purvis

  • *****
  • 567
  • +0/-0
Re: Dropping email FROM an external mail account
« Reply #15 on: November 08, 2011, 10:31:57 AM »
Cactus, yes, far easier to post files on a web server, but i do not care for indexing or attacks of my web servers which are not meant for the entire world, just the users here. But i cannot control that if i post it here. base64 code will do for most power users.

Stuart, i have worked on the code already to remove emails from outside email accounts that match specifically to email accounts.
You might want those users to also look into the Pennock Email Notifier which is cheap and relatively safe for viewing emails and has some filtering capabilities.

Stuart, i have reasons to delete unwanted email's as well from specific sme email accounts and i like to clean up the "maillog" email account with these command line tools on a periodical bases.


 



« Last Edit: November 08, 2011, 10:36:14 AM by purvis »

Offline purvis

  • *****
  • 567
  • +0/-0
Re: Dropping email FROM an external mail account
« Reply #16 on: November 08, 2011, 12:45:29 PM »
removed
« Last Edit: November 12, 2011, 03:24:24 AM by purvis »

Offline purvis

  • *****
  • 567
  • +0/-0
Re: Dropping email FROM an external mail account
« Reply #17 on: November 08, 2011, 12:49:00 PM »
windows console programs to delete emails using pop3 protocol
programs that i have written are now at one of my servers

yes i am making the below a little hard to read for my own purposes, sorry.


financeinla at  my own com site

for access to the files use, the at sign followed by Mitel followed by 123 can be used

and the subdiectory is of course smeserver

there is a brief text file at the location too, the programs have a help screen if you just type the exe file name
« Last Edit: November 12, 2011, 03:29:00 AM by purvis »

Offline purvis

  • *****
  • 567
  • +0/-0
Re: Dropping email FROM an external mail account
« Reply #18 on: November 08, 2011, 01:12:25 PM »
Stuart, now you can delete those emails from bill.gates@microsoft.com or some.clown@hotmail.com using the program above

pop3delfrom.exe  which could be renamed to something more like pop3emaildeleteusingfromline.exe if wanted

pop3delfrom servername/ipaddress username? password? bill.gates@microsoft.com  some.clown@hotmail.com

if you do not want any email from microsoft.com and hotmail.com use the following
pop3delfrom servername/ipaddress username? password? @microsoft.com  @hotmail.com

or any last name gates using .gates@microsoft.com
or any last name ending with "gates" characters  using gates@microsoft.com

if you want to specify bill.gates@microsoft.com try using "<bill.gates@microsoft.com>"

so you might want to try
pop3delfrom servername/ipaddress username? password? bill.gates@microsoft.com  some.clown@hotmail.com "<bill.gates@microsoft.com>"  "<some.clown@hotmail.com>"
the brackets are not removed prior to comparing but the closing > bracket is added to the right side of email accounts for purposes of matching from left to right if a straight out match does not occur. so, bill.gates@microsoft.com will match with bill.gates@microsoft.com> located in the from line of the email.
this program has not been thoroughly tested but tested some during development.

added:
if you use greater than or less than brackets on the command line for email addresses, you will have to enclose them in double quote marks

added:
i have modified the programs to take on a simulated mode of deleting emails
now in order to delete the emails, the first command line  parameter option has to be "/d" or "/delete" or some partial spelling of "/delete" such as "/del".
also during the delete or simulated deleting, only the emails effected will be show on the screen.

i am going to place another two of my home grown programs i have written, but i am not giving away my source code.
both programs will not delete or erase any file, they are text viewers and one is a text manipulator 
a program called textv.exe to display text files. i wrote the program to
clipscr2.exe will create a file if you place the file on the command line tail. i need to get rid if it doing that.
clipscr2.exe was designed to actually on deal with moving text in and out using the windows clipboard.
both program where to help me look at log and text files, so they are not meant for any files but text.
clipscr2.exe was designed to help filter and sort text information
textv.exe can filter on text by line multiple times
the file sizes you can use can be as large as the memory in your computer.
 
« Last Edit: November 12, 2011, 03:49:41 AM by purvis »

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Dropping email FROM an external mail account
« Reply #19 on: November 08, 2011, 01:16:44 PM »
purvis

Serious users would not/should not consider using your your code without seeing the source code, for example to check the accuracy of the code and guard against security errors or bugs or unintended outcomes etc. It would be good if you post the source whenever you offer executable files or scripts for free to unknown users.

Having a file or two for download from your own web server is not really a security risk.
Alternatively there are many place on the Internet you can upload files to freely for download by anyone, without needing to use your own web accessible server.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline purvis

  • *****
  • 567
  • +0/-0
Re: Dropping email FROM an external mail account
« Reply #20 on: November 08, 2011, 01:21:39 PM »
removed
« Last Edit: November 12, 2011, 03:17:47 AM by purvis »

Offline mmccarn

  • *
  • 2,653
  • +10/-0
Re: Dropping email FROM an external mail account
« Reply #21 on: November 08, 2011, 01:35:13 PM »
I need to drop email from a particular external user without sending a reject or bounce to them.
Anyone have an idea on how to do this?

Thanks
Install the Mailsorting contrib, and create global rules matching the 'From' addresses you want to accept-but-ignore.

Offline purvis

  • *****
  • 567
  • +0/-0
Re: Dropping email FROM an external mail account
« Reply #22 on: November 10, 2011, 08:40:12 PM »
removed
« Last Edit: November 12, 2011, 03:23:36 AM by purvis »

Offline Stuart

  • **
  • 37
  • +0/-0
Re: Dropping email FROM an external mail account
« Reply #23 on: November 10, 2011, 11:42:22 PM »
Purvis,
[Sentence removed by moderator because it can be construed as inflamatory comment/statement]
Why are you posting all this here?  It doesn't even appear to address the original question I posted!
Why not make a Contrib or something and post it somewhere appropriate.  If you think might address a query, you can then point people to it.
Once again, I respect your effort, you obviously put a lot of work into it.

Mmccarn,
Someone suggested the mailsort contrib in another topic I posted here.  It seems the way to go, but; to me, the wiki instructions are incorrect.  The commands as listed had to be modified to work.  I set up some rules but it just succeeded in stalling the mail queue.  I can't spend the rest of my life on this and the client agreed to just let it bounce.
« Last Edit: November 11, 2011, 04:48:41 AM by chris burnat »

Offline mmccarn

  • *
  • 2,653
  • +10/-0
Re: Dropping email FROM an external mail account
« Reply #24 on: November 11, 2011, 01:10:19 PM »
Mmccarn,
Someone suggested the mailsort contrib in another topic I posted here.  It seems the way to go, but; to me, the wiki instructions are incorrect.  The commands as listed had to be modified to work.  I set up some rules but it just succeeded in stalling the mail queue.  I can't spend the rest of my life on this and the client agreed to just let it bounce.

Sorry to hear it.  'mailsorting' always looked really useful to me too, but I never feel like I understand the instructions (so I've never tried to install it)...

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Dropping email FROM an external mail account
« Reply #25 on: November 11, 2011, 10:20:43 PM »
It seems the way to go, but; to me, the wiki instructions are incorrect.  The commands as listed had to be modified to work.

It's a wiki, so you can comment or make changes if you think there are any errors.

Offline chris burnat

  • *****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Re: Dropping email FROM an external mail account
« Reply #26 on: November 12, 2011, 12:03:27 AM »
Sorry to hear it.  'mailsorting' always looked really useful to me too, but I never feel like I understand the instructions (so I've never tried to install it)...

I have been using this contrib for a long time now, I block particular mail based on the "Email Address From" criteria using Maildrop.  I recall being told by Stephen Noble (the maintainer) something to the effect that Procmail did not work so good.  And yes, the Wiki are somewhat cryptic and could do with some clarification. Most of the other features of this contrib are lost on me since I do not understand how it works...
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

Offline purvis

  • *****
  • 567
  • +0/-0
Re: Dropping email FROM an external mail account
« Reply #27 on: November 12, 2011, 03:31:31 AM »
i have erased all base64 code and setup a server with windows console executable files that have been recoded to allow a safety measure.
please see my post above

Stuart, i mentioned that i misread your wants. Possible you did not see that.

I now know what you wanted. But if you wanted something useful to help manage those unwanted emails
in a more manual way, that is what i was helping to supply you with. I needed to program those for myself as well.
We do not use automated email readers such as OUTLOOK and whatever thanks to all the spammers and viruses from email.
These are just other tools and if a person does not like leaving passwords and user names in files, these programs can help you
over come that.  The program pop3delfrom will accept up to 1000 email senders and use also domain name descriptions too in an effort to
delete unwanted mail or mail that gets placed into the mail logging user account that grows and grows.

Anyway, have a great weekend.
« Last Edit: November 12, 2011, 04:02:26 AM by purvis »