Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - bertalanimre

Pages: 1 [2] 3 4 ... 6
16
Installation and Upgrades / Re: [SOLVED] SSH after network change
« on: August 15, 2014, 08:41:43 am »
Probably external Firewall issue. Re opening if it is not.

17
Probably solved, it was an external Firewall issue ( at least I hope ).

18
Installation and Upgrades / Getmail + Zentyal instead of fetchmail
« on: August 15, 2014, 08:39:44 am »
Hello Guys!

I have a question about getmail. Have anyone tryed to use it under zentyal instead of the builtin fetchmail? My main issue is that fetchmail whenever it copyes the mail from the source mailbox to the zentyal mailbox it removes the "unread" flag and it appears as read message. But that is not good for me ATM. As far as I've learned getmail doesn't check the read-unread flag, instead it uses the message ID and compares that to the local mailbox to see if a message has to be downloaded or not. Or maybe you guys know a better thing for it?

Waiting for your tipps boys.

Thanks!
Bert

19
Hello fellow Forumers!

I vahe a very annoying yet must solve problem. My zentyal mail server is in a DMZ VLAN network and working awsome with OpenChange and fetchmail. However, from time to time, the server get's disconnected or just simply unreachable from all other VLAN, but it's own. For example:
Let's say server IP is 192.168.100.1 This is the DMZ VLAN network.
Clients are in 192.168.200.1-200. They can see out to the internet thrue a few switches and our firewall. In the firewall, we set up all the VLAN and permiting, denying some services from VLAN to VLAN. Mail server can communicate to the clients with the usual mail ports + SSH and webadmin surface. On the server firewall ( in Zentyal ) I've set up an allowance for allowing ( for example SSH ) SSH port from the 192.168.200.0/24 IP range. And still, from time to time, the server disappears from the network and comes back after a few minutes. Variable from 2 minutes, to 2-3 hours.

I have no clue what triggers this issue, but if you have any suggestion or advice, please let me know. This is very urgent.

Ty!
Bert

20
Installation and Upgrades / [SOLVED] SSH after network change
« on: August 11, 2014, 11:48:36 am »
Hey guys!

I have a server with SSH enabled and the original IP address was 192.168.1.anything. Now the server was moved to 192.168.50.anything. My problem is: Everything works fine except for SSH. Somehow nobody can connect to the server via SSH ever since it was moved to a different IP range. Even if I set firewall to allow any to any in all ranges. Webmanagement works, IMAP works. I don't know what to do now.

21
Installation and Upgrades / Set firewall to default
« on: August 08, 2014, 01:23:09 pm »
Hy guys!

How can I set back the firewall to default? Somehow I can't connect to the server with SSH thrue firewall. ( firewall is set OK ).

22
How does Hidden Attributes comes into this topic? :)

23
Yes, noticed it.... However I'm NOT going to use it now since I worked 2 weeks with this. :D And as far as I can recall it does not keep the downloaded messages on the source server. That is still a mistake. Oh, and where is the user corner? How can a user change his password ( only mail server, no AD to lok in to )

