Comments (13)
Hi Sebastian,
What makes you believe the Negotiation did not take place?
It look like it's just a normal authentication issue
with error message"NO failed: Re-Authentication Failure" from the server.
Do the exact same credentials work with a classic imap client like Thunderbird
or Outlook in imap?
On 29/10/2015 18:27, slemke76 wrote:
Hello,
I have a problem using imapsync with the german hoster "hetzner" - the starttls sequence is not being started correctly. I have already tried several command line options without success. It seems the sequence is not being initiated correctly.
After "1 OK Begin TLS negotiation now" the Negotiation does NOT take place.
I tried also older versions of imapsync ans also the last one from the git repository without success.Sending: 3 LOGIN [email protected] mailto:[email protected] {13}
Sent 44 bytes
Read: + OK ready for additional input
Sending: xxx
Sent 14 bytes
Read: 3 NO failed: Re-Authentication Failure
Au revoir, 09 51 84 42 42
Gilles Lamiral. France, Baulon (35580) 06 20 79 76 06
from imapsync.
Good evening,
thanks for the quick reply. I have checked the credentials in Thunderbird without problems.
This is what I am wondering about:
v1.644:
Sending: 1 STARTTLS
Sent 12 bytes
Read: 1 OK Begin TLS negotiation now
Sending: 2 CAPABILITY
v1.516
Read: * OK [CAPABILITY IMAP4 IMAP4rev1 STARTTLS UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION] perdition ready on sslproxy01.your-server.de 0002f017
Entering starttls
Sending: 1 CAPABILITY
Sent 14 bytes
Read: * CAPABILITY IMAP4 IMAP4rev1 STARTTLS UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION
Read: 1 OK CAPABILITY
Read tls: z00 OK Begin TLS negotiation now
Calling start_SSL
Socket successfuly converted to SSL
Ending starttls
With 1.644 I miss the "Socket successfuly converted to SSL" output or is it simply to being displayed?
It seems to me after "1 OK Begin TLS negotiation now" imapsync responds with "CAPABILITY" ?
Regards,
Sebastian
from imapsync.
Some additional Information:
The Provider is "Hetzner" - I have just tested it with another account, double checked with thunderbird, same problem.
from imapsync.
Back again.
I am sorry. Finally found it. I am using the file.txt from the examples-subdir of the imapsync-1.644.tgz tarball. But - this is a DOS-Style-File with CR LF.
Using this DOS-Styled file.txt on a Linux-System causes the same problems as described in sync_loop_unix.sh regarding the MACs - after adding the fake parameter everything works fine (I could also convert file.txt to a unix-style file).
Perhaps it´s a good idea to use everytime the fake-parameter? This would work in all scenarios.
Perhaps it´s also a good idea to move the host1 and host2 parameter also to file.txt?
If you would like, I can provide new samples for this.
Sebastian
from imapsync.
Hi,
It's just because STARTTLS was done directly in imapsync before.
Now it's done directly by the underlying Mail::IMAPClient
Ok, I'll add back "Socket successfuly converted to SSL".
On 29/10/2015 19:28, slemke76 wrote:
Good evening,
thanks for the quick reply. I have checked the credentials in Thunderbird without problems.
This is what I am wondering about:v1.644:
Sending: 1 STARTTLS
Sent 12 bytes
Read: 1 OK Begin TLS negotiation now
Sending: 2 CAPABILITYv1.516
Read: * OK [CAPABILITY IMAP4 IMAP4rev1 STARTTLS UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION] perdition ready on sslproxy01.your-server.de 0002f017
Entering starttls
Sending: 1 CAPABILITY
Sent 14 bytes
Read: * CAPABILITY IMAP4 IMAP4rev1 STARTTLS UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION
Read: 1 OK CAPABILITY
Read tls: z00 OK Begin TLS negotiation now
Calling start_SSL
Socket successfuly converted to SSL
Ending starttlsWith 1.644 I miss the "Socket successfuly converted to SSL" output or is it simply to being displayed?
It seems to me after "1 OK Begin TLS negotiation now" imapsync responds with "CAPABILITY" ?
Au revoir, 09 51 84 42 42
Gilles Lamiral. France, Baulon (35580) 06 20 79 76 06
from imapsync.
Sorry for the confusion.
Sebastian
from imapsync.
Hi Sebastian,
I am sorry. Finally found it. I am using the file.txt from the examples-subdir of the imapsync-1.644.tgz tarball.
But - this is a DOS-Style-File with CR LF.
Ah yes. I consider Windows users less technically aware of this issue
or more likely my last tests about this file were on Windows.
Using this DOS-Styled file.txt on a Linux-System causes the same problems as described
in sync_loop_unix.sh - after adding the fake parameter everything works fine
(I could also convert file.txt to a unix-style file).
Ok.
Perhaps it´s a good idea to use everytime the fake-parameter? This would work in all scenarios.
Yes. Good point.
Perhaps it´s also a good idea to move the host1 and host2 parameter also to file.txt?
I am sure, the more variable parameters the
If you would like, I can provide new samples for this.
I'll surely consider them.
Au revoir, 09 51 84 42 42
Gilles Lamiral. France, Baulon (35580) 06 20 79 76 06
from imapsync.
Hello,
my files are attached.
UPDATE: Will sent it to you via e-Mail - I cannot attach files here.
These are the changes:
- Added host1 and host2 in file.txt
- Added fake paremeter for preventing CR character goes in p2
variable on **nix systems with dos-styled file.txt
- Added possibility to provide additional parameters to pass to
imapsync
- changed call to ./imapsync instead of imapsync
You can remove my name from the file, I have added it for internal
documentation proposes.
I have added the possibility to pass command line options through the
script towards to imapsync.
So the user do not have to make any changes to the script itself.
Therefore it makes sense to move the mail-host also into file.txt.
imapsync is a fantastic piece of software. I am happy to give something
"back".
Sebastian
from imapsync.
Hi Sebastian,
These are the changes:
- Added host1 and host2 in file.txt
- Added fake parameter for preventing CR character goes in p2
variable on **nix systems with dos-styled file.txt
- Added possibility to provide additional parameters to pass to
imapsync
I have added the possibility to pass command line options through the
script towards to imapsync.
So the user do not have to make any changes to the script itself.
Therefore it makes sense to move the mail-host also into file.txt.
All added and tested upstream.
- changed call to ./imapsync instead of imapsync
Not changed.
You can remove my name from the file, I have added it for internal
documentation proposes.
You're now named you in CREDITS file.
http://imapsync.lamiral.info/CREDITS
(after next publish)
imapsync is a fantastic piece of software. I am happy to give something
"back".
Thanks to you!
Au revoir, 09 51 84 42 42
Gilles Lamiral. France, Baulon (35580) 06 20 79 76 06
from imapsync.
Hello,
very nice - Thanks a lot.
Have you also adapted the windows-version of the script?
If not, should I do so?
Grüße,
Sebastian Lemke
infoworxx GmbH // integrated IT-Solutions
Alenconer Straße 30 // 49610 Quakenbrück
Tel.: 05431-90777-7 // Fax: 05431-90777-99
http://www.infoworxx.de // [email protected]
Geschäftsführender Gesellschafter: Sebastian Lemke
Amtsgericht Osnabrück HRB 203731
------ Originalnachricht ------
Von: "Gilles LAMIRAL" [email protected]
An: "imapsync/imapsync" [email protected]
Cc: "slemke76" [email protected]
Gesendet: 04.11.2015 19:36:30
Betreff: Re: [imapsync] starttls does not work as expected (#42)
Hi Sebastian,
These are the changes:
- Added host1 and host2 in file.txt
- Added fake parameter for preventing CR character goes in p2
variable on **nix systems with dos-styled file.txt
- Added possibility to provide additional parameters to pass to
imapsync
I have added the possibility to pass command line options through the
script towards to imapsync.
So the user do not have to make any changes to the script itself.
Therefore it makes sense to move the mail-host also into file.txt.All added and tested upstream.
- changed call to ./imapsync instead of imapsync
Not changed.
You can remove my name from the file, I have added it for internal
documentation proposes.You're now named you in CREDITS file.
http://imapsync.lamiral.info/CREDITS
(after next publish)imapsync is a fantastic piece of software. I am happy to give
something
"back".Thanks to you!
Au revoir, 09 51 84 42 42
Gilles Lamiral. France, Baulon (35580) 06 20 79 76 06
—
Reply to this email directly or view it on GitHub.
from imapsync.
Hi Sebastian,
Have you also adapted the windows-version of the script?
Yes, and tested it.
In fact, while playing with the changes and noticing I don't know how to
add "$@" in a batch file, I though it could be a nice thing to add
a seventh field in file.txt that would contain all extra parameters.
This way, extra parameters could be specific per transfer, if needed,
and still no change to be made in the loop script.
Au revoir, 09 51 84 42 42
Gilles Lamiral. France, Baulon (35580) 06 20 79 76 06
from imapsync.
Good Morning,
this will work this way for Windows/DOS-Scripts (just tested) - the
magic is the "shift" command:
@echo off
rem used for local variables (%arguments%)
setlocal enabledelayedexpansion
rem empty agruments (it could be that some other script has used it
before)
set arguments=
if %1. EQU . (
echo.
echo Usage:
echo.
echo %~0 param1 param2 ... paramx
echo.
goto end
)
:args_loop
set arguments=%arguments% %1
shift
if %1. NEQ . goto args_loop
:args_loop_end
echo %arguments%
:end
After all in %arguments% are all command line arguments.
My personal option is that it´s better to provide the arguments on the
command line, but it´s the same discussion as the mail-host ;-)
Have a nice day!
Grüße,
Sebastian Lemke
infoworxx GmbH // integrated IT-Solutions
Alenconer Straße 30 // 49610 Quakenbrück
Tel.: 05431-90777-7 // Fax: 05431-90777-99
http://www.infoworxx.de // [email protected]
Geschäftsführender Gesellschafter: Sebastian Lemke
Amtsgericht Osnabrück HRB 203731
------ Originalnachricht ------
Von: "Gilles LAMIRAL" [email protected]
An: "imapsync/imapsync" [email protected]
Cc: "slemke76" [email protected]
Gesendet: 12.11.2015 06:36:21
Betreff: Re: [imapsync] starttls does not work as expected (#42)
Hi Sebastian,
Have you also adapted the windows-version of the script?
Yes, and tested it.
In fact, while playing with the changes and noticing I don't know how
to
add "$@" in a batch file, I though it could be a nice thing to add
a seventh field in file.txt that would contain all extra parameters.
This way, extra parameters could be specific per transfer, if needed,
and still no change to be made in the loop script.Au revoir, 09 51 84 42 42
Gilles Lamiral. France, Baulon (35580) 06 20 79 76 06
—
Reply to this email directly or view it on GitHub.
from imapsync.
Hi Sebastian,
Thanks fir the tip!
I added arguments stuff in the batch and tested it.
http://imapsync.lamiral.info/examples/sync_loop_windows.bat
On 12/11/2015 08:46, slemke76 wrote:
Good Morning,
this will work this way for Windows/DOS-Scripts (just tested) - the
magic is the "shift" command:@echo off
rem used for local variables (%arguments%)
setlocal enabledelayedexpansion
rem empty agruments (it could be that some other script has used it
before)
set arguments=if %1. EQU . (
goto end
):args_loop
set arguments=%arguments% %1
shift
if %1. NEQ . goto args_loop
echo %arguments%
:endAfter all in %arguments% are all command line arguments.
My personal option is that it´s better to provide the arguments on the
command line, but it´s the same discussion as the mail-host ;-)------ Originalnachricht ------
Von: "Gilles LAMIRAL" [email protected]
An: "imapsync/imapsync" [email protected]
Cc: "slemke76" [email protected]
Gesendet: 12.11.2015 06:36:21
Betreff: Re: [imapsync] starttls does not work as expected (#42)Hi Sebastian,
Have you also adapted the windows-version of the script?
Yes, and tested it.
In fact, while playing with the changes and noticing I don't know how
to
add "$@" in a batch file, I though it could be a nice thing to add
a seventh field in file.txt that would contain all extra parameters.
This way, extra parameters could be specific per transfer, if needed,
and still no change to be made in the loop script.
Au revoir, 09 51 84 42 42
Gilles Lamiral. France, Baulon (35580) 06 20 79 76 06
from imapsync.
Related Issues (20)
- Docker: Internal server error HOT 6
- Question: Is there a better way to do unit test HOT 10
- Imapsync webserver and Debian 12 HOT 1
- could not be fetched: socket closed while reading data from server (4x) The most frequent error is ERR_Host1_FETCH. HOT 3
- After losing network connection, imapsync appears to not be able to sync ~2000 missed emails. HOT 3
- imapsync parallel command HOT 5
- mapsync Ended by a signal TERM HOT 1
- Handling slashes "/" in folder names HOT 6
- Install on M1 via brew HOT 1
- Syncing Imap Sync from Imap account to Mail Plus ? HOT 24
- log duplicates HOT 1
- Ignore "ERR_APPEND" HOT 4
- Website is down HOT 3
- Resync recommandations and Duplicates HOT 5
- Error with sieve/managesieve.sieve file and the .dovecot.sieve symlink
- Authentication failed only on host1 issue HOT 4
- Docker: Store logs on a different volume outside of the container HOT 1
- Special characters in foldernames HOT 1
- delete mail host1 based on space\quota HOT 3
- Total on host2 greater than on host1 although size is lesser HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imapsync.