diff --git a/conf.d/imapnotify/games@mala.fr.conf b/conf.d/imapnotify/games@mala.fr.conf new file mode 100644 index 0000000..a6ff245 --- /dev/null +++ b/conf.d/imapnotify/games@mala.fr.conf @@ -0,0 +1,16 @@ +{ + "host": "ssl0.ovh.net", + "port": 993, + "tls": true, + "tlsOptions": { + "rejectUnauthorized": false + }, + "username": "games@mala.fr", + "password": "", + "passwordCmd": "secret-tool lookup email games@mala.fr service imap", + "onNewMail": "mbsync games@mala.fr-inbox", + "onNewMailPost": "notmuch new", + "boxes": [ + "INBOX" + ] +} diff --git a/conf.d/imapnotify/jean-francois.lance@ac-creteil.fr.conf b/conf.d/imapnotify/jean-francois.lance@ac-creteil.fr.conf new file mode 100644 index 0000000..c0833c6 --- /dev/null +++ b/conf.d/imapnotify/jean-francois.lance@ac-creteil.fr.conf @@ -0,0 +1,16 @@ +{ + "host": "imap.ac-creteil.fr", + "port": 143, + "tls": false, + "tlsOptions": { + "rejectUnauthorized": false + }, + "username": "jlance", + "password": "", + "passwordCmd": "secret-tool lookup email jean-francois.lance@ac-creteil.fr service imap", + "onNewMail": "mbsync jean-francois.lance@ac-creteil.fr-inbox", + "onNewMailPost": "notmuch new", + "boxes": [ + "INBOX" + ] +} diff --git a/conf.d/imapnotify/jeff.lance@mala.fr.conf b/conf.d/imapnotify/jeff.lance@mala.fr.conf new file mode 100644 index 0000000..d546c7a --- /dev/null +++ b/conf.d/imapnotify/jeff.lance@mala.fr.conf @@ -0,0 +1,16 @@ +{ + "host": "ssl0.ovh.net", + "port": 993, + "tls": true, + "tlsOptions": { + "rejectUnauthorized": false + }, + "username": "jeff.lance@mala.fr", + "password": "", + "passwordCmd": "secret-tool lookup email jeff.lance@mala.fr service imap", + "onNewMail": "~/bin/emails/mailsync jeff.lance@mala.fr-inbox", + "onNewMailPost": "notmuch new", + "boxes": [ + "INBOX" + ] +} diff --git a/conf/mbsyncrc b/conf/mbsyncrc new file mode 100644 index 0000000..a9d8297 --- /dev/null +++ b/conf/mbsyncrc @@ -0,0 +1,322 @@ +##################### +# __ _ _ # +# /__| / \|_) /\ | # +# \_||_\_/|_)/--\|_ # +# # +##################### + +# Attempt to keep the time-stamp based +# sorting intact +CopyArrivalDate yes +# Automatically create missing mailboxes, +# both locally and on the server +Create Near + + + +########################## +# _ _ _ _____ # +# /\ / / / \| ||\ ||(_ # +# /--\\_\_\_/|_|| \||__) # +# # +########################## + +# jeff.lance@mala.fr +#------------------------- + +IMAPAccount jeff.lance@mala.fr +# Address to connect to +Host ssl0.ovh.net +User jeff.lance@mala.fr +# Get the password account through secret-tool +# I replaced it by a pass command +PassCmd "secret-tool lookup email jeff.lance@mala.fr service imap" +# PassCmd "pass emails/jeff.lance@mala.fr" +# Use SSL +# SSLType IMAPS +SSLType None +# The following line should work. +# If get certificate errors, uncomment the two +# following lines and read the "Troubleshooting" section. +CertificateFile /etc/ssl/certs/ca-certificates.crt + + +IMAPStore jeff.lance@mala.fr-remote +Account jeff.lance@mala.fr + + +MaildirStore jeff.lance@mala.fr-local +SubFolders Verbatim +# The trailing "/" is important +Path ~/Mail/jeff.lance@mala.fr/ +Inbox ~/Mail/jeff.lance@mala.fr/inbox + + +Channel jeff.lance@mala.fr-inbox +Far :jeff.lance@mala.fr-remote: +Near :jeff.lance@mala.fr-local:inbox +Sync PullNew PullDelete Push +SyncState * +Expunge Both + + +Channel jeff.lance@mala.fr-sent +Far :jeff.lance@mala.fr-remote:"Sent Items" +Near :jeff.lance@mala.fr-local:sent +Sync PullNew PullDelete Push +SyncState * +Expunge Both + + +Channel jeff.lance@mala.fr-trash +Far :jeff.lance@mala.fr-remote:"Deleted Items" +Near :jeff.lance@mala.fr-local:trash +Sync PullNew PullDelete Push +SyncState * +Expunge Both + + +Channel jeff.lance@mala.fr-drafts +Far :jeff.lance@mala.fr-remote:"Drafts" +Near :jeff.lance@mala.fr-local:drafts +Sync PullNew PullDelete Push +SyncState * +Expunge Both + + +Channel jeff.lance@mala.fr-junk +Far :jeff.lance@mala.fr-remote:"Junk Email" +Near :jeff.lance@mala.fr-local:junk +Sync PullNew PullDelete Push +SyncState * +Expunge Both + + +Channel jeff.lance@mala.fr-archives +Far :jeff.lance@mala.fr-remote:"Archives" +Near :jeff.lance@mala.fr-local:archives +Pattern * +Create Near +MaxMessages 500 +Sync New Delete Push +SyncState * +Expunge Both + + +Group jeff.lance@mala.fr +Channel jeff.lance@mala.fr-inbox +Channel jeff.lance@mala.fr-sent +Channel jeff.lance@mala.fr-trash +Channel jeff.lance@mala.fr-drafts +Channel jeff.lance@mala.fr-junk +Channel jeff.lance@mala.fr-archives + + + +# games@mala.fr +#------------------------- + +IMAPAccount games@mala.fr +# Address to connect to +Host ssl0.ovh.net +User games@mala.fr +# Get the password account through secret-tool +# I replaced it by a pass command +PassCmd "secret-tool lookup email games@mala.fr service imap" +# PassCmd "pass emails/games@mala.fr" +# Use SSL +# SSLType IMAPS +SSLType None +# The following line should work. +# If get certificate errors, uncomment the two +# following lines and read the "Troubleshooting" section. +CertificateFile /etc/ssl/certs/ca-certificates.crt + + +IMAPStore games@mala.fr-remote +Account games@mala.fr + + +MaildirStore games@mala.fr-local +SubFolders Verbatim +# The trailing "/" is important +Path ~/Mail/games@mala.fr/ +Inbox ~/Mail/games@mala.fr/inbox + + +Channel games@mala.fr-inbox +Far :games@mala.fr-remote: +Near :games@mala.fr-local:inbox +Sync PullNew PullDelete Push +SyncState * +Expunge Both + + +Channel games@mala.fr-sent +Far :games@mala.fr-remote:"Sent Items" +Near :games@mala.fr-local:sent +Sync PullNew PullDelete Push +SyncState * +Expunge Both + + +Channel games@mala.fr-trash +Far :games@mala.fr-remote:"Deleted Items" +Near :games@mala.fr-local:trash +Sync PullNew PullDelete Push +SyncState * +Expunge Both + + +Channel games@mala.fr-drafts +Far :games@mala.fr-remote:"Drafts" +Near :games@mala.fr-local:drafts +Sync PullNew PullDelete Push +SyncState * +Expunge Both + + +Channel games@mala.fr-junk +Far :games@mala.fr-remote:"Junk Email" +Near :games@mala.fr-local:junk +Sync PullNew PullDelete Push +SyncState * +Expunge Both + + +Group games@mala.fr +Channel games@mala.fr-inbox +Channel games@mala.fr-sent +Channel games@mala.fr-trash +Channel games@mala.fr-drafts +Channel games@mala.fr-junk + + +# jean-francois.lance@ac-creteil.fr +#-------------------------------------- + +IMAPAccount jean-francois.lance@ac-creteil.fr +# Address to connect to +Host imap.ac-creteil.fr +User jlance +# Get the password account through secret-tool +# I replaced it by a pass command +PassCmd "secret-tool lookup email jean-francois.lance@ac-creteil.fr service imap" +# PassCmd "pass emails/jean-francois.lance@ac-creteil.fr" +# Use SSL +SSLType IMAPS +# The following line should work. +# If get certificate errors, uncomment the two +# following lines and read the "Troubleshooting" section. +CertificateFile /etc/ssl/certs/ca-certificates.crt + +IMAPStore jean-francois.lance@ac-creteil.fr-remote +Account jean-francois.lance@ac-creteil.fr + +MaildirStore jean-francois.lance@ac-creteil.fr-local +SubFolders Verbatim +# The trailing "/" is important +Path ~/Mail/jean-francois.lance@ac-creteil.fr/ +Inbox ~/Mail/jean-francois.lance@ac-creteil.fr/inbox + +Channel jean-francois.lance@ac-creteil.fr-inbox +Far :jean-francois.lance@ac-creteil.fr-remote: +Near :jean-francois.lance@ac-creteil.fr-local: +Patterns "INBOX" +Sync PullNew PullDelete Push +SyncState * +Expunge Both + +Channel jean-francois.lance@ac-creteil.fr-sent +Far :jean-francois.lance@ac-creteil.fr-remote:"Sent" +Near :jean-francois.lance@ac-creteil.fr-local:sent +Sync PullNew PullDelete Push +SyncState * +Expunge Both + +Channel jean-francois.lance@ac-creteil.fr-trash +Far :jean-francois.lance@ac-creteil.fr-remote:"Trash" +Near :jean-francois.lance@ac-creteil.fr-local:trash +Sync PullNew PullDelete Push +SyncState * +Expunge Both + +Channel jean-francois.lance@ac-creteil.fr-drafts +Far :jean-francois.lance@ac-creteil.fr-remote:"Drafts" +Near :jean-francois.lance@ac-creteil.fr-local:drafts +Sync PullNew PullDelete Push +SyncState * +Expunge Both + +Group jean-francois.lance@ac-creteil.fr +Channel jean-francois.lance@ac-creteil.fr-inbox +Channel jean-francois.lance@ac-creteil.fr-sent +Channel jean-francois.lance@ac-creteil.fr-trash +Channel jean-francois.lance@ac-creteil.fr-drafts + + + +## jean-francois.lance@ac-montpellier.fr +##-------------------------------------- + +#IMAPAccount jean-francois.lance@ac-montpellier.fr +## Address to connect to +#Host courrier.ac-montpellier.fr +#User jlance +#PassCmd "secret-tool lookup email jean-francois.lance@ac-montpellier.fr" +## Use SSL +#SSLType IMAPS +## The following line should work. +## If get certificate errors, uncomment the two +## following lines and read the "Troubleshooting" section. +#CertificateFile /etc/ssl/certs/ca-certificates.crt + +#IMAPStore jean-francois.lance@ac-montpellier.fr-remote +#Account jean-francois.lance@ac-montpellier.fr + +#MaildirStore jean-francois.lance@ac-montpellier.fr-local +#SubFolders Verbatim +## The trailing "/" is important +#Path ~/Mail/jean-francois.lance@ac-montpellier.fr/ +#Inbox ~/Mail/jean-francois.lance@ac-montpellier.fr/INBOX + +#Channel jean-francois.lance@ac-montpellier.fr-inbox +#Far :jean-francois.lance@ac-montpellier.fr-remote: +#Near :jean-francois.lance@ac-montpellier.fr-local: +#Patterns "INBOX" +#Expunge Both + +#Channel jean-francois.lance@ac-montpellier.fr-sent +#Far :jean-francois.lance@ac-montpellier.fr-remote:"Sent" +#Near :jean-francois.lance@ac-montpellier.fr-local:SENT +#Expunge Both + +#Channel jean-francois.lance@ac-montpellier.fr-trash +#Far :jean-francois.lance@ac-montpellier.fr-remote:"Trash" +#Near :jean-francois.lance@ac-montpellier.fr-local:TRASH +#Expunge Both + +#Channel jean-francois.lance@ac-montpellier.fr-drafts +#Far :jean-francois.lance@ac-montpellier.fr-remote:"Drafts" +#Near :jean-francois.lance@ac-montpellier.fr-local:DRAFTS +#Expunge Both + +#Channel jean-francois.lance@ac-montpellier.fr-spams +#Far :jean-francois.lance@ac-montpellier.fr-remote:"Spams" +#Near :jean-francois.lance@ac-montpellier.fr-local:SPAMS +#Expunge Both + +#Channel jean-francois.lance@ac-montpellier.fr-archives +#Far :jean-francois.lance@ac-montpellier.fr-remote:"Archives" +#Near :jean-francois.lance@ac-montpellier.fr-local:ARCHIVES +#Patterns * + +#Group jean-francois.lance@ac-montpellier.fr +#Channel jean-francois.lance@ac-montpellier.fr-inbox +#Channel jean-francois.lance@ac-montpellier.fr-sent +#Channel jean-francois.lance@ac-montpellier.fr-trash +#Channel jean-francois.lance@ac-montpellier.fr-drafts +#Channel jean-francois.lance@ac-montpellier.fr-spams +#Channel jean-francois.lance@ac-montpellier.fr-archives + + diff --git a/conf/msmtprc b/conf/msmtprc new file mode 100644 index 0000000..fd0a235 --- /dev/null +++ b/conf/msmtprc @@ -0,0 +1,56 @@ +# Set default values for all following accounts. +defaults +auto_from on +tls_trust_file /etc/ssl/certs/ca-certificates.crt +syslog on +#logfile /var/log/msmtp.log + +# MaLa +account jeff.lance@mala.fr +host ssl0.ovh.net +port 465 +auth on +tls on +tls_starttls off +user jeff.lance@mala.fr +passwordeval "echo $(secret-tool lookup service smtp user jeff.lance@mala.fr)" +auto_from off +from jeff.lance@mala.fr + +account games@mala.fr +host ssl0.ovh.net +port 465 +auth on +tls on +tls_starttls off +user games@mala.fr +passwordeval "echo $(secret-tool lookup service smtp user games@mala.fr)" +auto_from off +from games@mala.fr + +# GMail +account mathslance@gmail.com +host imap.gmail.com +port 465 +auth on +tls on +tls_starttls off +user mathslance@gmail.com +passwordeval "echo $(secret-tool lookup service smtp user mathslance@gmail.com)" +auto_from off +from mathslance@gmail.com + +# Ac-creteil +account jean-francois.lance@ac-creteil.fr +host smtp-ext.ac-creteil.fr +port 465 +auth plain +tls on +tls_starttls off +user jlance +passwordeval "echo $(secret-tool lookup service smtp user jlance)" +auto_from off +from jean-francois.lance@ac-creteil.fr + +# Set a default account +account default : jeff.lance@mala.fr