24
100% sorry. It was my bad. Comodo Dragoons secure DNS messed it all up...... Sry. :(

25
Hy!

I recently have noticed an error when users try to log in to SOGo webmail. Here is what I can see in the /var/log/soog/soog.log file:
Code: [Select]
Jul 29 9:16:40 sogod[27309]: [ERROR] <0x0x7f4d2525d878[NGLdapAttribute]> could not convert value of objectSid to string
Jul 29 9:16:40 sogod[27309]: [ERROR] <0x0x7f4d25360e08[NGLdapAttribute]> could not convert value of objectGUIDto string
192.168.1."xxx", 127.0.0.1 - - [29/Jul2014:09:16:40 GMT] "GET /SOGo/ HTTP/1.1" 302 0/0 0.040 - - 0
127.0.0.1 - - [29/Jul2014:09:16:40 GMT] "GET /SOGo/imre.bertalan HTTP/1.1" 302 0/0 0.003 - - 0
127.0.0.1 - - [29/Jul2014:09:16:40 GMT] "GET /SOGo/imre.bertalan/view HTTP/1.1" 302 0/0 0.003 - - 0

Additional info: A colleague of my modified the access of SOGo webinterface to make it accessable only with "https". Could that make tha problem?

26
Yes, a developer reply would be nice to have.

27
Sorry for being very inactive but had some jobs to do. But here is the Step-by-step Guide how to migrate mails from an external mail server without any mail loss and using fetchmail:

1st thing is to download ImapCopy
Code: [Select]
sudo apt-get install imapcopy
2; Configure the imapcopy.cfg file wich is supposed to be in the folder where imapcopy is. ( normally your home folder )
Code: [Select]
mcedit imapcopy.cfg
3; What you need to edit is sourceserver, destination server, ports, usernames and password. You can find them in the basic config file
Code: [Select]
SourceServer hostname.sourceserver.com
SourcePort 143

DestServer hostname.destinationserver.com
DestPort 143

..
..
..

Copy "user1@sourceserver.com" "password" "user1@destserver.com" "password"
Copy "user2@sourceserver.com" "password" "user2@destserver.com" "password"

NormallĂ­ this will copy all the files/folders and labels as well.

4; Run ImapCopy
Code: [Select]
imapcopy
5; Take a break. We just copied all the messages to our local mailbox  ;)
Code: [Select]
sudo getadrink
6; Now we will set up fetchmail. I'll show how to start fetchmail manually because new users should use this instead of the daemon and apply these settings to the daemon only if it works 100%. Create a config file for the fetchmail
Code: [Select]
mcedit .fetchmailrc
7; Add the user, server, protocol and the rest wich will let fetchmail know that we want to keep the mail in our source mailbox
Code: [Select]
set syslog;
set postmaster "postmaster@destserver.com";
set daemon 60;
set logfile /home/user/fetchmail.log;

defaults
     smtpaddress "sysadmin@destserver.com"

poll sourceserver.com protocol imap:
     username "user1@sourceserver.com" is "user1@destserver.com"
     password "password";

poll sourceserver.com protocol imap:
     username "user2@sourceserver.com" is "user2@destserver.com"
     password "password";

keep

What could need some explanation:
set daemon 60; = Check incoming mails in every 60 seconds
keep = Keep the mail in the source server


8; Create the logfile since fetchmail can't create it on it's own. What a bastard  :)
Code: [Select]
mcedit fetchmail.log
Then save it.

9; Start Fetchmail
Code: [Select]
fetchmail
10; If you want, you can check the log file for any errors. With these settings it is working for me like a charm. It keeps all mails on the server and copies all unread messages the my local mail server. Perfect for testing.

In case if you need any help, do not hesitate to ask. :)

28
Yes, that would be nice. Fortunaltelly I did  not have to resort to that yet. But now, here is the "magic" how can you migrate all your users from 1 mail server to another without losing any mails and you can use your own server in "test mode":

Firsly let's install imapcopy:
Code: [Select]
sudo apt-get update
sudo apt-get install imapcopy

You have to edit the config file of it: ( I use mcdeit )
Code: [Select]
mcedit ImapCopy.cfg ( normally inside the home folder )

Code: [Select]
SourceServer server.source.com
SourcePort ***
DestServer server.destination.com
DestPort ***

#          SrcUser       SrcPasswd            DestUser        DestPasswd
Copy   "SrcUser1@source.com"           "secret"           "DestUser1@destination.com"               "anothersecret"
Copy   "SrcUser2@source.com"           "secret"           "DestUser2@destination.com"               "anothersecret"
etc....

After this, you just run
Code: [Select]
imapcopy in a terminal and the mentioned users imap profiles will be copied to the local mail server. I repeat. You have COPIED them. So you won't miss anything in case of a failiure.

Continue soon....... Now have to go, sry.

29
It WORKS! ImapCopy + Fetchmail with IMAP is just what I needed. I'll start the 1st phase of the tests and if it works still then I'll publish the methods here step-by-step guys. :)

30
that hashkiller is the best way to add words to attacker programs that try a number of words to enter a website, equipemtn or anything.... Don't use it. :)

I'm watching ipamcopy right now. I hope it will work. If it does, you have saved my life ( and probably my job as well ). :)

Pages: 1 [2] 3 4 ... 6