DaemonForums  

Go Back   DaemonForums > Miscellaneous > General software and network

General software and network General OS-independent software and network questions, X11, MTA, routing, etc.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 29th September 2015
e1-531g e1-531g is offline
ISO Quartermaster
 
Join Date: Mar 2014
Posts: 628
Default Best way to check mail messages frequently, but not constantly

Hi,
I would like to check my mail messages one or two times a day. I was thinking about writing shell script & cron to do this, but maybe somebody have written software for this and I will be reinventing the wheel.
I would like to not constantly be online, because this distracts.
Reply With Quote
  #2   (View Single Post)  
Old 29th September 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

See the biff(1) and xbiff(1) man pages.
Reply With Quote
  #3   (View Single Post)  
Old 29th September 2015
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 1,027
Default

Perhaps e1-531g means checking for mail at a remote mail server?

I do this every 10 minutes using a shell script and cron. The script tries to determine if I'm online, and if so runs fetchmail(1) to check for and retrieve mail.
Reply With Quote
  #4   (View Single Post)  
Old 29th September 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

I use xbiff(1) on a workstation via a secure* NFS mounted /var/mail served from my MTA.

---

* This used to be NFS tunneled via IPSec, later replaced by a dedicated VLAN.

Last edited by jggimi; 29th September 2015 at 05:33 PM. Reason: clarity
Reply With Quote
  #5   (View Single Post)  
Old 29th September 2015
e1-531g e1-531g is offline
ISO Quartermaster
 
Join Date: Mar 2014
Posts: 628
Default

As IdOp suggested, I want to check incoming emails from remote mail server via IMAP over TLS.
Thanks IdOp for information about fetchmail.
Reply With Quote
  #6   (View Single Post)  
Old 29th September 2015
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,125
Default

Several years ago I wrote a guide : Using fetchmail as IMAP client to download mail from a Gmail folder(label)

Maybe that gives a start
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #7   (View Single Post)  
Old 7th October 2015
e1-531g e1-531g is offline
ISO Quartermaster
 
Join Date: Mar 2014
Posts: 628
Default

Thank you all, especially J65nko.
Reply With Quote
  #8   (View Single Post)  
Old 24th March 2016
e1-531g e1-531g is offline
ISO Quartermaster
 
Join Date: Mar 2014
Posts: 628
Default

What:
1. Mail delivery agents
2. Mail retrieval agents
are you use personally and are available in OpenBSD base or packages?

I am thinking about fetchmail, but Wikipedia is saying that in past there were a little of security holes.
I have accounts in US's Yahoo and Russia's Yandex.

Do you use mbox or maildir for personal use cases?

Last edited by e1-531g; 24th March 2016 at 09:06 PM.
Reply With Quote
  #9   (View Single Post)  
Old 25th March 2016
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 1,027
Default

For sending mail I use sendmail on Linux and postfix on NetBSD.

For retrieval I use fetchmail. I'm not particularly attached to it, but can get it to do what I need. What I find most frustrating about it is the documentation, especially concerning ssl, tls and so on.

I store mail in an mbox, which probably makes me hopelessly stuck in the past. I often find it difficult to change, and also try to avoid getting too much email which perhaps makes it workable.
Reply With Quote
Old 25th March 2016
e1-531g e1-531g is offline
ISO Quartermaster
 
Join Date: Mar 2014
Posts: 628
Default

I am the most interested in retrieval part.
Do you use any MDA/local delivery agent for some form of sorting, filtering etc? For example I would like to download only attachments from one of my mailbox and only emails without attachments from another.
Example with getmail I have found:
Code:
[destination]
type = MDA_external
path = /usr/bin/procmail
and for fetchmail:
Code:
mda "/usr/bin/procmail -f %F -d %T";

For TLS I am going to use relayd's relay and I even have it working, but without verification of certificates. I am going to investigate this further, but suggest not focus on this in this thread.

I am more interested in LDA/MDA & MRA tools and mbox & maildir storages.

Last edited by e1-531g; 25th March 2016 at 06:38 AM.
Reply With Quote
Old 25th March 2016
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 1,027
Default

Yes, I do also use procmail. One thing I get it to do is beep when an email comes in.

You might also want to take a quick look at this thread. One thing mentioned there is nmh. I seem to recall some of the folks here discussing doing interesting things with nmh on another thread, which I can't find using the search feature.
Reply With Quote
Reply

Tags
mail, notification

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenBSD as Mail server, can you check my configuration? wjuq OpenBSD General 4 12th February 2014 01:36 PM
System crashing constantly on P4/xeon Mr-Biscuit OpenBSD General 6 5th April 2010 03:33 AM
maybe frequently asked question, but always primordial for me. so I ask. guerrier-cachalot FreeBSD Ports and Packages 9 24th April 2009 12:04 PM
System stopped sending e-mail messages. bigb89 FreeBSD General 4 30th June 2008 05:20 PM
error messages delboy FreeBSD Ports and Packages 16 6th June 2008 01:31 PM


All times are GMT. The time now is 05:55 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick