Re: Migration issue

2020-08-04 Thread Kishore Potnuru
Thank you for the reply.

In old server (production1), I have changed like this for passdb. rest all
i kept the same.

passdb {
args = /etc/dovecot/master-users
driver = passwd-file
master = yes
#pass = yes
}

passdb {
driver = passwd-file
args = username_format=%u /etc/dovecot/passwd
}

Now I am getting the below Authentication error from production2. Seems I
have made some mistake.

-
[root@production2 dovecot]# doveadm backup -a All -R -u
kish...@test.testorg.com imapc:
dsync(kish...@test.testorg.com): Info: imapc(production1.testorg.com:143):
Connected to 161.2.11.119:143 (local xxx.xxx.xxx.xxx:39200)
dsync(kish...@test.testorg.com): Error: imapc(production1.testorg.com:143):
Authentication failed: [AUTHENTICATIONFAILED] Authentication failed.
dsync(kish...@test.testorg.com): Error: User initialization failed: imapc:
Login to production1.testorg.com failed: Authentication failed:
[AUTHENTICATIONFAILED] Authentication failed.
-

In production1, I see this error:

-
Aug 04 16:42:43 imap-login: Info: Disconnected (auth failed, 1 attempts):
user=, method=PLAIN, rip=xxx.xxx.xxx.xxx, lip=xxx.xxx.xxx.xxx
-

The content on the password file:

---
[root@production1 log]# cat /etc/dovecot/passwd
ka...@test.testorg.com:{PLAIN}Password123
kish...@test.testorg.com:{PLAIN}Password123

[root@production1 log]# cat /etc/dovecot/master-users
ka...@test.testorg.com:{PLAIN}Password123
kish...@test.testorg.com:{PLAIN}Password123
---
I have copied the same content of the "passwd" file to "master-users" file.
Actually, it should be having same content? if different, what will be the
data and which format?

Please advise me, what am I making mistakes? As told you before, the
dovecot versions are production1(2.0.9) and production2(2.2.36 (1f10bfa63))


On Tue, Aug 4, 2020 at 11:21 AM Markus Winkler  wrote:

> Hi Kishore,
>
> On 04.08.20 09:50, Kishore Potnuru wrote:
> > So, both password files (master and regular user credentials) have the
> same
> > contents in this scenario, correct?
>
>
> first of all: thanks for collecting the information.
>
> As Joseph wrote: I too think that in your config of 'production1' a passdb
> with the credentials of regular users is missing.
>
> On one of my servers I'm using this:
>
> passdb {
>driver = passwd-file
>master = yes
>args = /etc/dovecot/master-users
>#pass = yes
> }
>
> passdb {
>driver = passwd-file
>args = username_format=%u /etc/dovecot/users
> }
>
>
> Something similar should work in your case.
>
> Regards,
> Markus
>


Re: Migration issue

2020-08-04 Thread Kishore Potnuru
Thank you for the response.

So, both password files (master and regular user credentials) have the same
contents in this scenario, correct?

-Kishore

On Mon, Aug 3, 2020 at 11:42 PM Joseph Tam  wrote:

> On Mon, 3 Aug 2020, Kishore Potnuru wrote:
>
> > ===
> > Jul 28 11:14:23 auth: Fatal: Master passdb can't have pass=yes if there
> are
> > no passdbs
> > Jul 28 11:14:23 master: Error: service(auth): command startup failed,
> > throttling
> > ===
> >
> > after the above error, I have commented "pass=yes" in production1 (old
> > server) server, then I see the below error.
> >
> > 
> > Jul 28 11:17:10 auth: Fatal: No passdbs specified in configuration file.
> > PLAIN mechanism needs one
> > Jul 28 11:17:10 master: Error: service(auth): command startup failed,
> > throttling
> > ===
> >
> > =
> > My old server dovecot.conf (production1):
> > =
> >
> > passdb {
> >args = /etc/dovecot/passwd
> >driver = passwd-file
> >master = yes
> >pass = yes
> >}
>
> My interpretation of your error messages is you need 2 sets of credentials:
> regular users and master users.  You've only supplied master passwords.
> You'll need
>
> # Contains master users credentials
> passdb {
> args = /etc/dovecot/master-passwd
> driver = passwd-file
> master = yes
> pass = yes
> }
>
> # Contains regular user credentials
> passdb {
> args = /etc/dovecot/passwd
> driver = passwd-file
> }
>
> Joseph Tam 
>


Re: Migration issue

2020-08-03 Thread Kishore Potnuru
  2105/sshd
tcp0  0 127.0.0.1:44438 0.0.0.0:*
LISTEN  1736/pbx_exchange
tcp0  0 0.0.0.0:80890.0.0.0:*
LISTEN  2363/splunkd
tcp0  0 0.0.0.0:25  0.0.0.0:*
LISTEN  2260/master
tcp0  0 0.0.0.0:13724   0.0.0.0:*
LISTEN  2143/vnetd
tcp0  0 0.0.0.0:42397   0.0.0.0:*
LISTEN  -
tcp0  0 0.0.0.0:993 0.0.0.0:*
LISTEN  3499/dovecot
tcp0  0 0.0.0.0:995 0.0.0.0:*
LISTEN  3499/dovecot
tcp0  0 0.0.0.0:110 0.0.0.0:*
LISTEN  3499/dovecot
tcp0  0 0.0.0.0:143 0.0.0.0:*
LISTEN  3499/dovecot
tcp0  0 0.0.0.0:35375   0.0.0.0:*
LISTEN  -
tcp0  0 0.0.0.0:111 0.0.0.0:*
LISTEN  1620/rpcbind
tcp0  0 :::1556 :::*
 LISTEN  1736/pbx_exchange
tcp0  0 :::33941:::*
 LISTEN  -
tcp0  0 :::22   :::*
 LISTEN  2105/sshd
tcp0  0 :::25   :::*
 LISTEN  2260/master
tcp0  0 :::60414:::*
 LISTEN  1661/rpc.statd
tcp0  0 :::41186:::*
 LISTEN  -
tcp0  0 :::3181 :::*
 LISTEN  3162/PatrolAgent
tcp0  0 :::111  :::*
 LISTEN  1620/rpcbind


4)

[root@production1 ~]# ls -la /etc/dovecot
total 32
drwxr-xr-x   3 root root  4096 Jul 28 15:24 .
drwxr-xr-x. 94 root root 12288 Aug  3 20:23 ..
drwxr-xr-x   2 root root  4096 Jan 13  2020 conf.d
-rw-r--r--   1 root root   615 Jul 28 11:43 dovecot.conf
-rw-r--r--   1 root root  3455 Dec 30  2010 dovecot.conf.orig
-rw-r--r--   1 root root75 Jan 20  2020 passwd

5)

[root@production2 ~]# telnet production1.testorg.com 143
Trying xxx.xxx.xxx.xxx...
Connected to production1.testorg.com.
Escape character is '^]'.
* OK Waiting for authentication process to respond..
* BYE Disconnected for inactivity.
Connection closed by foreign host.
[root@production2 ~]#

[vmail@production2 ~]$ telnet production1.testorg.com 143
Trying xxx.xxx.xxx.xxx...
Connected to production1.testorg.com.
Escape character is '^]'.
* OK Waiting for authentication process to respond..
* BYE Disconnected for inactivity.
Connection closed by foreign host.
[root@production2 ~]#


Thanks & Regards,
Kishore Potnuru

On Mon, Aug 3, 2020 at 7:52 PM Markus Winkler  wrote:

> Hi Kishore,
>
> On 03.08.20 15:33, Kishore Potnuru wrote:
> > Please let me know if you need any other details.
>
> please provide the following outputs/answers:
>
> 1) Are users able to login and access their mailboxes on production1 with
> an IMAP client?
>
> On your old server (production1):
>
> 2) ps aux | grep dovecot
>
> 3) netstat -lntp
>
> 4) ls -la /etc/dovecot
>
> On your new server (production2):
>
> 5) telnet production1.testorg.com 143
>
>
> Thanks and regards
> Markus
>
>


Migration issue

2020-08-03 Thread Kishore Potnuru
Hi All,

I have tried the below command to migrate the data from the old
server(dovecot version: 2.0.9) to new servers(dovecot version: 2.2.36
(1f10bfa63)). But it's throwing an error.

old server name: production1
new server1 name: production2 (for HA/Replication)
new server2 name: production3  (for HA/Replication)

I have configured replication between production2 and production3, which is
working fine.

The issue is, the below command I am trying is from production2 server and
trying to take the data from production1 server.

-
[root@production2 log]# doveadm backup -a All -R -u kish...@test.testorg.com
imapc:
dsync(kish...@test.testorg.com): Info: imapc(production1.testorg.com:143):
Connected to xxx.xxx.xxx.xxx:143 (local yyy.yyy.yyy.yyy:45992)
dsync(kish...@test.testorg.com): Warning: imapc(production1.testorg.com:143):
connect(xxx.xxx.xxx.xxx, 143) timed out after 30 seconds - reconnecting
(delay 0 ms)
dsync(kish...@test.testorg.com): Info: imapc(production1.testorg.com:143):
Connected to xxx.xxx.xxx.xxx:143 (local yyy.yyy.yyy.yyy:46014)
dsync(kish...@test.testorg.com): Error: imapc(production1.testorg.com:143):
connect(xxx.xxx.xxx.xxx, 143) timed out after 30 seconds - disconnecting
dsync(kish...@test.testorg.com): Error: User initialization failed: imapc:
Login to production1.testorg.com failed: Disconnected from server
[root@production2 log]#
--

I looked into the production1 (old server) logs. I see the below error.

===
Jul 28 11:14:23 auth: Fatal: Master passdb can't have pass=yes if there are
no passdbs
Jul 28 11:14:23 master: Error: service(auth): command startup failed,
throttling
===

after the above error, I have commented "pass=yes" in production1 (old
server) server, then I see the below error.


Jul 28 11:17:10 auth: Fatal: No passdbs specified in configuration file.
PLAIN mechanism needs one
Jul 28 11:17:10 master: Error: service(auth): command startup failed,
throttling
===

Please suggest me on fixing the issue.

Adding the dovecot.conf configuration from old and new servers:

=
My old server dovecot.conf (production1):
=

disable_plaintext_auth = no

listen = *
log_path = /var/log/dovecot.log
mail_location = maildir:/z1dev/mail/virtual/%d/%n/Maildir/
passdb {
args = /etc/dovecot/passwd
driver = passwd-file
master = yes
pass = yes
}
pop3_uidl_format = %g
protocols = pop3 imap
ssl = yes
ssl_cert = 

Re: Migration issue

2020-07-29 Thread Kishore Potnuru
Please provide your suggestions to resolve the issue.

On Tue, Jul 28, 2020 at 9:18 PM Kishore Potnuru 
wrote:

>
> Adding the dovecot.conf configuration from old and new servers:
>
> =
> My old server dovecot.conf (production1):
> =
>
> disable_plaintext_auth = no
>
> listen = *
> log_path = /var/log/dovecot.log
> mail_location = maildir:/z1dev/mail/virtual/%d/%n/Maildir/
> passdb {
> args = /etc/dovecot/passwd
> driver = passwd-file
> master = yes
> pass = yes
> }
> pop3_uidl_format = %g
> protocols = pop3 imap
> ssl = yes
> ssl_cert =  ssl_key = 
> userdb {
> args = uid=vmail gid=vmail home=/z1dev/mail/virtual/%d/%n
> driver = static
> }
> mail_debug = no
> verbose_ssl = no
>
> =
> My New server dovecot.conf(production2):
> =
>
> disable_plaintext_auth = no
>
> listen = *
> log_path = /var/log/dovecot.log
>
> mail_location = maildir:/z1devenv/mail/virtual/%d/%n/Maildir/
>
> passdb {
> args = /etc/dovecot/passwd
> driver = passwd-file
> }
>
> pop3_uidl_format = %g
> protocols = pop3 imap
>
> ssl = yes
> ssl_cert =  ssl_key = 
> userdb {
> args = uid=vmail gid=vmail home=/z1devenv/mail/virtual/%d/%n
> driver = static
> }
>
> mail_debug = yes
> verbose_ssl = no
>
>
> # Enable the replication plugin globally
> mail_plugins = $mail_plugins notify replication
>
> service replicator {
>   process_min_avail = 1
> }
>
> dsync_remote_cmd = ssh -l%{login} %{host} doveadm dsync-server -u%u
> plugin {
>   mail_replica = remote:vm...@production3.baplc.com
> }
>
> service aggregator {
>   fifo_listener replication-notify-fifo {
> user = vmail
>   }
>   unix_listener replication-notify {
> user = vmail
>   }
> }
>
> service replicator {
>   unix_listener replicator-doveadm {
> mode = 0600
> user = vmail
>   }
> }
>
> replication_max_conns = 10
>
> imapc_host = production1.baplc.com
> imapc_password = vmail
> imapc_master_user = vmail
> imapc_user = %u
>
> =======
>
> On Tue, Jul 28, 2020 at 8:44 PM Antonio Leding  wrote:
>
>> Not sure if this is the issue but the error says no password database is
>> cfg’d…is that truly the case?
>>
>> Maybe post a redacted config for the community to review…
>>
>>
>>
>> On Jul 28, 2020, at 7:20 AM, Kishore Potnuru 
>> wrote:
>>
>> Hi Aki & Dovecot team,
>>
>> Just continuing with the previous discussion "Migration from one server
>> to 2 new servers".
>>
>> Hi,
>>
>> I have tried the same way as per your suggestion. But it's throwing an
>> error.
>>
>> -
>> [root@production2 log]# doveadm backup -a All -R -u kish...@test.ba.com
>>  imapc:
>> dsync(kish...@test.ba.com): Info: imapc(production1.baplc.com:143):
>> Connected to xxx.xxx.xxx.xxx:143 (local yyy.yyy.yyy.yyy:45992)
>> dsync(kish...@test.ba.com): Warning: imapc(production1.baplc.com:143):
>> connect(xxx.xxx.xxx.xxx, 143) timed out after 30 seconds - reconnecting
>> (delay 0 ms)
>> dsync(kish...@test.ba.com): Info: imapc(production1.baplc.com:143):
>> Connected to xxx.xxx.xxx.xxx:143 (local yyy.yyy.yyy.yyy:46014)
>> dsync(kish...@test.ba.com): Error: imapc(production1.baplc.com:143):
>> connect(xxx.xxx.xxx.xxx, 143) timed out after 30 seconds - disconnecting
>> dsync(kish...@test.ba.com): Error: User initialization failed: imapc:
>> Login to production1.baplc.com failed: Disconnected from server
>> [root@production2 log]#
>> --
>>
>> I looked into the production1 (old server) logs. I see the below error.
>>
>> ===
>> Jul 28 11:14:23 auth: Fatal: Master passdb can't have pass=yes if there
>> are no passdbs
>> Jul 28 11:14:23 master: Error: service(auth): command startup failed,
>> throttling
>> ===
>>
>> after the above error, I have commented "pass=yes" in production1 (old
>> server) server, then I see the below error.
>>
>> 
>> Jul 28 11:17:10 auth: Fatal: No passdbs specified in configuration file.
>> PLAIN mechanism needs one
>> Jul 28 11:17:10 master: Error: service(auth): command startup failed,
>> throttling
>> ===
>>
>> Please suggest me on fixing the issue.
>>
>>
>>
>>


