Up.
This commit is contained in:
parent
09cea8065a
commit
dcb8e7ea88
@ -1,13 +1,18 @@
|
|||||||
[data]
|
[data]
|
||||||
email = {{ promptString "Git main email address " "" | quote }}
|
email = {{ promptString "Git main email address " "" | quote }}
|
||||||
{{- with promptInt "How many mbsync accounts would you generate " 0 -}}{{- $count := . | int }}
|
{{- with promptInt "How many mail accounts would you like to configure " 0 -}}{{- $count := . | int }}
|
||||||
{{- if gt $count 0 -}}
|
{{- if gt $count 0 -}}
|
||||||
{{- range $i, $e := until $count }}
|
{{- range $i, $e := until $count }}
|
||||||
[[data.mbsync]]
|
[[data.mail]]
|
||||||
name = {{ promptString "MbSync account name " | quote }}
|
comment = {{ promptString "Mail description " | quote }}
|
||||||
mail = {{ promptString "MbSync account mail " | quote }}
|
account = {{ promptString "Mail account name " | quote }}
|
||||||
user = {{ promptString "MbSync account user " | quote }}
|
address = {{ promptString "Mail address " | quote }}
|
||||||
host = {{ promptString "MbSync account host " | quote }}
|
usrname = {{ promptString "Mail username " | quote }}
|
||||||
|
imapsrv = {{ promptString "Mail imap host " | quote }}
|
||||||
|
smtpsrv = {{ promptString "Mail smtp host " | quote }}
|
||||||
|
smtport = {{ promptInt "Mail smtp port " 465 }}
|
||||||
|
smtpaut = {{ promptChoice "Mail smtp auth " (list "on" "plain") "on" }}
|
||||||
|
autofro = {{ promptChoice "Auto from " (list "on" "off") "off" }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -25,15 +25,15 @@ BufferLimit 100M
|
|||||||
# #
|
# #
|
||||||
##########################
|
##########################
|
||||||
|
|
||||||
{{ range $value := .mbsync }}
|
{{ range $value := .mail }}
|
||||||
# {{ $value.name }}
|
# {{ $value.comment }}
|
||||||
#-------------------------
|
#-------------------------
|
||||||
|
|
||||||
IMAPAccount {{ $value.name }}
|
IMAPAccount {{ $value.account }}
|
||||||
# Address to connect to
|
# Address to connect to
|
||||||
Host {{ $value.host }}
|
Host {{ $value.imapsrv }}
|
||||||
User {{ $value.user }}
|
User {{ $value.usrname }}
|
||||||
PassCmd "pass {{ $value.host }}/{{ $value.user }}"
|
PassCmd "pass {{ $value.host }}/{{ $value.usrname }}"
|
||||||
# Use SSL
|
# Use SSL
|
||||||
# SSLType IMAPS
|
# SSLType IMAPS
|
||||||
SSLType None
|
SSLType None
|
||||||
@ -43,61 +43,61 @@ SSLType None
|
|||||||
CertificateFile /etc/ssl/certs/ca-certificates.crt
|
CertificateFile /etc/ssl/certs/ca-certificates.crt
|
||||||
|
|
||||||
|
|
||||||
IMAPStore {{ $value.name }}-remote
|
IMAPStore {{ $value.account }}-remote
|
||||||
Account {{ $value.name }}
|
Account {{ $value.account }}
|
||||||
|
|
||||||
|
|
||||||
MaildirStore {{ $value.name }}-local
|
MaildirStore {{ $value.account }}-local
|
||||||
SubFolders Verbatim
|
SubFolders Verbatim
|
||||||
# The trailing "/" is important
|
# The trailing "/" is important
|
||||||
Path ~/Mail/{{ $value.name }}/
|
Path ~/Mail/{{ $value.account }}/
|
||||||
Inbox ~/Mail/{{ $value.name }}/inbox
|
Inbox ~/Mail/{{ $value.account }}/inbox
|
||||||
|
|
||||||
|
|
||||||
Channel {{ $value.name }}-inbox
|
Channel {{ $value.account }}-inbox
|
||||||
Far :{{ $value.name }}-remote:
|
Far :{{ $value.account }}-remote:
|
||||||
Near :{{ $value.name }}-local:inbox
|
Near :{{ $value.account }}-local:inbox
|
||||||
Sync PullNew PullDelete Push
|
Sync PullNew PullDelete Push
|
||||||
SyncState *
|
SyncState *
|
||||||
# Remove Both
|
# Remove Both
|
||||||
Expunge Both
|
Expunge Both
|
||||||
|
|
||||||
|
|
||||||
Channel {{ $value.name }}-sent
|
Channel {{ $value.account }}-sent
|
||||||
Far :{{ $value.name }}-remote:"Sent Items"
|
Far :{{ $value.account }}-remote:"Sent Items"
|
||||||
Near :{{ $value.name }}-local:sent
|
Near :{{ $value.account }}-local:sent
|
||||||
Sync PullNew PullDelete Push
|
Sync PullNew PullDelete Push
|
||||||
SyncState *
|
SyncState *
|
||||||
Expunge Both
|
Expunge Both
|
||||||
|
|
||||||
|
|
||||||
Channel {{ $value.name }}-trash
|
Channel {{ $value.account }}-trash
|
||||||
Far :{{ $value.name }}-remote:"Deleted Items"
|
Far :{{ $value.account }}-remote:"Deleted Items"
|
||||||
Near :{{ $value.name }}-local:trash
|
Near :{{ $value.account }}-local:trash
|
||||||
Sync PullNew PullDelete Push
|
Sync PullNew PullDelete Push
|
||||||
SyncState *
|
SyncState *
|
||||||
Expunge Both
|
Expunge Both
|
||||||
|
|
||||||
|
|
||||||
Channel {{ $value.name }}-drafts
|
Channel {{ $value.account }}-drafts
|
||||||
Far :{{ $value.name }}-remote:"Drafts"
|
Far :{{ $value.account }}-remote:"Drafts"
|
||||||
Near :{{ $value.name }}-local:drafts
|
Near :{{ $value.account }}-local:drafts
|
||||||
Sync PullNew PullDelete Push
|
Sync PullNew PullDelete Push
|
||||||
SyncState *
|
SyncState *
|
||||||
Expunge Both
|
Expunge Both
|
||||||
|
|
||||||
|
|
||||||
Channel {{ $value.name }}-junk
|
Channel {{ $value.account }}-junk
|
||||||
Far :{{ $value.name }}-remote:"Junk Email"
|
Far :{{ $value.account }}-remote:"Junk Email"
|
||||||
Near :{{ $value.name }}-local:junk
|
Near :{{ $value.account }}-local:junk
|
||||||
Sync PullNew PullDelete Push
|
Sync PullNew PullDelete Push
|
||||||
SyncState *
|
SyncState *
|
||||||
Expunge Both
|
Expunge Both
|
||||||
|
|
||||||
|
|
||||||
Channel {{ $value.name }}-archive
|
Channel {{ $value.account }}-archive
|
||||||
Far :{{ $value.name }}-remote:"Archive"
|
Far :{{ $value.account }}-remote:"Archive"
|
||||||
Near :{{ $value.name }}-local:archive
|
Near :{{ $value.account }}-local:archive
|
||||||
Pattern *
|
Pattern *
|
||||||
Create Near
|
Create Near
|
||||||
MaxMessages 1500
|
MaxMessages 1500
|
||||||
@ -106,12 +106,12 @@ SyncState *
|
|||||||
Expunge Both
|
Expunge Both
|
||||||
|
|
||||||
|
|
||||||
Group {{ $value.name }}
|
Group {{ $value.account }}
|
||||||
Channel {{ $value.name }}-inbox
|
Channel {{ $value.account }}-inbox
|
||||||
Channel {{ $value.name }}-sent
|
Channel {{ $value.account }}-sent
|
||||||
Channel {{ $value.name }}-trash
|
Channel {{ $value.account }}-trash
|
||||||
Channel {{ $value.name }}-drafts
|
Channel {{ $value.account }}-drafts
|
||||||
Channel {{ $value.name }}-junk
|
Channel {{ $value.account }}-junk
|
||||||
Channel {{ $value.name }}-archive
|
Channel {{ $value.account }}-archive
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -5,52 +5,18 @@ tls_trust_file /etc/ssl/certs/ca-certificates.crt
|
|||||||
syslog on
|
syslog on
|
||||||
# logfile /var/log/msmtp.log
|
# logfile /var/log/msmtp.log
|
||||||
|
|
||||||
# MaLa
|
{{ range $value := .mail }}
|
||||||
account jeff.lance@mala.fr
|
# {{ $value.comment }}
|
||||||
host ssl0.ovh.net
|
account {{ $value.account }}
|
||||||
port 465
|
host {{ $value.smtpsrv }}
|
||||||
auth on
|
port {{ $value.smtport }}
|
||||||
|
auth {{ $value.smtpaut }}
|
||||||
tls on
|
tls on
|
||||||
tls_starttls off
|
tls_starttls off
|
||||||
user jeff.lance@mala.fr
|
user {{ $value.usrname }}
|
||||||
passwordeval "echo $(pass ssl0.ovh.net/jeff.lance@mala.fr)"
|
passwordeval "echo $(pass {{ $value.smtpsrv }}/{{ $value.usrname }})"
|
||||||
auto_from off
|
auto_from {{ $value.autofro }}
|
||||||
from jeff.lance@mala.fr
|
from {{ $value.address }}
|
||||||
|
#
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
account games@mala.fr
|
|
||||||
host ssl0.ovh.net
|
|
||||||
port 465
|
|
||||||
auth on
|
|
||||||
tls on
|
|
||||||
tls_starttls off
|
|
||||||
user games@mala.fr
|
|
||||||
passwordeval "echo $(pass ssl0.ovh.net/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 $(pass google.com/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 $(pass ac-creteil.fr/jlance)"
|
|
||||||
auto_from off
|
|
||||||
from jean-francois.lance@ac-creteil.fr
|
|
||||||
|
|
||||||
# Set a default account
|
|
||||||
account default : jeff.lance@mala.fr
|
|
||||||
|
Loading…
Reference in New Issue
Block a user