[GH-ISSUE #2980] Invalid .offlineimaprc generated when old mail server is @differentdomain than new #1645

Closed
opened 2026-02-27 11:18:20 +03:00 by kerem · 0 comments
Owner

Originally created by @fmp777 on GitHub (Aug 10, 2022).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/2980

Correct me if I'm wrong, but we're supposed to be able to do something like this, right?

image

I have it setup this way and the login worked using user@oldmail.com. It successfully created user@newmail.com as expected, however, when the .offlineimaprc file is generated, it defines the LOCAL user as user@oldmail.com instead of user@newmail.com resulting in authentication errors.

manual editing of the .offlineimaprc file changing the user to the user@newmail.com makes offlineimap work flawlessly.

So I presume its supposed to work this way, but is a bug in generate_offlineimap_config ?

I do have oldmail.com as an alias to the domain newmail.com but that doesn't seem to help the local authentication.

Originally created by @fmp777 on GitHub (Aug 10, 2022). Original GitHub issue: https://github.com/modoboa/modoboa/issues/2980 Correct me if I'm wrong, but we're supposed to be able to do something like this, right? ![image](https://user-images.githubusercontent.com/2659615/183822067-8fc24de0-26cf-4475-a8d4-60d5c4441e6b.png) I have it setup this way and the login worked using user@oldmail.com. It successfully created user@newmail.com as expected, however, when the .offlineimaprc file is generated, it defines the LOCAL user as user@oldmail.com instead of user@newmail.com resulting in authentication errors. manual editing of the .offlineimaprc file changing the user to the user@newmail.com makes offlineimap work flawlessly. So I presume its supposed to work this way, but is a bug in `generate_offlineimap_config` ? I do have oldmail.com as an alias to the domain newmail.com but that doesn't seem to help the local authentication.
kerem 2026-02-27 11:18:20 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#1645
No description provided.