Re: Migration issue

2020-07-28 Thread Kishore Potnuru
Adding the dovecot.conf configuration from old and new servers:

=
My old server dovecot.conf (production1):
=

disable_plaintext_auth = no

listen = *
log_path = /var/log/dovecot.log
mail_location = maildir:/z1dev/mail/virtual/%d/%n/Maildir/
passdb {
args = /etc/dovecot/passwd
driver = passwd-file
master = yes
pass = yes
}
pop3_uidl_format = %g
protocols = pop3 imap
ssl = yes
ssl_cert =  wrote:

> Not sure if this is the issue but the error says no password database is
> cfg’d…is that truly the case?
>
> Maybe post a redacted config for the community to review…
>
>
>
> On Jul 28, 2020, at 7:20 AM, Kishore Potnuru 
> wrote:
>
> Hi Aki & Dovecot team,
>
> Just continuing with the previous discussion "Migration from one server
> to 2 new servers".
>
> Hi,
>
> I have tried the same way as per your suggestion. But it's throwing an
> error.
>
> -
> [root@production2 log]# doveadm backup -a All -R -u kish...@test.ba.com
>  imapc:
> dsync(kish...@test.ba.com): Info: imapc(production1.baplc.com:143):
> Connected to xxx.xxx.xxx.xxx:143 (local yyy.yyy.yyy.yyy:45992)
> dsync(kish...@test.ba.com): Warning: imapc(production1.baplc.com:143):
> connect(xxx.xxx.xxx.xxx, 143) timed out after 30 seconds - reconnecting
> (delay 0 ms)
> dsync(kish...@test.ba.com): Info: imapc(production1.baplc.com:143):
> Connected to xxx.xxx.xxx.xxx:143 (local yyy.yyy.yyy.yyy:46014)
> dsync(kish...@test.ba.com): Error: imapc(production1.baplc.com:143):
> connect(xxx.xxx.xxx.xxx, 143) timed out after 30 seconds - disconnecting
> dsync(kish...@test.ba.com): Error: User initialization failed: imapc:
> Login to production1.baplc.com failed: Disconnected from server
> [root@production2 log]#
> --
>
> I looked into the production1 (old server) logs. I see the below error.
>
> ===
> Jul 28 11:14:23 auth: Fatal: Master passdb can't have pass=yes if there
> are no passdbs
> Jul 28 11:14:23 master: Error: service(auth): command startup failed,
> throttling
> ===
>
> after the above error, I have commented "pass=yes" in production1 (old
> server) server, then I see the below error.
>
> 
> Jul 28 11:17:10 auth: Fatal: No passdbs specified in configuration file.
> PLAIN mechanism needs one
> Jul 28 11:17:10 master: Error: service(auth): command startup failed,
> throttling
> ===
>
> Please suggest me on fixing the issue.
>
>
>
>


Migration issue

2020-07-28 Thread Kishore Potnuru
Hi Aki & Dovecot team,

Just continuing with the previous discussion "Migration from one server to
2 new servers".

Hi,

I have tried the same way as per your suggestion. But it's throwing an
error.

-
[root@production2 log]# doveadm backup -a All -R -u kish...@test.ba.com
 imapc:
dsync(kish...@test.ba.com): Info: imapc(production1.baplc.com:143):
Connected to xxx.xxx.xxx.xxx:143 (local yyy.yyy.yyy.yyy:45992)
dsync(kish...@test.ba.com): Warning: imapc(production1.baplc.com:143):
connect(xxx.xxx.xxx.xxx, 143) timed out after 30 seconds - reconnecting
(delay 0 ms)
dsync(kish...@test.ba.com): Info: imapc(production1.baplc.com:143):
Connected to xxx.xxx.xxx.xxx:143 (local yyy.yyy.yyy.yyy:46014)
dsync(kish...@test.ba.com): Error: imapc(production1.baplc.com:143):
connect(xxx.xxx.xxx.xxx, 143) timed out after 30 seconds - disconnecting
dsync(kish...@test.ba.com): Error: User initialization failed: imapc: Login
to production1.baplc.com failed: Disconnected from server
[root@production2 log]#
--

I looked into the production1 (old server) logs. I see the below error.

===
Jul 28 11:14:23 auth: Fatal: Master passdb can't have pass=yes if there are
no passdbs
Jul 28 11:14:23 master: Error: service(auth): command startup failed,
throttling
===

after the above error, I have commented "pass=yes" in production1 (old
server) server, then I see the below error.


Jul 28 11:17:10 auth: Fatal: No passdbs specified in configuration file.
PLAIN mechanism needs one
Jul 28 11:17:10 master: Error: service(auth): command startup failed,
throttling
===

Please suggest me on fixing the issue.


Re: Migration from one server to 2 new servers

2020-07-28 Thread Kishore Potnuru
Hi,

I have tried the same way as per your suggestion. But it's throwing an
error.

-
[root@production2 log]# doveadm backup -a All -R -u kish...@test.ba.com
imapc:
dsync(kish...@test.ba.com): Info: imapc(production1.baplc.com:143):
Connected to xxx.xxx.xxx.xxx:143 (local yyy.yyy.yyy.yyy:45992)
dsync(kish...@test.ba.com): Warning: imapc(production1.baplc.com:143):
connect(xxx.xxx.xxx.xxx, 143) timed out after 30 seconds - reconnecting
(delay 0 ms)
dsync(kish...@test.ba.com): Info: imapc(production1.baplc.com:143):
Connected to xxx.xxx.xxx.xxx:143 (local yyy.yyy.yyy.yyy:46014)
dsync(kish...@test.ba.com): Error: imapc(production1.baplc.com:143):
connect(xxx.xxx.xxx.xxx, 143) timed out after 30 seconds - disconnecting
dsync(kish...@test.ba.com): Error: User initialization failed: imapc: Login
to production1.baplc.com failed: Disconnected from server
[root@production2 log]#
--

I looked into the production1 (old server) logs. I see the below error.

===
Jul 28 11:14:23 auth: Fatal: Master passdb can't have pass=yes if there are
no passdbs
Jul 28 11:14:23 master: Error: service(auth): command startup failed,
throttling
===

after the above error, I have commented "pass=yes" in production1 (old
server) server, then I see the below error.


Jul 28 11:17:10 auth: Fatal: No passdbs specified in configuration file.
PLAIN mechanism needs one
Jul 28 11:17:10 master: Error: service(auth): command startup failed,
throttling
===

Please suggest me on fixing the issue.

On Tue, Jul 28, 2020 at 6:57 AM Aki Tuomi 
wrote:

> Hi!
>
> Kishore, you got the command wrong..
>
> `doveadm backup -R -u username-goes-here imapc:`
>
> for this to work, you need to configure following things:
>
> imapc_host = old-host-name
> imapc_password = master-password
> imapc_master_user = master-user-name
>
> and on the old host you need
>
> passdb {
>args = /etc/dovecot/passwd.masterusers
>driver = passwd-file
>master = yes
>pass = yes
> }
>
> This should let you pull the mails from the old host to your new host over
> IMAP.
>
> You should probably also look at
>
> https://wiki.dovecot.org/Migration/Dsync
>
> Aki
>
> > On 28/07/2020 03:02 Antonio Leding  wrote:
> >
> >
> > Hey Kishore…
> >
> > I believe this is the thread I mentioned earlier. It is quite long and
> spans a monthly barrier (Feb\Mar 2012) so if you use the “Next\Previous
> message” links, you need to be sure to pick up the thread in each monthly
> archive. I have provided links to the first post of the thread in each
> archive here:
> >
> > https://dovecot.org/list/dovecot/2012-February/133718.html
> > https://dovecot.org/list/dovecot/2012-March/134110.html
> >
> > Also, mention of a working syntax for the remote side command can be
> found in this post:
> >
> > https://dovecot.org/list/dovecot/2012-February/081425.html
> >
> > I’m sure one of the Dovecot devs will chime in at some point but in the
> meantime, hopefully the above will offer some relief…
> >
> >
> >
> >
> > > On Jul 27, 2020, at 4:38 PM, Antonio Leding  wrote:
> > >
> > >
> > > I seem to recall a post a while back where, due to the age of the
> remote end, the remote side command had to be entered in the command
> executed on the local side.
> > >
> > > Do you have dsync on the 2.0.9 machine?
> > >
> > >
> > >
> > >
> > >
> > > > On Jul 27, 2020, at 4:16 PM, Kishore Potnuru <
> kishore.reac...@gmail.com> wrote:
> > > >
> > > >
> > > > This is what my understanding. May be I am also wrong here.
> > > >
> > > > Backup option is there in my new server, production2.
> > > >
> > > > When I use the command with -R option from new server, it is
> connecting to old server, Production1 and giving the output of the doveadm
> backup command in old server to get the data. If you see the command and
> error I posted, it shows the same.
> > > >
> > > > Sorry just incase if I am wrong.
> > > >
> > > > Kishore
> > > >
> > > >
> > > > On Mon, 27 Jul, 2020, 11:32 pm Antonio Leding, 
> wrote:
> > > > > Well that option set still doesn’t look correct…
> > > > >
> > > > > Here is the doveadm option set from my 2.2.2 server which is
> several weeks\months before 2.2.36…
> > > > >
> > > > >
> > > > >
> > > > > [Jul-27 @ 15:25:09 ] > dovecot --version
> > > > > 2.2.2
> > &g

Re: Migration from one server to 2 new servers

2020-07-28 Thread Kishore Potnuru
Hi,

I have tried the same way as per your suggestion. But it's throwing the
below error.

-
[root@production2 log]# doveadm backup -a All -R -u kish...@test.ba.com
imapc:
dsync(kish...@test.ba.com): Info: imapc(production1.baplc.com:143):
Connected to 161.2.11.119:143 (local 161.2.12.152:45992)
dsync(kish...@test.ba.com): Warning: imapc(production1.baplc.com:143):
connect(161.2.11.119, 143) timed out after 30 seconds - reconnecting (delay
0 ms)
dsync(kish...@test.ba.com): Info: imapc(production1.baplc.com:143):
Connected to 161.2.11.119:143 (local 161.2.12.152:46014)
dsync(kish...@test.ba.com): Error: imapc(production1.baplc.com:143):
connect(161.2.11.119, 143) timed out after 30 seconds - disconnecting
dsync(kish...@test.ba.com): Error: User initialization failed: imapc: Login
to production1.baplc.com failed: Disconnected from server
[root@production2 log]#
--

I looked into the production1 (old server) logs. I see the below error.

===
Jul 28 11:14:23 auth: Fatal: Master passdb can't have pass=yes if there are
no passdbs
Jul 28 11:14:23 master: Error: service(auth): command startup failed,
throttling
===

After the above error, I have commented "pass=yes" in production1 (old
server) server, then I see the below error.


Jul 28 11:17:10 auth: Fatal: No passdbs specified in configuration file.
PLAIN mechanism needs one
Jul 28 11:17:10 master: Error: service(auth): command startup failed,
throttling
===

Please suggest me on fixing the issue. I have also copied the dovecot.conf
from both the servers below.

=
My old server dovecot.conf (production1):
=

disable_plaintext_auth = no

listen = *
log_path = /var/log/dovecot.log
mail_location = maildir:/z1dev/mail/virtual/%d/%n/Maildir/
passdb {
args = /etc/dovecot/passwd
driver = passwd-file
master = yes
pass = yes
}
pop3_uidl_format = %g
protocols = pop3 imap
ssl = yes
ssl_cert = 
wrote:

> Hi!
>
> Kishore, you got the command wrong..
>
> `doveadm backup -R -u username-goes-here imapc:`
>
> for this to work, you need to configure following things:
>
> imapc_host = old-host-name
> imapc_password = master-password
> imapc_master_user = master-user-name
>
> and on the old host you need
>
> passdb {
>args = /etc/dovecot/passwd.masterusers
>driver = passwd-file
>master = yes
>pass = yes
> }
>
> This should let you pull the mails from the old host to your new host over
> IMAP.
>
> You should probably also look at
>
> https://wiki.dovecot.org/Migration/Dsync
>
> Aki
>
> > On 28/07/2020 03:02 Antonio Leding  wrote:
> >
> >
> > Hey Kishore…
> >
> > I believe this is the thread I mentioned earlier. It is quite long and
> spans a monthly barrier (Feb\Mar 2012) so if you use the “Next\Previous
> message” links, you need to be sure to pick up the thread in each monthly
> archive. I have provided links to the first post of the thread in each
> archive here:
> >
> > https://dovecot.org/list/dovecot/2012-February/133718.html
> > https://dovecot.org/list/dovecot/2012-March/134110.html
> >
> > Also, mention of a working syntax for the remote side command can be
> found in this post:
> >
> > https://dovecot.org/list/dovecot/2012-February/081425.html
> >
> > I’m sure one of the Dovecot devs will chime in at some point but in the
> meantime, hopefully the above will offer some relief…
> >
> >
> >
> >
> > > On Jul 27, 2020, at 4:38 PM, Antonio Leding  wrote:
> > >
> > >
> > > I seem to recall a post a while back where, due to the age of the
> remote end, the remote side command had to be entered in the command
> executed on the local side.
> > >
> > > Do you have dsync on the 2.0.9 machine?
> > >
> > >
> > >
> > >
> > >
> > > > On Jul 27, 2020, at 4:16 PM, Kishore Potnuru <
> kishore.reac...@gmail.com> wrote:
> > > >
> > > >
> > > > This is what my understanding. May be I am also wrong here.
> > > >
> > > > Backup option is there in my new server, production2.
> > > >
> > > > When I use the command with -R option from new server, it is
> connecting to old server, Production1 and giving the output of the doveadm
> backup command in old server to get the data. If you see the command and
> error I posted, it shows the same.
> > > >
> > > > Sorry just incase if I am wrong.
> > > >
> > > > Kishore
> > > >
> > > >
> > > > On Mon, 27 Jul, 2020, 11:32 pm

Re: Migration from one server to 2 new servers

2020-07-27 Thread Kishore Potnuru
This is what my understanding. May be I am also wrong here.

Backup option is there in my new server, production2.

When I use the command with -R option from new server, it is connecting to
old server, Production1 and giving the output of the doveadm backup command
in old server to get the data. If you see the command and error I posted,
it shows the same.

Sorry just incase if I am wrong.

Kishore

On Mon, 27 Jul, 2020, 11:32 pm Antonio Leding,  wrote:

> Well that option set still doesn’t look correct…
>
> Here is the doveadm option set from my 2.2.2 server which is several
> weeks\months before 2.2.36…
>
>
>
> [Jul-27 @ 15:25:09 ] > dovecot --version
> 2.2.2
>
> [Jul-27 @ 15:26:53 ] > ls -l /usr/local/bin/doveadm
> -rwxr-xr-x 1 root root 1379203 May 22  2013 /usr/local/bin/doveadm
>
> [Jul-27 @ 15:25:12 ] > doveadm
> usage: doveadm [-Dv] [-f ]  []
>
>   altmove  [-u |-A] [-S ] [-r] 
>   auth cache|test
>   backup   [-u |-A] [-S ] [-dfR] [-l ] [-m
> ] [-n ] [-s ] 
>   batch[-u |-A] [-S ]   [
>  [..]]
>   config   [doveconf parameters]
>   copy [-u |-A] [-S ]  [user
> ] 
>   director add|dump|flush|map|move|remove|ring|ring|ring|status
>   dump [-t ] 
>   exec  [binary parameters]
>   expunge  [-u |-A] [-S ] [-d] 
>   fetch[-u |-A] [-S ]  
>   force-resync [-u |-A] [-S ] 
>   fs   copy|delete|get|iter|iter-dirs|put|stat
>   help 
>   import   [-u |-A] [-S ] [-s]  location>  
>   index[-u |-A] [-S ] [-q] [-n ]
> 
>   instance list|remove
>   kick [-a ] [-f] [|]
>   log  errors|find|reopen|test
>   mailbox  create|delete|list|mutf7|rename|status|subscribe|unsubscribe
>   mountadd|list|remove
>   move [-u |-A] [-S ]  [user
> ] 
>   penalty  [-a ] []
>   proxykick|list
>   purge[-u |-A] [-S ]
>   pw   [-l] [-p plaintext] [-r rounds] [-s scheme] [-t hash] [-u
> user] [-V]
>   reload
>   replicator   remove|replicate|status
>   search   [-u |-A] [-S ] 
>   sis  deduplicate|find
>   statsdump|top
>   stop
>   sync [-u |-A] [-S ] [-dfR] [-l ] [-m
> ] [-n ] [-s ] 
>   user [-a ] [-x ] [-f field] [-u]
>  [...]
>   who  [-a ] [-1] [] []
>   zlibconnect   []
>
>
> On Jul 27, 2020, at 3:28 PM, Kishore Potnuru 
> wrote:
>
> Oh, I am extremely sorry. I was confused when typing the issue. Please
> help me in fixing the issue. Production1 is my old server. Production2 is
> my new server. Typing here correctly. Ignore all previous one's.
>
> The new version is:
> 
> [root@production2 ~]# dovecot --version
> 2.2.36 (1f10bfa63)
>
>
> The old version is :
> ==
> [root@production1 ~]# dovecot --version
> 2.0.9
>
>
> I have executed the command from the new server:
>
>
>
> =
> [root@production2 test.org.com]# doveadm backup -R -u kish...@test.org.com
>  remote:vm...@production1.baplc.com
> vm...@production1.baplc.com's password:
> usage: doveadm [-Dv] [-f ]  []
>
>   altmove  [-u |-A] [-S ] 
>   auth [-a ] [-x ]  []
>   config   [doveconf parameters]
>   director add|flush|map|remove|status
>   dump [-t ] 
>   expunge  [-u |-A] [-S ] 
>   fetch[-u |-A] [-S ]  
>   force-resync [-u |-A] [-S ] 
>   help 
>   import   [-u |-A] [-S ] 
>  
>   kick [-a ] [-f] [|]
>   log  find|reopen|test
>   mailbox  create|delete|list|mutf7|rename|status|subscribe|unsubscribe
>   penalty  [-a ] []
>   purge[-u |-A] [-S ]
>   pw   [-l] [-p plaintext] [-r rounds] [-s scheme] [-u user] [-V]
>   reload
>   search   [-u |-A] [-S ] 
>   sis  deduplicate|find
>   stop
>   user [-a ] [-x ]  [...]
>   who  [-a ] [-1] [] []
> dsync-local(kish...@test.org.com): Error: read(vm...@production1.baplc.com)
> failed: EOF (version not received)
> dsync-local(kish...@test.org.com): Error: Remote command returned error
> 1: ssh -lvmail production1.baplc.com doveadm dsync-server -
> ukish...@test.org.com
>
> [root@production2 test.org.com]#
>
> =
>
>
>
> On Mon, 27 Jul, 2020, 11:18 pm Antonio Leding,  wrote:
>
>> Fair enough but the command snippet I posted was taken directly from your
>> earlier post dated *Mon Jul 27 23:11:06 EEST 2020* and it does say
>> “production1”…I just double-checked as well...
>>
>> FWIW…the server order in the command you just pasted is the exact reverse
>> from the Jul 27th post I m

Re: Migration from one server to 2 new servers

2020-07-27 Thread Kishore Potnuru
Oh, I am extremely sorry. I was confused when typing the issue. Please help
me in fixing the issue. Production1 is my old server. Production2 is my new
server. Typing here correctly. Ignore all previous one's.

The new version is:

[root@production2 ~]# dovecot --version
2.2.36 (1f10bfa63)


The old version is :
==
[root@production1 ~]# dovecot --version
2.0.9


I have executed the command from the new server:



=
[root@production2 test.org.com]# doveadm backup -R -u kish...@test.org.com
remote:vm...@production1.baplc.com
vm...@production1.baplc.com's password:
usage: doveadm [-Dv] [-f ]  []

  altmove  [-u |-A] [-S ] 
  auth [-a ] [-x ]  []
  config   [doveconf parameters]
  director add|flush|map|remove|status
  dump [-t ] 
  expunge  [-u |-A] [-S ] 
  fetch[-u |-A] [-S ]  
  force-resync [-u |-A] [-S ] 
  help 
  import   [-u |-A] [-S ] 
 
  kick [-a ] [-f] [|]
  log  find|reopen|test
  mailbox  create|delete|list|mutf7|rename|status|subscribe|unsubscribe
  penalty  [-a ] []
  purge[-u |-A] [-S ]
  pw   [-l] [-p plaintext] [-r rounds] [-s scheme] [-u user] [-V]
  reload
  search   [-u |-A] [-S ] 
  sis  deduplicate|find
  stop
  user [-a ] [-x ]  [...]
  who  [-a ] [-1] [] []
dsync-local(kish...@test.org.com): Error: read(vm...@production1.baplc.com)
failed: EOF (version not received)
dsync-local(kish...@test.org.com): Error: Remote command returned error 1:
ssh -lvmail production1.baplc.com doveadm dsync-server -
ukish...@test.org.com

[root@production2 test.org.com]#

=



On Mon, 27 Jul, 2020, 11:18 pm Antonio Leding,  wrote:

> Fair enough but the command snippet I posted was taken directly from your
> earlier post dated *Mon Jul 27 23:11:06 EEST 2020* and it does say
> “production1”…I just double-checked as well...
>
> FWIW…the server order in the command you just pasted is the exact reverse
> from the Jul 27th post I mentioned above…
>
> Here you appear to be exec’ing the command on prod2 and trying to pull
> from the remote of prod 1…your earlier post was exec’ing on prod1 and
> pulling from the remote of prod2…
>
>
>
>
>
>
> On Jul 27, 2020, at 3:10 PM, Kishore Potnuru 
> wrote:
>
> I am executing the command from the new server. I was executing the
> command from production2 server only. It has the backup option, but whereas
> production1 doesn't have it. Though I am executing from production2, I am
> seeing the below error. Is it becasue production1 server doesn't have that
> option? Please let me know, if it is confusing.
>
>
> The new version is:
> 
> [root@production2 ~]# dovecot --version
> 2.2.36 (1f10bfa63)
>
>
> The old version is :
> ==
> [root@production1 ~]# dovecot --version
> 2.0.9
>
>
> I have executed the command from the new server:
>
>
>
> =
> [root@production2 test.org.com]# doveadm backup -R -u kish...@test.org.com
> remote:vm...@production1.baplc.com
> vm...@production1.baplc.com's password:
> usage: doveadm [-Dv] [-f ]  []
>
>   altmove  [-u |-A] [-S ] 
>   auth [-a ] [-x ]  []
>   config   [doveconf parameters]
>   director add|flush|map|remove|status
>   dump [-t ] 
>   expunge  [-u |-A] [-S ] 
>   fetch[-u |-A] [-S ]  
>   force-resync [-u |-A] [-S ] 
>   help 
>   import   [-u |-A] [-S ] 
>  
>   kick [-a ] [-f] [|]
>   log  find|reopen|test
>   mailbox  create|delete|list|mutf7|rename|status|subscribe|unsubscribe
>   penalty  [-a ] []
>   purge[-u |-A] [-S ]
>   pw   [-l] [-p plaintext] [-r rounds] [-s scheme] [-u user] [-V]
>   reload
>   search   [-u |-A] [-S ] 
>   sis  deduplicate|find
>   stop
>   user [-a ] [-x ]  [...]
>   who  [-a ] [-1] [] []
> dsync-local(kish...@test.org.com): Error: read(vm...@production1.baplc.com)
> failed: EOF (version not received)
> dsync-local(kish...@test.org.com): Error: Remote command returned error
> 1: ssh -lvmail production1.baplc.com doveadm dsync-server -
> ukish...@test.org.com
>
> [root@production2 test.org.com]#
>
> =
>
> On Mon, Jul 27, 2020 at 10:55 PM Antonio Leding  wrote:
>
>> Not sure if this matters but the prompt when attempting the “doveadm
>> backup” command shows it to be a “production" server…
>>
>> [root at production1 <https://dovecot.org/mailman/listinfo/dovecot> 
>> test.org.com]# doveadm backup -R -u kishore at test.org.com 
>> <https://dovecot.org/mailman/listinf

Re: Migration from one server to 2 new servers

2020-07-27 Thread Kishore Potnuru
I am executing the command from the new server. I was executing the command
from production2 server only. It has the backup option, but whereas
production1 doesn't have it. Though I am executing from production2, I am
seeing the below error. Is it becasue production1 server doesn't have that
option? Please let me know, if it is confusing.


The old version is:

[root@production2 ~]# dovecot --version
2.2.36 (1f10bfa63)


The New version is :
==
[root@production1 ~]# dovecot --version
2.0.9


I have executed the command from the new server:



=
[root@production2 test.org.com]# doveadm backup -R -u kish...@test.org.com
remote:vm...@production1.baplc.com
vm...@production1.baplc.com's password:
usage: doveadm [-Dv] [-f ]  []

  altmove  [-u |-A] [-S ] 
  auth [-a ] [-x ]  []
  config   [doveconf parameters]
  director add|flush|map|remove|status
  dump [-t ] 
  expunge  [-u |-A] [-S ] 
  fetch[-u |-A] [-S ]  
  force-resync [-u |-A] [-S ] 
  help 
  import   [-u |-A] [-S ] 
 
  kick [-a ] [-f] [|]
  log  find|reopen|test
  mailbox  create|delete|list|mutf7|rename|status|subscribe|unsubscribe
  penalty  [-a ] []
  purge[-u |-A] [-S ]
  pw   [-l] [-p plaintext] [-r rounds] [-s scheme] [-u user] [-V]
  reload
  search   [-u |-A] [-S ] 
  sis  deduplicate|find
  stop
  user [-a ] [-x ]  [...]
  who  [-a ] [-1] [] []
dsync-local(kish...@test.org.com): Error: read(vm...@production1.baplc.com)
failed: EOF (version not received)
dsync-local(kish...@test.org.com): Error: Remote command returned error 1:
ssh -lvmail production1.baplc.com doveadm dsync-server -
ukish...@test.org.com

[root@production2 test.org.com]#

=

On Mon, Jul 27, 2020 at 10:55 PM Antonio Leding  wrote:

> Not sure if this matters but the prompt when attempting the “doveadm
> backup” command shows it to be a “production" server…
>
> [root at production1 <https://dovecot.org/mailman/listinfo/dovecot> 
> test.org.com]# doveadm backup -R -u kishore at test.org.com 
> <https://dovecot.org/mailman/listinfo/dovecot>
> remote:vmail at production2.baplc.com 
> <https://dovecot.org/mailman/listinfo/dovecot>
>
>
> ...that would seem to me to indicate the old box.  If so, then per
> Kishore’s earlier posts, the machine where this is being attempted is
> running 2.0.9…not 2.2.36
>
> Maybe nothing but thought I would mention it…
>
>
>
>
> On Jul 27, 2020, at 2:50 PM, Sami Ketola  wrote:
>
>
>
> On 28. Jul 2020, at 0.10, Kishore Potnuru 
> wrote:
>
> Yes. Please find the details of the servers below. I am executing the
> command from one of the new servers.
>
>
> I find it very hard to believe this. Shall I look at the version control
> when backup was added as option to doveadm?
>
> 2.2.36 has it:
>
> [root@ketola ~]# dovecot --version
> 2.2.36.8 (0c9d56b41)
> [root@ketola ~]# doveadm backup
> doveadm backup [-u |-A] [-S ]  [-fPRU] [-l ] [-r
> ] [-m ] [-g ] [-n  | -N] [-x
> ] [-s ] [-t ] -d|
>
>
> Sami
>
>
>
>


Re: Migration from one server to 2 new servers

2020-07-27 Thread Kishore Potnuru
Yes. Please find the details of the servers below. I am executing the
command from one of the new servers.


My Current Production Server details:

Linux OS-  Red Hat Enterprise Linux Server release 6.5 (Santiago)
Dovecot version -  2.0.9
Postfix version -  2.6.6


New Servers:
==
Linux OS-  Red Hat Enterprise Linux Server release 7.7 (Maipo)
Dovecot version -  2.2.36 (1f10bfa63)
Postfix version -  2.10.1
==

Thanks & Regards,
Kishore

On Mon, 27 Jul, 2020, 9:43 pm Sami Ketola,  wrote:

>
>
> > On 27. Jul 2020, at 23.11, Kishore Potnuru 
> wrote:
> >
> > Hi ,
> >
> > I have tried the below command from the new server. But I am getting an
> error. Anything is missing here?
> >
>
> Are you sure that is dovecot 2.2.36?
>
> Sami
>
>
>


Re: Migration from one server to 2 new servers

2020-07-27 Thread Kishore Potnuru
Hi ,

I have tried the below command from the new server. But I am getting an
error. Anything is missing here?


[root@production1 test.org.com]# doveadm backup -R -u kish...@test.org.com
remote:vm...@production2.baplc.com
vm...@production1.baplc.com's password:
usage: doveadm [-Dv] [-f ]  []

  altmove  [-u |-A] [-S ] 
  auth [-a ] [-x ]  []
  config   [doveconf parameters]
  director add|flush|map|remove|status
  dump [-t ] 
  expunge  [-u |-A] [-S ] 
  fetch[-u |-A] [-S ]  
  force-resync [-u |-A] [-S ] 
  help 
  import   [-u |-A] [-S ] 
 
  kick [-a ] [-f] [|]
  log  find|reopen|test
  mailbox  create|delete|list|mutf7|rename|status|subscribe|unsubscribe
  penalty  [-a ] []
  purge[-u |-A] [-S ]
  pw   [-l] [-p plaintext] [-r rounds] [-s scheme] [-u user] [-V]
  reload
  search   [-u |-A] [-S ] 
  sis  deduplicate|find
  stop
  user [-a ] [-x ]  [...]
  who  [-a ] [-1] [] []
dsync-local(kish...@test.org.com): Error: read(vm...@production1.baplc.com)
failed: EOF (version not received)
dsync-local(kish...@test.org.com): Error: Remote command returned error 1:
ssh -lvmail production1.baplc.com doveadm dsync-server -
ukish...@test.org.com
[root@production1 test.org.com]#



On Mon, Jul 27, 2020 at 3:08 PM Aki Tuomi 
wrote:

> No, but there is backup option on the new server. That's why the -R, which
> means "backup to here".
>
> Aki
>
> > On 27/07/2020 16:20 Kishore Potnuru  wrote:
> >
> >
> > Hi,
> >
> > But there is no "doveadm backup" option in dovecot 2.0.9 version.
> >
> > [root@production ~]# doveadm -backup
> > doveadm: invalid option -- 'b'
> > [root@production ~]# dovecot --version
> > 2.0.9
> >
> > Copy the contents by using "scp", will that work?
> >
> > Thanks,
> > Kishore Potnuru
> >
> >
> > On Mon, Jul 27, 2020 at 10:00 AM Aki Tuomi 
> wrote:
> > >
> > >  > On 27/07/2020 11:59 Kishore Potnuru 
> wrote:
> > >  >
> > >  >
> > >  > Hi
> > >  >
> > >  > I am in the process/planning of moving from my existing dovecot
> imap/pop3 server to 2 new servers (for HA/Resilience). I will be
> implementing dovecot replication on new servers. Please find my current and
> new servers versions.
> > >  >
> > >  > My Current Production Server details:
> > >  > 
> > >  > Linux OS - Red Hat Enterprise Linux Server release 6.5 (Santiago)
> > >  > Dovecot version - 2.0.9
> > >  > Postfix version - 2.6.6
> > >  > 
> > >  >
> > >  > New Servers:
> > >  > ==
> > >  > Linux OS - Red Hat Enterprise Linux Server release 7.7 (Maipo)
> > >  > Dovecot version - 2.2.36 (1f10bfa63)
> > >  > Postfix version - 2.10.1
> > >  > ==
> > >  >
> > >  > What is the best way to stop/copy/migrate the current production
> data to the new servers? I am planning the following steps. Not sure if it
> is correct or not.
> > >  >
> > >  > 1. Stop the Postfix services on the old server and wait for few
> mins. So that no new emails will be coming to the old servers. Existing
> emails will be delivered to the receipients.
> > >  >
> > >  > 2. copy/migrate the data from old server to new servers. Please
> suggest what is the best way?
> > >  >
> > >  > 3. I see that dovecot version(2.0.9) in old production server, I do
> not know the which is the best option? see the options in the current
> version.
> > >  >
> > >  > =
> > >  > [root@prodcution ~]# doveadm
> > >  > usage: doveadm [-Dv] [-f ]  []
> > >  >
> > >  > altmove [-u |-A] [-S ] 
> > >  > auth [-a ] [-x ]  []
> > >  > config [doveconf parameters]
> > >  > director add|flush|map|remove|status
> > >  > dump [-t ] 
> > >  > expunge [-u |-A] [-S ] 
> > >  > fetch [-u |-A] [-S ]  
> > >  > force-resync [-u |-A] [-S ] 
> > >  > help 
> > >  > import [-u |-A] [-S ] 
>  
> > >  > kick [-a ] [-f] [|]
> > >  > log find|reopen|test
> > >  > mailbox create|delete|list|mutf7|rename|status|subscribe|unsubscribe
> > >  > penalty [-a ] []
> > >  > purge [-u |-A] [-S ]
> > >  > pw [-l] [-p plaintext] [-r rounds] [-s scheme] [-u user] [-V]
> > >  > reload
> > >  > search [-u |-A] [-S ] 
> > >  > sis deduplicate|find
> > >  > stop
> > >  > user [-a ] [-x ]  [...]
> > >  >
> > >  > =
> > >  >
> > >  > Please suggest me.
> > >  >
> > >  > Thanks,
> > >  > Kishore Potnuru
> > >
> > >  `doveadm backup -R -u someone imapc:` comes to mind, with master
> password/master user authentication.
> > >
> > >  Aki
> > >
>


Re: Migration from one server to 2 new servers

2020-07-27 Thread Kishore Potnuru
I tried this command also. It didn't work. It shows syntax again. Please
see the supported commands in dovecot 2.0.9 version. This doesn't support
replication also as per syntax, if i am not wrong. Please suggest me.

[root@production ~]# doveadm backup -u kish...@test.org.com
remote:vm...@production2.test.org.com
usage: doveadm [-Dv] [-f ]  []

  altmove  [-u |-A] [-S ] 
  auth [-a ] [-x ]  []
  config   [doveconf parameters]
  director add|flush|map|remove|status
  dump [-t ] 
  expunge  [-u |-A] [-S ] 
  fetch[-u |-A] [-S ]  
  force-resync [-u |-A] [-S ] 
  help 
  import   [-u |-A] [-S ] 
 
  kick [-a ] [-f] [|]
  log  find|reopen|test
  mailbox  create|delete|list|mutf7|rename|status|subscribe|unsubscribe
  penalty  [-a ] []
  purge[-u |-A] [-S ]
  pw   [-l] [-p plaintext] [-r rounds] [-s scheme] [-u user] [-V]
  reload
  search   [-u |-A] [-S ] 
  sis  deduplicate|find
  stop
  user [-a ] [-x ]  [...]
  who  [-a ] [-1] [] []


On Mon, Jul 27, 2020 at 2:22 PM Admin dishaw.org  wrote:

>
>
> > On Jul 27, 2020, at 4:59 AM, Kishore Potnuru 
> wrote:
> >
> > Hi
> >
> > I am in the process/planning of moving from my existing dovecot
> imap/pop3 server to 2 new servers (for HA/Resilience). I will be
> implementing dovecot replication on new servers.  Please find my current
> and new servers versions.
> >
>
> I recently did a similar move
>
> >
> > What is the best way to stop/copy/migrate the current production data to
> the new servers? I am planning the following steps. Not sure if it is
> correct or not.
> >
>
> Step 0.
>
> Setup replication and have mail replicate from the old servers to the new
> servers.
>
> > 1. Stop the Postfix services on the old server and wait for few mins. So
> that no new emails will be coming to the old servers. Existing emails will
> be delivered to the receipients.
> >
>
> I stopped Postfix on the old servers and did not start Postfix on the new
> servers.  I waited until I saw that no mail was replicating from the old
> Dovecot to the new servers.
>
> > 2. copy/migrate the data from old server to new servers. Please suggest
> what is the best way?
>
> Using the replication mechanism was the best method for me.
>
>
>


Re: Migration from one server to 2 new servers

2020-07-27 Thread Kishore Potnuru
Hi,

But there is no "doveadm backup" option in dovecot 2.0.9 version.

[root@production ~]# doveadm -backup
doveadm: invalid option -- 'b'
[root@production ~]# dovecot --version
2.0.9

Copy the contents by using "scp", will that work?

Thanks,
Kishore Potnuru

On Mon, Jul 27, 2020 at 10:00 AM Aki Tuomi 
wrote:

>
> > On 27/07/2020 11:59 Kishore Potnuru  wrote:
> >
> >
> > Hi
> >
> > I am in the process/planning of moving from my existing dovecot
> imap/pop3 server to 2 new servers (for HA/Resilience). I will be
> implementing dovecot replication on new servers. Please find my current and
> new servers versions.
> >
> > My Current Production Server details:
> > 
> > Linux OS - Red Hat Enterprise Linux Server release 6.5 (Santiago)
> > Dovecot version - 2.0.9
> > Postfix version - 2.6.6
> > 
> >
> > New Servers:
> > ==
> > Linux OS - Red Hat Enterprise Linux Server release 7.7 (Maipo)
> > Dovecot version - 2.2.36 (1f10bfa63)
> > Postfix version - 2.10.1
> > ==
> >
> > What is the best way to stop/copy/migrate the current production data to
> the new servers? I am planning the following steps. Not sure if it is
> correct or not.
> >
> > 1. Stop the Postfix services on the old server and wait for few mins. So
> that no new emails will be coming to the old servers. Existing emails will
> be delivered to the receipients.
> >
> > 2. copy/migrate the data from old server to new servers. Please suggest
> what is the best way?
> >
> > 3. I see that dovecot version(2.0.9) in old production server, I do not
> know the which is the best option? see the options in the current version.
> >
> > =
> > [root@prodcution ~]# doveadm
> > usage: doveadm [-Dv] [-f ]  []
> >
> >  altmove [-u |-A] [-S ] 
> >  auth [-a ] [-x ]  []
> >  config [doveconf parameters]
> >  director add|flush|map|remove|status
> >  dump [-t ] 
> >  expunge [-u |-A] [-S ] 
> >  fetch [-u |-A] [-S ]  
> >  force-resync [-u |-A] [-S ] 
> >  help 
> >  import [-u |-A] [-S ]   parent mailbox> 
> >  kick [-a ] [-f] [|]
> >  log find|reopen|test
> >  mailbox create|delete|list|mutf7|rename|status|subscribe|unsubscribe
> >  penalty [-a ] []
> >  purge [-u |-A] [-S ]
> >  pw [-l] [-p plaintext] [-r rounds] [-s scheme] [-u user] [-V]
> >  reload
> >  search [-u |-A] [-S ] 
> >  sis deduplicate|find
> >  stop
> >  user [-a ] [-x ]  [...]
> >
> > =
> >
> > Please suggest me.
> >
> > Thanks,
> > Kishore Potnuru
>
> `doveadm backup -R -u someone imapc:` comes to mind, with master
> password/master user authentication.
>
> Aki
>


Migration from one server to 2 new servers

2020-07-27 Thread Kishore Potnuru
Hi

I am in the process/planning of moving from my existing dovecot imap/pop3
server to 2 new servers (for HA/Resilience). I will be implementing dovecot
replication on new servers.  Please find my current and new servers
versions.

My Current Production Server details:

Linux OS-  Red Hat Enterprise Linux Server release 6.5 (Santiago)
Dovecot version -  2.0.9
Postfix version -  2.6.6


New Servers:
==
Linux OS-  Red Hat Enterprise Linux Server release 7.7 (Maipo)
Dovecot version -  2.2.36 (1f10bfa63)
Postfix version -  2.10.1
==

What is the best way to stop/copy/migrate the current production data to
the new servers? I am planning the following steps. Not sure if it is
correct or not.

1. Stop the Postfix services on the old server and wait for few mins. So
that no new emails will be coming to the old servers. Existing emails will
be delivered to the receipients.

2. copy/migrate the data from old server to new servers. Please suggest
what is the best way?

3. I see that dovecot version(2.0.9) in old production server, I do not
know the which is the best option? see the options in the current version.

=
[root@prodcution ~]# doveadm
usage: doveadm [-Dv] [-f ]  []

  altmove  [-u |-A] [-S ] 
  auth [-a ] [-x ]  []
  config   [doveconf parameters]
  director add|flush|map|remove|status
  dump [-t ] 
  expunge  [-u |-A] [-S ] 
  fetch[-u |-A] [-S ]  
  force-resync [-u |-A] [-S ] 
  help 
  import   [-u |-A] [-S ] 
 
  kick [-a ] [-f] [|]
  log  find|reopen|test
  mailbox  create|delete|list|mutf7|rename|status|subscribe|unsubscribe
  penalty  [-a ] []
  purge[-u |-A] [-S ]
  pw   [-l] [-p plaintext] [-r rounds] [-s scheme] [-u user] [-V]
  reload
  search   [-u |-A] [-S ] 
  sis  deduplicate|find
  stop
  user [-a ] [-x ]  [...]

=

Please suggest me.

Thanks,
Kishore Potnuru


Re: Stuck here - help please

2020-07-17 Thread Kishore Potnuru
Hi Gerald,

Thank you for the details. As per your suggestion, I have made the changes
to dovecot.conf file. Still I don't see any replication is happening.
Please see the dovecot.conf file.

I do not see "/etc/dovecot/conf.d/12-replication.conf" in my servers. So I
had put everything  in the dovecot.conf file only. Please see the complete
data in it below. The below data is in server A. In other server (server B)
Also I have the same configuration, except mail_replica line and it is
pointing to the other server like, " mail_replica =
remote:vm...@bal3200dev001.testorg.com ".

I have generated/configured the ssh keys also for vmail user in both
servers. Now When i manually ssh to the server, it is not asking for a
password.

=
=
disable_plaintext_auth = no

listen = *
log_path = /var/log/dovecot.log
#mail_location = maildir:/z1nfs/mail/virtual/%d/%n/Maildir/
mail_location = maildir:/z1devenv/mail/virtual/%d/%n/Maildir/
passdb {
args = /etc/dovecot/passwd
driver = passwd-file
}

pop3_uidl_format = %g
protocols = pop3 imap

#ssl = yes
#ssl_cert = 
wrote:

>
> I have done the sync manually with "doveadm sync" command. But, I have not
> configured the replication yet.
>
>
> If you don't tell dovecot where to replicate, nothing gets replicated.
>
> I am looking at the below webpage for the replication.
>
> https://wiki.dovecot.org/Replication
>
> I am using the dovecot version  "2.2.36". I am confused with what needs to
> be done after reading that page.
>
> 1. They are talking about v2.3.1 and v2.2+. Which one do I need to follow?
> Could you please give me more details on this? Providing some sample
> settings will be more helpful for me, please.
>
>
> I don't understand your confusion. You are using 2.2.36, which is v2.2+
> (meaning a version greater than 2.2).
> The documentation states you need at least 2.3.1 if you want to use the
> noreplicate feature.
> So you can't use that with 2.2.36, but as your goal is to replicate
> everything you don't need "noreplicate".
> Besides that I can't see any difference in configuring replication for
> 2.2/2.3.
>
> If you want to replicate emails with ssh you just have to follow the first
> section, the sample settings are
> right on that page. It's basically copying everything from "mail_plugins =
> $mail_plugins notify replication"
> to "replication_max_conns = 10" into a config file like
> /etc/dovecot/conf.d/12-replication.conf
>
> You only have to change the following line to match your server/ssh setup:
> mail_replica = remote:vm...@anotherhost.example.com
>
> Then generate and configure ssh keys for user vmail (passwordless
> authentication) on both servers.
>
> 2. Also, do I need to set the replication on both of my servers the same
> and as it is?
>
>
> On server A) you should configure mail_replica = remote:vmail@server_B and
> on server B) you should configure mail_replica = remote:vmail@server_A
>
> If you skip B) and new mail arrives on B) it is not immediately synced to
> A)
> In that case you would have to wait until a mail gets synced from A)
> (you remember sync is bidirectional)
>
> Best regards
> Gerald
>


Re: Stuck here - help please

2020-07-16 Thread Kishore Potnuru
Thank you for the reply.

I have done the sync manually with "doveadm sync" command. But, I have not
configured the replication yet.

I am looking at the below webpage for the replication.

https://wiki.dovecot.org/Replication

I am using the dovecot version  "2.2.36". I am confused with what needs to
be done after reading that page.

1. They are talking about v2.3.1 and v2.2+. Which one do I need to follow?
Could you please give me more details on this? Providing some sample
settings will be more helpful for me, please.

2. Also, do I need to set the replication on both of my servers the same
and as it is?

Please help me in understanding this?

Thanks,
Kishore Potnuru

On Thu, Jul 16, 2020 at 6:20 PM Gerald Galster 
wrote:

> I have 2 test servers with the below configuration.
>
> ==
> Linux OS-  Red Hat Enterprise Linux Server release 7.7 (Maipo)
> Dovecot version -  2.2.36 (1f10bfa63)
> Postfix version -  2.10.1
> ==
>
> Trying to create High Availability.
>
> I have added both of the above servers behind a F5 load balancer. I have
> got a Load Balancer FQDN "intl-dev-imaptest.testorg.com". I have
> enabled/opened the ports (25/110/143/993/995) on the above  "
> intl-dev-imaptest.testorg.com".
>
> When I send 10 emails to  "intl-dev-imaptest.testorg.com", then those 10
> emails are getting distributed between the above 2 backend servers (5
> emails to each server). I see those 5 emails each in both the servers.
>
>
> You should see 10 emails on each server if replication is working: 5
> emails that were directly delivered via loadbalancer and 5 emails from the
> other server via replication.
>
> From Outlook I have configured the email address using "POP and IMAP",
> when I gave the IMAP server as  "intl-dev-imaptest.testorg.com" ,then it
> shows only 5 emails from server1 in outlook and after a few
> seconds/minutes, automatically it shows/refreshes the other 5 emails from
> server2. But I am not seeing all the 10 emails at the same time. why?
>
>
> The loadbalancer does its job, sometimes the Outlook connection is
> forwarded to server A sometimes to server B. So you just see the mails on
> the respective server. This is very bad. Your Mailclient is probably
> syncing and deleting emails everytime the connection is moved to the other
> server. As I suggested in the other thread you should at least configure
> some kind of ip stickyness when using a loadbalancer, so that your
> mailclient reaches the same backend.
>
> The purpose of replication is that two servers, operating independently,
> have the same dataset. Your servers seem to have completely distinct
> datasets, which indicates replication is not working. Did you configure
> replication?
>
>
> So I tried the sync command. When I execute sync command like below from
> server1, it reflects the same emails in other server2 also. Then I see the
> same number of emails in both the servers. Is it not possible to access the
> both servers emails at one time with the "sync" command? Do we need to run
> this on all the email boxes on both servers? don't we miss/lose any emails
> during this sync process multiple times?
>
> "doveadm sync -f -u kish...@test.testorg.com
> remote:vm...@bal3200dev002.testorg.com"
>
> Is "replication" and "sync" are same?
>
>
> Think of replication as a continous sync. This has to be done every time
> an email is delivered, which dovecot does automatically when replication is
> configured.
>
> You don't lose any emails because the replication/sync is bidirectional,
> it copies from the respective other server what's missing. Of course this
> is not instant but usually happens within seconds.
>
>
> Why are we not able to see all the emails at one time without the "sync"
> command?
>
>
> Probably because you did not configure replication?
>
>
> What is the best and easiest way to create High Availability with just 2
> servers, like emails should travel to both servers equally and if one
> server goes down also, another server should take care of the
> emails/functionality. This is my requirement.
>
>
> It seems you just have to configure replication.
>
> My current real time environment: I have around 10 email domains and each
> domain is having 10 imap emails. In total around 100 email boxes/addresses.
> We receive around 50K emails in a day to those email addresses. We are
> using the "Maildir" format in our environment. Want to move to the High
> Availability option with 2 servers.
>
>
> See my other mail, it may be better to use mdbox instead of maildir.
>
> Best regards
> Gerald
>


Stuck here - help please

2020-07-16 Thread Kishore Potnuru
Hi All,

I have 2 test servers with the below configuration.

==
Linux OS-  Red Hat Enterprise Linux Server release 7.7 (Maipo)
Dovecot version -  2.2.36 (1f10bfa63)
Postfix version -  2.10.1
==

Trying to create High Availability.

I have added both of the above servers behind a F5 load balancer. I have
got a Load Balancer FQDN "intl-dev-imaptest.testorg.com". I have
enabled/opened the ports (25/110/143/993/995) on the above  "
intl-dev-imaptest.testorg.com".

When I send 10 emails to  "intl-dev-imaptest.testorg.com", then those 10
emails are getting distributed between the above 2 backend servers (5
emails to each server). I see those 5 emails each in both the servers.

>From Outlook I have configured the email address using "POP and IMAP", when
I gave the IMAP server as  "intl-dev-imaptest.testorg.com" ,then it shows
only 5 emails from server1 in outlook and after a few seconds/minutes,
automatically it shows/refreshes the other 5 emails from server2. But I am
not seeing all the 10 emails at the same time. why?

So I tried the sync command. When I execute sync command like below from
server1, it reflects the same emails in other server2 also. Then I see the
same number of emails in both the servers. Is it not possible to access the
both servers emails at one time with the "sync" command? Do we need to run
this on all the email boxes on both servers? don't we miss/lose any emails
during this sync process multiple times?

"doveadm sync -f -u kish...@test.testorg.com
remote:vm...@bal3200dev002.testorg.com"

Is "replication" and "sync" are same?

Why are we not able to see all the emails at one time without the "sync"
command?

What is the best and easiest way to create High Availability with just 2
servers, like emails should travel to both servers equally and if one
server goes down also, another server should take care of the
emails/functionality. This is my requirement.

My current real time environment: I have around 10 email domains and each
domain is having 10 imap emails. In total around 100 email boxes/addresses.
We receive around 50K emails in a day to those email addresses. We are
using the "Maildir" format in our environment. Want to move to the High
Availability option with 2 servers.

Please help me to fix the issue.

Thanks & Regards,
Kishore Potnuru


Re: NFS vs Replication

2020-07-16 Thread Kishore Potnuru
Hi All,

I am also in a similar environment. I also stuck here.

I have 2 test servers with the below configuration.

==
Linux OS-  Red Hat Enterprise Linux Server release 7.7 (Maipo)
Dovecot version -  2.2.36 (1f10bfa63)
Postfix version -  2.10.1
==

Trying to create High Availability.

I have added both of the above servers behind a F5 load balancer. I have
got a Load Balancer FQDN "intl-dev-imaptest.testorg.com". I have
enabled/opened the ports (25/110/143/993/995) on the above  "
intl-dev-imaptest.testorg.com".

When I send 10 emails to  "intl-dev-imaptest.testorg.com", then those 10
emails are getting distributed between the above 2 backend servers (5
emails to each server). I see those 5 emails each in both the servers.

>From Outlook I have configured the email address using "POP and IMAP", when
I gave the IMAP server as  "intl-dev-imaptest.testorg.com" ,then it shows
only 5 emails from server1 in outlook and after a few seconds/minutes,
automatically it shows/refreshes the other 5 emails from server2. But I am
not seeing all the 10 emails at the same time. why?

So I tried the sync command. When I execute sync command like below from
server1, it reflects the same emails in other server2 also. Then I see the
same number of emails in both the servers. Is it not possible to access the
both servers emails at one time with the "sync" command? Do we need to run
this on all the email boxes on both servers? don't we miss/lose any emails
during this sync process multiple times?

"doveadm sync -f -u kish...@test.testorg.com
remote:vm...@bal3200dev002.testorg.com"

Is "replication" and "sync" are same?

Why are we not able to see all the emails at one time without the "sync"
command?

What is the best and easiest way to create High Availability with just 2
servers, like emails should travel to both servers equally and if one
server goes down also, another server should take care of the
emails/functionality. This is my requirement.

My current real time environment: I have around 10 email domains and each
domain is having 10 imap emails. In total around 100 email boxes/addresses.
We receive around 50K emails in a day to those email addresses. We are
using the "Maildir" format in our environment. Want to move to the High
Availability option with 2 servers.

Please help me to fix the issue.

Thanks & Regards,
Kishore Potnuru

On Thu, Jul 16, 2020 at 2:33 PM Gerald Galster 
wrote:

> With DNS this happens automatically because ips are rotated by resolvers
> and the mailclient gets the same ip for all its connections. Failover
> is builtin as mailclients just connect to the second ip when the first
> is not reachable.
>
>
> I don't trust DNS load balancing. I saw too many times a client stuck
> with the wrong (down) IP... This is my experience ;-)
>
>
> Interesting, I have deployed that dns-based approach where two dovecot
> servers
> are replicating between two distant datacenters. A few years ago one
> datacenter
> had a major outage and new connections quickly failed over to the remaining
> server. Maybe this is client specific and/or has improved over time.
>
> If the loadbalancer/director approach works for you, that's ok.
>
> Replication works reliable with mdbox/sdbox but you should avoid maildir.
>
>
> I'm using and I like Maildir. There are some documentation about to
> don't use it with replication? Which are the drawbacks?
>
>
> Maildir is probably the most robust mail storage format, but it is very
> demanding on your disks because flags like "Seen" are encoded in the
> filename. Every flag change needs IO as well as copying/moving/deleting
> mails, quota, ... A maildir with 100k+ mails can impact the servers overall
> performance, but as you use all flash storage that may not be a problem.
>
> I remembered something about replication and maildir, took me some time
> to find it:
>
> https://dovecot.org/pipermail/dovecot/2017-February/107125.html
>
> Timo said (Mon Feb 20 10:09:48 UTC 2017):
>
> "There seems to be something weird with using Maildir and replication.
> Haven't had time to debug it and it's likely not an easy bug to fix,
> so for now the solution would be to use only sdbox/mdbox with replication."
>
> I don't know if that is still the case, I can just tell mdbox works for me.
>
>
> Best regards,
> Gerald
>


