Quantcast

maildrop + offlineimap + vacation + msmtp + mutt

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

maildrop + offlineimap + vacation + msmtp + mutt

Marcelo Laia
Hi,

I would like to setup a vacation autoreplay in my Debian Box.

I got a tip from spacem guy on msmtp mailing list like this:

The way to set this up is to use:
 
email provider --> getmail --> maildrop (or procmail/MDA) --> vacation --> msmtp

However, getmail didn't sync between devices! So, I would to setup something
like this:

email provider --> offlineimap --> maildrop --> vacation --> msmtp

I found only one tutorial near what I want here [1].

I already heave mutt + offlineimap + msmtp working very well. Is it possible to
configure offlineimap + maildrop like in that tutorial? Could you help me here?

I think that the syncemail script is the trick.

syncemail script:
 
#!/bin/sh
offlineimap 2>&1 | logger -t offlineimap
for i in `find $MAIL/Disney -type f -newer $PROCMAILD/log `; do
  cat "$i" | procmail
done

Thank you very much!


1. http://hoardedhomelyhints.dietbuddha.com/2014/04/email-offlineimap-and-procmail.html

--
Marcelo

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
_______________________________________________
Courier-maildrop mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/courier-maildrop
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: maildrop + offlineimap + vacation + msmtp + mutt

Ed Neville
On Thu, Dec 08, 2016 at 03:29:51PM -0200, Marcelo Laia wrote:
> I would like to setup a vacation autoreplay in my Debian Box.
> ...
> email provider --> offlineimap --> maildrop --> vacation --> msmtp

If you're on vacation, what will be picking up your mail?

It would be best to implement this at location that your mailbox resides
at.

You should also pay attention to some of the headers in the inbound mail
(mail lists, auto replies (other people's vacation mail), etc.). It
looks from the for loop that you provided that you'd be replying to all
the mail that you receive, this is not a good idea.

Inside the maildrop config, you filter out all the automatic mail, then
implement something like the vacation snippet at
<http://www.courier-mta.org/maildropex.html>. Personally, I do a simple,
but less technically correct, xfilter followed by a to statement.

This perl script filters out most of the common headers that indicate
non-human mail:

  <http://www.seaglass.com/postfix/inforeply-pl.html>

Hope this helps.

--
Best regards,
Ed http://www.s5h.net/


------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
_______________________________________________
Courier-maildrop mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/courier-maildrop
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: maildrop + offlineimap + vacation + msmtp + mutt

Marcelo Laia
On 08/12/16 at 10:07, Ed wrote:
> If you're on vacation, what will be picking up your mail?

I have a Director job. So, I need to replay and redirect any email arrived to
job mbox.

> It would be best to implement this at location that your mailbox resides
> at.

Yes! It will be done in my local machine (client).

> You should also pay attention to some of the headers in the inbound mail
> (mail lists, auto replies (other people's vacation mail), etc.).

Perfect! vacation package do that! "No messages from ``???-REQUEST''
``Postmaster'' ``UUCP '' ``MAILER'' or ``MAILER-DAEMON'' will be replied to
(where these strings are case insensitive) nor is a notification sent if a
``Precedence: bulk'' ``Precedence: list'' or ``Precedence: junk'' line is
included in the mail headers. The people who have sent you messages are
maintained as a db(3) database in the file .vacation.db in your home
directory." [1]

Name or address in .vacation.db do not is replayed!

My big problem is pipe massage from offlineimap to maildrop.

Thank you very much!

--
Marcelo

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
_______________________________________________
Courier-maildrop mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/courier-maildrop
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: maildrop + offlineimap + vacation + msmtp + mutt

Marcelo Laia
In reply to this post by Ed Neville
Update from previous message.

1. http://linux.math.tifr.res.in/manuals/man/vacation.html

--
Marcelo

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
_______________________________________________
Courier-maildrop mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/courier-maildrop
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: maildrop + offlineimap + vacation + msmtp + mutt

Ed Neville
In reply to this post by Marcelo Laia
On Thu, Dec 08, 2016 at 10:03:38PM -0200, Marcelo Laia wrote:

> On 08/12/16 at 10:07, Ed wrote:
> > If you're on vacation, what will be picking up your mail?
>
> I have a Director job. So, I need to replay and redirect any email arrived to
> job mbox.
>
> > It would be best to implement this at location that your mailbox resides
> > at.
>
> Yes! It will be done in my local machine (client).

Last time I needed to pick mail up in this fashion I used mbsync, which
pulled the IMAP mailbox into Maildir, this allowed mutt to access the
mailbox as normal and mbsync would push and pull the changes from either
side.

However, what I'm suggesting is that you put the vacation job on the
server that holds your IMAP store, not the place where you're picking
the mail up.

> My big problem is pipe massage from offlineimap to maildrop.

Yes, which is why I think this is done in the wrong place. If you're
working with exchange, then it needs to be there. My concern is that if
the job is on your workstation and you go away, would anyone get the
response if there's a powercut and your workstation is left off until
your return?

--
Best regards,
Ed http://www.s5h.net/


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Courier-maildrop mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/courier-maildrop
Loading...