Discussion:
[maildropl] maildrop + offlineimap + vacation + msmtp + mutt
Marcelo Laia
2016-12-08 17:29:51 UTC
Permalink
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
Ed
2016-12-08 22:07:51 UTC
Permalink
Post by Marcelo Laia
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/
Marcelo Laia
2016-12-09 00:03:38 UTC
Permalink
Post by Ed
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.
Post by Ed
It would be best to implement this at location that your mailbox resides
at.
Yes! It will be done in my local machine (client).
Post by Ed
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
Ed Neville
2016-12-12 19:34:09 UTC
Permalink
Post by Marcelo Laia
Post by Ed
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.
Post by Ed
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.
Post by Marcelo Laia
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/
Marcelo Laia
2016-12-09 00:04:36 UTC
Permalink
Update from previous message.

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