Re: Please Help me

2020-07-13 Thread Kishore Potnuru
Hi Vitalii,

I am using "Maildir".

Thanks
Kishore Potnuru

On Mon, Jul 13, 2020 at 10:32 AM Vitalii  wrote:

> On Sun, 12 Jul 2020 21:17:48 +0100
> Kishore Potnuru  wrote:
>
> > Hi All,
> >
> > I need to migrate the complete data & setup/environment from an old
> > dovecot environment to a new dovecot environment.
>
> Hi Kishore,
> I was wondering what mail format do you use Maildir/mdbox/sdbox?
>


Please Help me

2020-07-12 Thread Kishore Potnuru
Hi All,

I need to migrate the complete data & setup/environment from an old dovecot
environment to a new dovecot environment.

Old environment details:


Linux OS-  Red Hat Enterprise Linux Server release 6.5 (Santiago)
Dovecot version -  2.0.9
Postfix version -  2.6.6

New Environment details: ( 2 systems)


Linux OS-  Red Hat Enterprise Linux Server release 7.7 (Maipo)
Dovecot version -  2.2.36 (1f10bfa63)
Postfix version -  2.10.1

In the new environment, I have 2 servers. I have got 2 of the above servers
with above configuration and need to create HA/Resilience. I know there is
advanced versions in Redhat and Dovecot. As per my organisation's existing
support/policy, that is what maximum supported RHEL and official version of
dovecot as per RHEL 7.7.

Now my questions are:

1. I will stop the dovecot/postfix services on the server in old
environment. Is it possible to move/copy the complete configuration along
with data  (directories/sub-directories/users/groups/existing email in new
or cur folders/complete email domains along with complete structure) to the
other 2 servers in new env? Could you please suggest me the commands or
steps follow that?

2. Now, With the above 2 servers, I would like to create the HA/Resilience.
I know there is a Replication options which are there. Could you please
provide me the steps/video, how it needs to be done?

I have got the systems and I need to move/copy the environment to a new
environment and create the HA/Resilience. I am not sure, how to proceed and
what needs to be done clearly? I am stuck here.

Please help me in this step by step procedure.

Thanks,
Kishore Potnuru


Re: Urgent Help required

2020-07-09 Thread Kishore Potnuru
Hi Aki,

Am I able to install (2.3 version) on RHEL 6.10 or RHEL 7.7 versions? Will
there be any issues?
I know RHEL 6.10 is out of support in November. But I want to understand
and try in my test environment.

Is it possible?

thanks,
Kishore

On Thu, Jul 9, 2020 at 6:40 AM Aki Tuomi  wrote:

>
> > On 08/07/2020 22:24 Justina Colmena ~biz  wrote:
> >
> >
> > On July 8, 2020 11:01:20 AM AKDT, Alexander Dalloz 
> wrote:
> > >Am 08.07.2020 um 20:28 schrieb Kishore Potnuru:
> > >> Thank you for the reply.
> > >>
> > >> As per our current infrastructure, I can go maximum of the redhat 7.7
> > >> version. Not more than that. Am I able to install or upgrade to
> > >dovecot 2.3
> > >> version in redhat 7.7?
> >
> > I am running Dovecot 2.2 "u" on CentOS from https://ius.io/. If there
> is a package there for 2.3, it should be possible to upgrade on either
> CentOS or RHEL.
> >
> > I am still a little bit confused or concerned why mainstream packages
> seem to be lagging so far behind on CentOS and RHEL since the sudden
> acquisition or hostile corporate takeover of Red Hat by IBM.
> >
> > Possibly a corporate labor-union work slowdown.  IBM is too big, too
> blue, and too politically correct. Something is a little bit off. Too many
> echoes in the hallways.
> >
> > /Sorry for the rant.
> >
> > --
> > Sent from my Android device with K-9 Mail. Please excuse my brevity.
>
> We provide official community edition RPMs at https://repo.dovecot.org
> for 2.3.
>
> Aki
>


Re: Urgent Help required

2020-07-08 Thread Kishore Potnuru
Hi,

Our organisation has dependencies. There is a separate team/department who
creates the servers for us. When they build a new RHEL system, the system
will come up with various in-house softwares/tools. Those tools are not
compatible as of now with RHEL8. So, our organisation is going with redhat
7.7 only as of today which is supported for all in-house tools also.

This is my current situation:

1)

I have 2 test servers which are loaded with the following configuration.

=
[root@devap01 ~]# cat /etc/redhat-*
Red Hat Enterprise Linux Server release 6.10 (Santiago)

[root@devap01 ~]# dovecot --version
2.0.9

[root@devap01 ~]# postconf | grep mail_version
mail_version = 2.6.6
===

So, I would like to install the max possible dovecot version on the above
servers for the testing purpose. I would like to implement the
HA/Resilience with those 2 servers.  I have shared storage and individual
storage in this environment. But I am seeing some issues with both of them
( I explained details in my first email thread). please see if you can help.


2)  If it is successful, I will get two RHEL 7.7 servers to implement
the same in LIVE environment for HA/Resilience.


First I am going with compatibility issues to resolve in my environment.
Once that is resolved, I will go with HA/Resilience implementation.

Please let me know if you need any more details.

Thanks & Regards,
Kishore Potnuru


On Wed, Jul 8, 2020 at 8:57 PM Marc Roos  wrote:

>
>
> >>> with broken or vulnerable software is there really a benefit?
> >>
> >> LTS distributions back port necessary patches
>
> >Then the OP should be able to update to a dovecot that doesn't have the
> issue, right?
>
> I have no idea what his issue is, and why he is stuck even in specific
> releases. I have been running dovecot on el6 and el7 for years and years
> without issues.
>
>
>
>
>
>
>
>


Re: Urgent Help required

2020-07-08 Thread Kishore Potnuru
Thank you for the reply.

As per our current infrastructure, I can go maximum of the redhat 7.7
version. Not more than that. Am I able to install or upgrade to dovecot 2.3
version in redhat 7.7?

I have another question. I understand redhat 6.10 will go out of support in
november 2020. But this is a test environment. Am i able to install dovecot
2.3 version on redhat 6.10? For the Live support, I will be doing it on
redhat 7.7 version.

For testing, I am trying redhat 6.10 version, if it is successful, i will
be trying the Live one's on redhat 7.7 version.

Please help me if it is possible to install dovecot 2.3 on redhat 6.10?
This is a temporary test setup only.

Thanks,
Kishore Potnuru



On Wed, Jul 8, 2020 at 6:26 PM Alexander Dalloz  wrote:

> Am 08.07.2020 um 11:53 schrieb Kishore Potnuru:
> > Hi All,
> >
> > I request your help on this.
> >
> > I have 2 dovecot test servers (IMAP protocol) installed with the
> following
> > configuration.
> > =
> > [root@devap01 ~]# cat /etc/redhat-*
> > Red Hat Enterprise Linux Server release 6.10 (Santiago)
> >
> > [root@devap01 ~]# dovecot --version
> > 2.0.9
> >
> > [root@devap01 ~]# postconf | grep mail_version
> > mail_version = 2.6.6
> > ===
>
> Kishore,
>
> please don't address me personally. This is a mailing list and I don't
> offer / sell consulting.
>
> Let me comment only on the versions you provide. Please be aware that
> RHEL 6 will get EOL by end of November this year. So your strategy
> better comprises a migration to RHEL 7 or RHEL 8.
>
> Along that steps to a current RHEL major release you will profit from
> newer Dovecot and Postfix releases. Running RHEL 8 you would even get
> pretty current releases, still supported by the upstream projects.
>
> Alexander
>


Request for help - dovecot

2020-07-08 Thread Kishore Potnuru
Hi All,

Can you please help me in understanding this:

1. At present my RHEL server is 6.10 version. Am I able to install dovecot
2.2 or 2.3 version?
2. Am i able to upgrade directly from 2.0 to 2.3? or I should go
periodically from 2.0 to 2.1, then 2.1 to 2.2, then 2.2 to 2.3?
3. could you please suggest to me steps to pick the correct package to
upgrade in the above version (2.1, 2.2, 2.3)?
4. From Which location do I need to download the packages?
5. I am using redhat servers. Am i able to directly download and upgrade
the software from my redhat linux server? Please advise step-by-step
instructions for this?

Thanks,
Kishore Potnuru

On Wed, Jul 8, 2020 at 11:38 AM Kishore Potnuru 
wrote:

> Thank you for your reply.
>
> 1. Am i able to upgrade directly from 2.0 to 2.3? or I should go
> periodically from 2.0 to 2.1, then 2.1 to 2.2, then 2.2 to 2.3?
> 2. could you please suggest me steps to pick the correct package to
> upgrade in the above version (2.1, 2.2, 2.3)?
> 3. which location i need to download the packages?
> 4. I am using redhat servers. Am i able to directly download and upgrade
> the software from my redhat linux server? please advise step-by-step
> instructions for this?
>
> Thanks,
> Kishore Potnuru
>
>
> On Wed, Jul 8, 2020 at 11:00 AM Apostolis Hardalias <
> a.hardal...@skroutz.gr> wrote:
>
>>
>> On 7/8/20 12:53 PM, Kishore Potnuru wrote:
>> > Hi All,
>> >
>> > I request your help on this.
>> >
>> > I have 2 dovecot test servers (IMAP protocol) installed with the
>> > following configuration.
>> > =
>> > [root@devap01 ~]# cat /etc/redhat-*
>> > Red Hat Enterprise Linux Server release 6.10 (Santiago)
>> >
>> > [root@devap01 ~]# dovecot --version
>> > 2.0.9
>> >
>> > [root@devap01 ~]# postconf | grep mail_version
>> > mail_version = 2.6.6
>> > ===
>> >
>> > I have another server also "devap02" with the same configuration.
>> >
>> > Couple of points/questions/queries here.
>> >
>> > 1. I know these servers are having old dovecot versions. I would like
>> > to upgrade to the latest versions. Could you please suggest the steps
>> > for upgrading to the latest version in redhat (step by step details
>> > are helpful please) . If I upgrade to the latest version, will there
>> > be any impact on the existing configuration/setup?
>>
>> Check the documents posted here:
>>
>> https://doc.dovecot.org/installation_guide/upgrading/from-2.0-to-2.1/
>>
>> https://doc.dovecot.org/installation_guide/upgrading/from-2.1-to-2.2/
>>
>> https://doc.dovecot.org/installation_guide/upgrading/from-2.2-to-2.3/
>>
>> Depending on your setup, you may also need to check for changes to
>> additional software (e.g. amavis)
>>
>> >
>> > 2. Now I have added these 2 servers behind the Load Balancer. Enabled
>> > 110/143 ports on the Load Balancer FQDN (test.pop3.testing.com
>> > <http://test.pop3.testing.com>) and opened the firewall ports. Here I
>> > configured IMAP settings from microsoft outlook to see the emails. I
>> > gave the Incoming Mail Server & Outgoing mail server as
>> > "test.pop3.testing.com <http://test.pop3.testing.com>". It is
>> > configured without errors in Outlook. But I see these 2 types issues
>> > (shared storage & individual storage)
>> >
>> >a) individual separate storage - When I send 10 emails to LB FQDN
>> > (test.pop3.testing.com <http://test.pop3.testing.com>), the emails are
>> > going to 2 backend servers. But when i see the emails from Outlook
>> > inbox, it shows 5 emails from one server for some time. After sometime
>> > it shows other 5 emails in the inbox. But, I am not able to see all 10
>> > emails at same time in my inbox. Please suggest how to fix this issue?
>> > In this scenario, I have separate individual storage in both the
>> servers.
>>
>> I'm not sure if you've set it up already because it's unclear from the
>> configuration you posted but, you may wanna have a look at:
>> https://wiki.dovecot.org/Replication
>>
>> I suggest using replication after you've upgraded since earlier versions
>> of dovecot had a few issues.
>>
>>
>> >b) common shared storage - I have tried a different scenario also.
>> > I also have one common NFS storage. So, I have configured that storage
>> > in both the servers. So when I sent 10 emails, I see all the 10 emails
>> > from both the

Re: Urgent Help required

2020-07-08 Thread Kishore Potnuru
Thank you for your reply.

1. Am i able to upgrade directly from 2.0 to 2.3? or I should go
periodically from 2.0 to 2.1, then 2.1 to 2.2, then 2.2 to 2.3?
2. could you please suggest me steps to pick the correct package to upgrade
in the above version (2.1, 2.2, 2.3)?
3. which location i need to download the packages?
4. I am using redhat servers. Am i able to directly download and upgrade
the software from my redhat linux server? please advise step-by-step
instructions for this?

Thanks,
Kishore Potnuru


On Wed, Jul 8, 2020 at 11:00 AM Apostolis Hardalias 
wrote:

