Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

mbsync error: unknown section keyword 'SSLType'

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
bedtime
Posts: 146
Joined: 2012-12-16 19:34
Has thanked: 1 time
Been thanked: 6 times

mbsync error: unknown section keyword 'SSLType'

#1 Post by bedtime »

When I run mbsync user, I get:

Code: Select all

~/.mbsyncrc:6: unknown section keyword 'SSLType'
~/.mbsyncrc:6: unknown section keyword 'CertificateFile'
~/.mbsyncrc:6: unknown section keyword 'Subfolders'
~/.mbsyncrc:6: unknown section keyword 'Path'
~/.mbsyncrc:

Code: Select all

~/.mbsyncrc
IMAPAccount gmail
# Address to connect to
Host imap.gmail.com
User username@gmail.com
Pass ***************
# To store the password in an encrypted file use PassCmd instead of Pass
# PassCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/.mailpass.gpg"
#
# 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
CertificateFile ~/.cert/imap.gmail.com.pem
#CertificateFile ~/.cert/Equifax_Secure_CA.pem

IMAPStore gmail-remote
Account gmail

MaildirStore gmail-local
Subfolders Verbatim
# The trailing "/" is important
Path ~/.mail/gmail/
Inbox ~/.mail/gmail/Inbox

Channel gmail
Master :gmail-remote:
Slave :gmail-local:
# Exclude everything under the internal [Gmail] folder, except the interesting folders
Patterns * ![Gmail]* "[Gmail]/Sent Mail" "[Gmail]/Starred" "[Gmail]/All Mail"
# Or include everything
#Patterns *
# Automatically create missing mailboxes, both locally and on the server
Create Both
# Save the synchronization state files in the relevant directory
SyncState *
I followed this tutorial: https://wiki.archlinux.org/index.php/Isync

Perhaps SSL is not installed, but after having installed several SSL apps, this error remains.

Any ideas?

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: mbsync error: unknown section keyword 'SSLType'

#2 Post by bw123 »

Maybe instead of arch wiki, try the example in /usr/share/doc/isync/examples/mbsyncrc.sample

https://packages.debian.org/stretch/amd ... c/filelist

When asking for help, it's important to include debian version in the question.
bedtime wrote: ...
Perhaps SSL is not installed, but after having installed several SSL apps, this error remains.
Pkg isync depends on libssl1.1 (>= 1.1.0) I don't see why you would say perhaps ssl is not installed?

Code: Select all

$ apt show isync | grep Dep

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Depends: libc6 (>= 2.14), libdb5.3, libsasl2-2, libssl1.1 (>= 1.1.0), zlib1g (>= 1:1.1.4)
resigned by AI ChatGPT

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: mbsync error: unknown section keyword 'SSLType'

#3 Post by debiman »

maybe the config file syntax has changed recently?
looking at /usr/share/doc/isync/examples/mbsyncrc.sample should help.

bedtime
Posts: 146
Joined: 2012-12-16 19:34
Has thanked: 1 time
Been thanked: 6 times

Re: mbsync error: unknown section keyword 'SSLType'

#4 Post by bedtime »

bw123 wrote:Maybe instead of arch wiki, try the example in /usr/share/doc/isync/examples/mbsyncrc.sample

https://packages.debian.org/stretch/amd ... c/filelist

When asking for help, it's important to include debian version in the question.
Version 9.5.
Pkg isync depends on libssl1.1 (>= 1.1.0) I don't see why you would say perhaps ssl is not installed?

Code: Select all

$ apt show isync | grep Dep
Thank you. Next time I know to check this. :)
debiman wrote:maybe the config file syntax has changed recently?
looking at /usr/share/doc/isync/examples/mbsyncrc.sample should help.
This is ever so bizarre; the configuration that I posted was the working one I use on my Fedora 28 system, which is a newer version: isync 1.3.0, Debian's version is: isync 1.2.1. Yet Debian's isync says that these commands are depreciated?

I'm not sure what type of logic this is, but I question if Thales or Pythagoras would approve of it. :roll:

I tried installing isync with Debian backports, and there is no newer version. As to Debian's sample configuration, I fiddled for hours, and nothing came of it.

I have fetchmail working nicely in both Debian and Fedora, but apparently it is no longer being maintained...

Ultimately, the hope is that, once this is all setup, I won't have to touch it for long time. I want something that is lightweight and can dependably check for and download mail in the background, so that mutt or 'mail' can just grab the files on the computer and read it.

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: mbsync error: unknown section keyword 'SSLType'

#5 Post by GarryRicketson »

This is ever so bizarre; the configuration that I posted was the working one I use on my Fedora 28 system, which is a newer version: isync 1.3.0, Debian's version is: isync 1.2.1. Yet Debian's isync says that these commands are depreciated?
Not really , Fedora and Debian are 2 different distros, what they use on Fedora, might not be the same, nor have the same status as what is used for Debian, and in the Debian packages.


User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: mbsync error: unknown section keyword 'SSLType'

#7 Post by GarryRicketson »

"Any ideas ? "
Maybe a little patience :
https://bugs.debian.org/cgi-bin/bugrepo ... bug=906955
We believe that the bug you reported is fixed in the latest version of
isync, which is due to be installed in the Debian FTP archive.
I see it is available in Debian testing,
https://packages.debian.org/buster/isync
Package: isync (1.3.0-2)
In the current Debian stable (stretch) it is still :
Package: isync (1.2.1-2)

The OP maybe could wait, and some one will do it for them,or backport/compile the package from Debian testing, and use it in Debian stable, ?
( I think, but am not positive)
It does look like the newer version should appear soon, in some updates.

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: mbsync error: unknown section keyword 'SSLType'

#8 Post by debiman »

bedtime wrote:This is ever so bizarre; the configuration that I posted was the working one I use on my Fedora 28 system, which is a newer version: isync 1.3.0, Debian's version is: isync 1.2.1. Yet Debian's isync says that these commands are depreciated?
nothing in your op says deprecated. just unknown.
why don't you try recreating the config with the help of the example file, the current man page, and/or a tutorial for your specific version?

bedtime
Posts: 146
Joined: 2012-12-16 19:34
Has thanked: 1 time
Been thanked: 6 times

Re: mbsync error: unknown section keyword 'SSLType'

#9 Post by bedtime »

I see that others have had like issues, but there doesn't seem to be any solution to their posts.
GarryRicketson wrote:"Any ideas ? "
Maybe a little patience :
https://bugs.debian.org/cgi-bin/bugrepo ... bug=906955
We believe that the bug you reported is fixed in the latest version of
isync, which is due to be installed in the Debian FTP archive.
I see it is available in Debian testing,
https://packages.debian.org/buster/isync
Package: isync (1.3.0-2)
In the current Debian stable (stretch) it is still :
Package: isync (1.2.1-2)

The OP maybe could wait, and some one will do it for them,or backport/compile the package from Debian testing, and use it in Debian stable, ?
( I think, but am not positive)
It does look like the newer version should appear soon, in some updates.
I installed Buster, and it's working now; this was only a small virtual install to check the mail so was quite quick. :D

fjauge
Posts: 1
Joined: 2019-02-05 00:30

Re: mbsync error: unknown section keyword 'SSLType'

#10 Post by fjauge »

try review order,
i had the same issue with CertificateFile and the order i got it to work was:

---
IMAPAccount origin
Host imap.whatever.com
#Port 143
User name@whatever.com
Pass mypassword
# PassCmd "gpg2 -q --for-your-eyes-only --no-tty --batch -d ~/.mail-home.gpg"
CertificateFile ~/certs/imap.whatever.com.pem #/etc/ssl/certs/ca-certificates.crt
SSLType STARTTLS
---

i had SSLType and CertificateFile in inverse order and with a blank line in the middle ( well perhaps was the blank line jaja)

Post Reply