>
> On 7/8/20 12:53 PM, Kishore Potnuru wrote:
> > Hi All,
> >
> > I request your help on this.
> >
> > I have 2 dovecot test servers (IMAP protocol) installed with the
> > following configuration.
> > =
> > [root@devap01 ~]# cat /etc/redhat-*
> > Red Hat Enterprise Linux Server release 6.10 (Santiago)
> >
> > [root@devap01 ~]# dovecot --version
> > 2.0.9
> >
> > [root@devap01 ~]# postconf | grep mail_version
> > mail_version = 2.6.6
> > ===
> >
> > I have another server also "devap02" with the same configuration.
> >
> > Couple of points/questions/queries here.
> >
> > 1. I know these servers are having old dovecot versions. I would like
> > to upgrade to the latest versions. Could you please suggest the steps
> > for upgrading to the latest version in redhat (step by step details
> > are helpful please) . If I upgrade to the latest version, will there
> > be any impact on the existing configuration/setup?
>
> Check the documents posted here:
>
> https://doc.dovecot.org/installation_guide/upgrading/from-2.0-to-2.1/
>
> https://doc.dovecot.org/installation_guide/upgrading/from-2.1-to-2.2/
>
> https://doc.dovecot.org/installation_guide/upgrading/from-2.2-to-2.3/
>
> Depending on your setup, you may also need to check for changes to
> additional software (e.g. amavis)
>
> >
> > 2. Now I have added these 2 servers behind the Load Balancer. Enabled
> > 110/143 ports on the Load Balancer FQDN (test.pop3.testing.com
> > <http://test.pop3.testing.com>) and opened the firewall ports. Here I
> > configured IMAP settings from microsoft outlook to see the emails. I
> > gave the Incoming Mail Server & Outgoing mail server as
> > "test.pop3.testing.com <http://test.pop3.testing.com>". It is
> > configured without errors in Outlook. But I see these 2 types issues
> > (shared storage & individual storage)
> >
> >a) individual separate storage - When I send 10 emails to LB FQDN
> > (test.pop3.testing.com <http://test.pop3.testing.com>), the emails are
> > going to 2 backend servers. But when i see the emails from Outlook
> > inbox, it shows 5 emails from one server for some time. After sometime
> > it shows other 5 emails in the inbox. But, I am not able to see all 10
> > emails at same time in my inbox. Please suggest how to fix this issue?
> > In this scenario, I have separate individual storage in both the servers.
>
> I'm not sure if you've set it up already because it's unclear from the
> configuration you posted but, you may wanna have a look at:
> https://wiki.dovecot.org/Replication
>
> I suggest using replication after you've upgraded since earlier versions
> of dovecot had a few issues.
>
>
> >b) common shared storage - I have tried a different scenario also.
> > I also have one common NFS storage. So, I have configured that storage
> > in both the servers. So when I sent 10 emails, I see all the 10 emails
> > from both the servers as it is common shared storage. But, I am not
> > getting those 10 emails delivered into my Outlook. I have made all the
> > configuration correctly. Please suggest what is the mistake here.
> >
> > Dovecot.conf
> > =
> >
> > [root@devap01 ~]# cat /etc/dovecot/dovecot.conf
> > disable_plaintext_auth = no
> >
> > listen = *
> > log_path = /var/log/dovecot.log
> > mail_location = maildir:/r3/mail/virtual/%d/%n/Maildir/
> > passdb {
> > args = /etc/dovecot/passwd
> > driver = passwd-file
> > }
> > pop3_uidl_format = %g
> > protocols = imap pop3
> > ssl = yes
> > ssl_cert =  > ssl_key =  >
> > userdb {
> > args = uid=vmail gid=vmail home=/r3/mail/virtual/%d/%n
> > driver = static
> > }
> > mail_debug = no
> > verbose_ssl = no
> > =
> >
> > Please help me here.
> >
> > Thanks,
> > Kishore Potnuru
>


Urgent Help required

2020-07-08 Thread Kishore Potnuru
Hi All,

I request your help on this.

I have 2 dovecot test servers (IMAP protocol) installed with the following
configuration.
=
[root@devap01 ~]# cat /etc/redhat-*
Red Hat Enterprise Linux Server release 6.10 (Santiago)

[root@devap01 ~]# dovecot --version
2.0.9

[root@devap01 ~]# postconf | grep mail_version
mail_version = 2.6.6
===

I have another server also "devap02" with the same configuration.

Couple of points/questions/queries here.

1. I know these servers are having old dovecot versions. I would like to
upgrade to the latest versions. Could you please suggest the steps for
upgrading to the latest version in redhat (step by step details are helpful
please) . If I upgrade to the latest version, will there be any impact on
the existing configuration/setup?


2. Now I have added these 2 servers behind the Load Balancer. Enabled
110/143 ports on the Load Balancer FQDN (test.pop3.testing.com) and opened
the firewall ports. Here I configured IMAP settings from microsoft outlook
to see the emails. I gave the Incoming Mail Server & Outgoing mail server
as "test.pop3.testing.com". It is configured without errors in Outlook. But
I see these 2 types issues (shared storage & individual storage)

   a) individual separate storage - When I send 10 emails to LB FQDN (
test.pop3.testing.com), the emails are going to 2 backend servers. But when
i see the emails from Outlook inbox, it shows 5 emails from one server for
some time. After sometime it shows other 5 emails in the inbox. But, I am
not able to see all 10 emails at same time in my inbox. Please suggest how
to fix this issue? In this scenario, I have separate individual storage in
both the servers.

   b) common shared storage - I have tried a different scenario also. I
also have one common NFS storage. So, I have configured that storage in
both the servers. So when I sent 10 emails, I see all the 10 emails from
both the servers as it is common shared storage. But, I am not getting
those 10 emails delivered into my Outlook. I have made all the
configuration correctly. Please suggest what is the mistake here.

Dovecot.conf
=

[root@devap01 ~]# cat /etc/dovecot/dovecot.conf
disable_plaintext_auth = no

listen = *
log_path = /var/log/dovecot.log
mail_location = maildir:/r3/mail/virtual/%d/%n/Maildir/
passdb {
args = /etc/dovecot/passwd
driver = passwd-file
}
pop3_uidl_format = %g
protocols = imap pop3
ssl = yes
ssl_cert = 

Re: Urgent - Help needed

2020-05-07 Thread Kishore Potnuru
Hi All,

Thank you for your replies and Suggestions. But, I still not clear on my
question. But It's live production server. At present I cannot make any
changes to it. That will take a long process to make any on this server. At
present my concern is,

To my server (dovecot, postfix, POP3/Imap  protocol), I am getting the
emails in my dovecot structured directory "Maildir/new". Once the
person/application (example: Microsoft Outlook) read the email, they are
moving to "Maildir/cur". If they are deleting the file from Outlook, that
will be deleted from the "Maildir/cur" folder also. I have Outlook as an
example here. few email boxes are accessed by Outlook and few more email
boxes are accessed by an application, where they configure in their
application/outlook, to point out my server to read/access the emails.

I am repeating the same question again, From our server (where postfix,
dovecot with pop3/imap protocol installed) knowing any ways (logs,
incidents,alerts or any) that Outlook or application read/accessed/deleted
the email which is in "Maildir/new" or "Maildir/cur" folder? This is my
current issue.

I am sorry for more concerning you guys asking the same question again and
again. I am trying find the exact/correct answer on my current issue. I am
new to this environment and new to dovecot/postfix also. working from last
3 to 6 months. This environment was designed by some other guy who left the
company. I had to take this responsibility to support. I am kind of bit
struggling.  Please help.

Thanks,
Kishore Potnuru




On Tue, May 5, 2020 at 2:27 PM Sami Ketola 
wrote:

> Hi,
>
> With dovecot 2.2 you can log some events with mail_log plugin.
>
> https://doc.dovecot.org/configuration_manual/plugins/mail_event_logging/
>
> Sami
>
> On 5. May 2020, at 16.03, Kishore Potnuru 
> wrote:
>
> Hi Benny and Dovecot,
>
> Thanks for the reply.
>
> Actually my question is, is it possible to verify anything now whether the
> email has been pulled by application/server from the "Maildir/new" or
> "Maildir/cur" folder in my POP3 server? at present I am not using lmtp yet.
>
> When I configured the outlook to access the one of the email box in the
> server, I get the email. But do we have any log in POP3 server, stating the
> email has been to sent to Outlook?
>
> Thanks & Regards,
> Kishore Potnuru
>
>
> On Tue, May 5, 2020 at 1:02 PM Benny Pedersen  wrote:
>
>> On 2020-05-05 13:25, Kishore Potnuru wrote:
>> > Hi All,
>> >
>> > Please find the requested details:
>>
>> here is help then
>>
>> dovecot side:
>>
>> https://doc.dovecot.org/configuration_manual/protocols/lmtp_server/
>>
>> postfix side:
>>
>> https://wiki.dovecot.org/HowTo/PostfixDovecotLMTP
>>
>> after that joy
>>
>>
>>
>


Re: Urgent - Help needed

2020-05-05 Thread Kishore Potnuru
Hi Benny and Dovecot,

Thanks for the reply.

Actually my question is, is it possible to verify anything now whether the
email has been pulled by application/server from the "Maildir/new" or
"Maildir/cur" folder in my POP3 server? at present I am not using lmtp yet.

When I configured the outlook to access the one of the email box in the
server, I get the email. But do we have any log in POP3 server, stating the
email has been to sent to Outlook?

Thanks & Regards,
Kishore Potnuru


On Tue, May 5, 2020 at 1:02 PM Benny Pedersen  wrote:

> On 2020-05-05 13:25, Kishore Potnuru wrote:
> > Hi All,
> >
> > Please find the requested details:
>
> here is help then
>
> dovecot side:
>
> https://doc.dovecot.org/configuration_manual/protocols/lmtp_server/
>
> postfix side:
>
> https://wiki.dovecot.org/HowTo/PostfixDovecotLMTP
>
> after that joy
>
>
>


Re: Urgent - Help needed

2020-05-05 Thread Kishore Potnuru
Hi All,

Please find the requested details:

[root@testserver new]# doveconf -n
# 2.2.10: /etc/dovecot/dovecot.conf
# OS: Linux 3.10.0-693.17.1.el7.x86_64 x86_64 Red Hat Enterprise Linux
Server release 7.4 (Maipo) xfs
disable_plaintext_auth = no
listen = *
log_path = /var/log/dovecot.log
mail_location = maildir:/kw/home/pop/%d/%n/Maildir/
passdb {
  args = /etc/dovecot/passwd
  driver = passwd-file
}
pop3_uidl_format = %g
protocols = imap pop3
ssl_cert =  wrote:

>
> --
> *From:* Kishore Potnuru [mailto:kishore.reac...@gmail.com
> ]
> *Sent:* Tuesday, May 5, 2020, 4:02 PM
> *To:* Benny Pedersen; Dovecot Mailing List
> *Subject:* Urgent - Help needed
>
>
> I am using pop3/imap, see the below file. We can't verify any logs? This
> is working fine from last one year. as part of testing we just stopped the
> services for 20minutes and restarted the dovecot and postfix server using
> "service  stop/start". No issues so far...
>
> I would like know, if the application is reading the emails from the
> server, do we have any log in our server to see the same? Because I see
> them when the email is coming to the folder. I see them that they are
> deleted , once they are reading by the application. But application is not
> taking all the emails. few are missing, application team says. I want to
> tell them and show the logs that these are read by your server/application.
> that is my idea
>
> [root@server new]# doveconf -n
> # 2.2.10: /etc/dovecot/dovecot.conf
> # OS: Linux 3.10.0-693.17.1.el7.x86_64 x86_64 Red Hat Enterprise Linux
> Server release 7.4 (Maipo) xfs
> disable_plaintext_auth = no
> listen = *
> log_path = /var/log/dovecot.log
>
> mail_location = maildir:/kw/home/pop/%d/%n/Maildir/
> passdb {
>   args = /etc/dovecot/passwd
>   driver = passwd-file
> }
> pop3_uidl_format = %g
> protocols = imap pop3
> ssl_cert =  ssl_key =  userdb {
>   args = uid=vmail gid=vmail home=/kw/home/pop/%d/%n
>   driver = static
> }
>
> On Tue, May 5, 2020 at 9:33 AM Benny Pedersen  wrote:
>
>> On 2020-05-05 10:06, Kishore Potnuru wrote:
>>
>> > Please help me...
>>
>> with more sparse info ?
>>
>> maillist would like to see
>>
>> postconf -nf
>> postconf -Mf
>> doveconf -n
>>
>> how is it setup to delivery virtual transport not using dovecot-lda or
>> dovecot ltmp
>>
>> do not make file system access to mails, use imap or pop3 protocols
>>
>> as i read sparse info you are not using dovecot, so be it
>>
>
> As Huangbin and Benny already pointed it out and what is cleary shown by
> the log-snippet:
>
> May  5 07:35:21 testserver postfix/virtual[29843]: EB6A2206818: to=
>  , relay=virtual,
> delay=0.05, delays=0.05/0/0/0, dsn=2.0.0, status=sent (delivered to maildir)
>
> It is *NOT* Dovecot which is doing the final delivery of messages into the
> users mailbox.
>
> Furthermore if the mailist is asking you for the output of:
> postconf -nf
> postconf -Mf
> doveconf -n
>
> but you only send some (very sparse) snippets out of it which nearly have
> no relevance to the problem you are describing you can not expect real
> support from the list.
>


Re: Urgent - Help needed

2020-05-05 Thread Kishore Potnuru
I am using pop3/imap, see the below file. We can't verify any logs? This is
working fine from last one year. as part of testing we just stopped the
services for 20minutes and restarted the dovecot and postfix server using
"service  stop/start". No issues so far...

I would like know, if the application is reading the emails from the
server, do we have any log in our server to see the same? Because I see
them when the email is coming to the folder. I see them that they are
deleted , once they are reading by the application. But application is not
taking all the emails. few are missing, application team says. I want to
tell them and show the logs that these are read by your server/application.
that is my idea

[root@server new]# doveconf -n
# 2.2.10: /etc/dovecot/dovecot.conf
# OS: Linux 3.10.0-693.17.1.el7.x86_64 x86_64 Red Hat Enterprise Linux
Server release 7.4 (Maipo) xfs
disable_plaintext_auth = no
listen = *
log_path = /var/log/dovecot.log

mail_location = maildir:/kw/home/pop/%d/%n/Maildir/
passdb {
  args = /etc/dovecot/passwd
  driver = passwd-file
}
pop3_uidl_format = %g
protocols = imap pop3
ssl_cert =  wrote:

> On 2020-05-05 10:06, Kishore Potnuru wrote:
>
> > Please help me...
>
> with more sparse info ?
>
> maillist would like to see
>
> postconf -nf
> postconf -Mf
> doveconf -n
>
> how is it setup to delivery virtual transport not using dovecot-lda or
> dovecot ltmp
>
> do not make file system access to mails, use imap or pop3 protocols
>
> as i read sparse info you are not using dovecot, so be it
>


Re: Urgent - Help needed

2020-05-05 Thread Kishore Potnuru
Thank you for the reply. Actually there are 7 emails sent by the user. 2
emails are delivered successfully. 5 are missing. All are having the same
log with virtual. At present I might not be able to change those
settings Is there any way to verify they are delivered to them or not?
do we have any logs to verify the same?

On Tue, May 5, 2020 at 9:16 AM Zhang Huangbin  wrote:

>
> > On May 5, 2020, at 4:06 PM, Kishore Potnuru 
> wrote:
> >
> > May  5 07:35:21 testserver postfix/virtual[29843]: EB6A2206818: to=<
> selfem...@testing2.com>, relay=virtual, delay=0.05, delays=0.05/0/0/0,
> dsn=2.0.0, status=sent (delivered to maildir)
>
> According to the log, this user is using Postfix builtin transport
> "virtual" as LDA, not Dovecot LDA. Fixing this should get your email
> delivered correctly.
>
> 
> Zhang Huangbin, founder of iRedMail project: https://www.iredmail.org/
>
>


Urgent - Help needed

2020-05-05 Thread Kishore Potnuru
Hi All,

I am having dovecot installed on my redhat 7. There was an email came to my
"Maildir" directory as per the logs. There is an application reading the
emails from the Maildir inbox.

I have the log stating the email has been delivered to maildir folder
below. But the application team says that they didn't receive the email.
The emails is also not there in the Maildir folder. Is there any way/log we
can see, from Maildir folder, whether the application picked the email? or
where that email went (to any server) from the Maildir folder? any such
verification is possible?

=
[root@testserver log]# grep EB6A2206818 temp.log
May  5 07:35:20 testserver postfix/smtpd[29839]: EB6A2206818:
client=test-server
May  5 07:35:20 testserver postfix/cleanup[29842]: EB6A2206818:
message-id=
May  5 07:35:21 testserver postfix/qmgr[29801]: EB6A2206818: from=<
test...@testing.com>, size=13614, nrcpt=1 (queue active)
May  5 07:35:21 testserver postfix/virtual[29843]: EB6A2206818: to=<
selfem...@testing2.com>, relay=virtual, delay=0.05, delays=0.05/0/0/0,
dsn=2.0.0, status=sent (delivered to maildir)
May  5 07:35:21 testserver postfix/qmgr[29801]: EB6A2206818: removed
==

Please help me...

Thanks & Regards,
Kishore Potnuru


Re: Fwd: Load balancer for dovecot servers - Not able to send emails

2020-04-23 Thread Kishore Potnuru
Hi John,

Thank you for the reply.  Actually it was setup like this by another
member, who left the team/company recently. Now it came to me to handle
that responsibility. That's how I got in to this. At present I am not able
to migrate/upgrade immediately. Because it sends emails around 100K+ emails
everyday and I do not want to disturb that.

Coming back to your question, Actually the connection is :

O365/Outlook >> SMTP Gateway Server >> testing.test.com >> 2 POP3 servers.

Actually "testing.test.com", that is FQDN  name set in F5 load balancer,
where it is having the 2 POP3 servers to route the emails.
When the email was sent from Outlook/O365, first it goes to SMTP Gateway
Server. Now the SMTP Gateway server has the postfix rule to send it to "
testing.test.com". In this location, I am getting the error in SMTP Gateway
Server, where it is not able connect ( lost connection with
testing.test.com [xxx.xxx.xxx.xxx]
while receiving the initial server greeting).

In SMTP Gateway server, instead of "testing.test.com", if i give the
name/ip of any POP3 server, then email delivery is happening successfully
to that POP3 server. The above error is coming only when i use the fqdn "
testing.test.com", instead of direct POP3 server.

Please let me know if you need any more details. Could you please help me
here.

Thanks,
Kishore Potnuru

On Thu, Apr 23, 2020 at 7:13 PM John Stoffel  wrote:

> >>>>> "Kishore" == Kishore Potnuru  writes:
>
> Kishore> I have the dovecot version 2.0.9 installed on RHEL linux 6.10
> Kishore> version. It's a single/standalone Live server.
>
> You should really upgradr your setup.
>
> Kishore> Now I have created another server with the same configuration
> Kishore> for the resilince purpose. I also tested and I am able to
> Kishore> send the emails to both of the dovecot servers
> Kishore> separately/individually.  They are working fine.
>
> Dovecot doesn't do the mailing between systems, so i assume you've got
> postfix configured?  And do you have shared storage behind your two
> dovecot instances so that your users don't have to login to multiple
> systems to get emails?
>
> Did you read the docs at:
>
>   https://doc.dovecot.org/admin_manual/dovecot_cluster_architecture/
>
> Kishore> Now I have added those two servers under a F5 load balancer
> Kishore> and created a FQDN (example: testing.test.com). I changed the
> Kishore> rules to send the traffic to FQDN "testing.test.com", where
> Kishore> it should redirect the email to one of those 2 servers.
>
> So how is your F5 configured to work when one server is down?
>
> Kishore> When I sent the email to FQDN "testing.test.com", I am getting
> the below error.
>
> Kishore> pf1_inbd/smtp[30292]: 66A5F5F6: to=,
> Kishore> relay=testing.test.com[xxx.xxx.xxx.xxx]:25, delay=13,
> Kishore> delays=0.09/0.08/13/0, dsn=4.4.2, status=deferred (lost
> Kishore> connection with testing.test.com [xxx.xxx.xxx.xxx] while
> Kishore> receiving the initial server greeting)
>
> Kishore> Could you please let me know how to fix this issue? It's a great
> help for me.
>
> Sounds like you haven't actually setup your system correctly.  But
> we're not going to be able to help until you provide more details.
> It's also not clear from the about log file *which* server gave you
> this error.
>
> It would be smarted to start from scratch with an upto date install of
> dovecot (and postfix in my opinion) according to the Dovecot docs
> above, and test that out in a test environment.  Then you would use
> 'doveadm' sync to migrate user accounts over to the new system.
>
> John
>
>
>


Fwd: Load balancer for dovecot servers - Not able to send emails

2020-04-23 Thread Kishore Potnuru
Hi All,

I need your help on one of the issue in Dovecot.

I have the dovecot version 2.0.9 installed on RHEL linux 6.10 version. It's
a single/standalone Live server.

Now I have created another server with the same configuration for the
resilince purpose. I also tested and I am able to send the emails to both
of the dovecot servers separately/individually. They are working fine.

Now I have added those two servers under a F5 load balancer and created a
FQDN (example: testing.test.com). I changed the rules to send the traffic
to FQDN "testing.test.com", where it should redirect the email to one of
those 2 servers.

When I sent the email to FQDN "testing.test.com", I am getting the below
error.

pf1_inbd/smtp[30292]: 66A5F5F6: to=,
relay=testing.test.com[xxx.xxx.xxx.xxx]:25,
delay=13, delays=0.09/0.08/13/0, dsn=4.4.2, status=deferred (lost
connection with testing.test.com [xxx.xxx.xxx.xxx] while receiving the
initial server greeting)

Could you please let me know how to fix this issue? It's a great help for
me.

Thanks & Regards,
Kishore Potnuru

>


Load balancer for dovecot servers - Not able to send emails

2020-04-22 Thread Kishore Potnuru
Hi All,

I need your help on one of the issue in Dovecot.

I have the dovecot version 2.0.9 installed on RHEL linux 6.10 version. It's
a single/standalone Live server.

Now I have created another server with the same configuration for the
resilince purpose. I also tested and I am able to send the emails to both
of the dovecot servers separately/individually. They are working fine.

Now I have added those two servers under a F5 load balancer and created a
FQDN (example: testing.test.com). I changed the rules to send the traffic
to FQDN "testing.test.com", where it should redirect the email to one of
those 2 servers.

When I sent the email to FQDN "testing.test.com", I am getting the below
error.

pf1_inbd/smtp[30292]: 66A5F5F6: to=,
relay=testing.test.com[xxx.xxx.xxx.xxx]:25,
delay=13, delays=0.09/0.08/13/0, dsn=4.4.2, status=deferred (lost
connection with testing.test.com [xxx.xxx.xxx.xxx] while receiving the
initial server greeting)

Could you please let me know how to fix this issue? It's a great help for
me.

Thanks & Regards,
Kishore Potnuru

>


Dovecot Load balancing - Please Please Please help me

2020-01-16 Thread Kishore Potnuru
  I need your help on my issue very badly.

I have the dovecot version 2.0.9 installed on RHEL linux 6.10 version. It's
a single Live server. I need to add a load balancer by adding another
server for resilience.

I cannot upgrade the dovecot version at this time as it is a single live
server. If something goes wrong, I will be in trouble.

Basically the requirement/issue is:

a) it's a single live dovecot POP3/IMAP server
b) people are accessing their emails from microsoft outlook (by giving the
same server name as IMAP and SMTP server). But more than 10 emails will
be travelled/routed.
c) This server is not rebooted from couple of years.
d) Now they are worried about, just in case if the server is having any
issues during the reboot
  or
   if something goes wrong with the server in any case, there will be huge
issues.

e) They would like to create resilience by adding another server and emails
will be travelled from both the servers. If one server is having any issues
due to any technical issue and if it doesn't come back easily, then the
emails will be travelled through the other server and there will no
disturbance to the emails. atleast it travels from the other server.

I have very less knowledge on this. Could you please help me providing the
best solution for this.

I will wait for your reply. Please please please help me.

Thanks,
Kishore Potnuru


Re: Dovecot HA/Resilience

2020-01-13 Thread Kishore Potnuru
Hi Guys, Could you please provide your inputs on my below query

On Fri, Jan 10, 2020 at 5:16 PM Kishore Potnuru 
wrote:

> Thank you all for the replies
>
> I have the test environment with the same configuration. But I have been
> asked to go with same environment for HA/Resilience in Live.
>
> Yes, I have only one Live server. It is configured in "Maildir" format.
> The data stores on a Network / Shared Storage (But definitely not local
> disk, its a mount point).
>
> I have been asked to create a HA/Resilience for this environment. They
> gave me another server with same ram/cpu/os and I need to configure the
> dovecot on it.
>
> Please provide your suggestions/steps as I am new to this kind of
> environment.
>
> Is it possible, when any email comes to any one or both of the two
> servers, how it will be read by the user from Outlook? How to create the
> environment?
>
> Thanks,
> Kishore Potnuru
>
> On Fri, Jan 10, 2020 at 7:55 AM Sami Ketola 
> wrote:
>
>>
>>
>> > On 10 Jan 2020, at 9.20, Emmanuel Dreyfus  wrote:
>> >
>> > On Fri, Jan 10, 2020 at 09:07:24AM +0200, Aki Tuomi wrote:
>> >> Replication is not supported with mbox. Most features are not.
>> >
>> > It would be nice if the document about replication could tell
>> > what setup works.
>>
>>
>> First step in setting up HA system would be to migrate away from mbox.
>>
>> Sami
>>
>>


Re: Dovecot HA/Resilience

2020-01-10 Thread Kishore Potnuru
Thank you all for the replies

I have the test environment with the same configuration. But I have been
asked to go with same environment for HA/Resilience in Live.

Yes, I have only one Live server. It is configured in "Maildir" format. The
data stores on a Network / Shared Storage (But definitely not local disk,
its a mount point).

I have been asked to create a HA/Resilience for this environment. They gave
me another server with same ram/cpu/os and I need to configure the dovecot
on it.

Please provide your suggestions/steps as I am new to this kind of
environment.

Is it possible, when any email comes to any one or both of the two servers,
how it will be read by the user from Outlook? How to create the
environment?

Thanks,
Kishore Potnuru

On Fri, Jan 10, 2020 at 7:55 AM Sami Ketola  wrote:

>
>
> > On 10 Jan 2020, at 9.20, Emmanuel Dreyfus  wrote:
> >
> > On Fri, Jan 10, 2020 at 09:07:24AM +0200, Aki Tuomi wrote:
> >> Replication is not supported with mbox. Most features are not.
> >
> > It would be nice if the document about replication could tell
> > what setup works.
>
>
> First step in setting up HA system would be to migrate away from mbox.
>
> Sami
>
>


Re: Dovecot HA/Resilience

2020-01-09 Thread Kishore Potnuru
 Thank you Aki for the reply.

But I cannot disturb the version at present as it is a live server and
thousands of emails will circulate every hour.

Could you please suggest me how to create HA/resilience for the existing
environment. I have another server ready with the similar configuration.
Please provide any steps/link for me to proceed on this? It will be a great
help to me.

Thanks,
Kishore

On Thu, Jan 9, 2020 at 4:33 PM Aki Tuomi  wrote:

>
> > On 09/01/2020 18:25 Kishore Potnuru  wrote:
> >
> >
> > Hi Dovecot team,
> >
> > I need help in configuring HA/resilence for my dovecot (POP3/IMAP)
> server.
> >
> > I have one RHEL Linux POP3/IMAP server with Dovecot version 2.2.10. I
> also installed the postfix(version: 2.6.6) in it. At present it have around
> 10 domains and each domain is having around 20 email boxes. It has very
> simple configuration.
> >
> > User's reading the email via some internal applications/Outlook.
> >
> > I would like to create resilience/HA for this environment. Could you
> please suggest me, what is the easiest way to achieve this?
> >
> > If any one can suggest step by step that will be more helpful to me.
> >
> > Thanks,
> > Kishore
>
> You could consider using more recent version of dovecot. 2.2.10 is already
> over 5 years old.
>
> Aki
>


Dovecot HA/Resilience

2020-01-09 Thread Kishore Potnuru
Hi Dovecot team,

I need help in configuring HA/resilence for my dovecot (POP3/IMAP) server.

I have one RHEL Linux POP3/IMAP server with Dovecot version 2.2.10. I also
installed the postfix(version: 2.6.6) in it. At present it have around 10
domains and each domain is having around 20 email boxes. It has very simple
configuration.

User's reading the email via some internal applications/Outlook.

I would like to create resilience/HA for this environment. Could you please
suggest me, what is the easiest way to achieve this?

If any one can suggest step by step that will be more helpful to me.

Thanks,
Kishore