Freitag, 9. November 2018

Exchange POP/IMAP Problems - no TLS Certificate

Check your Service State
[PS] C:\Windows\system32>Get-ServerComponentState -Identity YourMailServer
 
Server Component State ------ --------- ----- [...] YourMailServer ImapProxy Inactive
YourMailServer OabProxy Active
YourMailServer OwaProxy Active
YourMailServer PopProxy Inactive
[...]

The Proxy-Componentx are disabled.
So you can not connect and the server refuses “external” connections.

To fix this:
Open an ExchangeShell as Administrator

[PS] C:\Windows\system32>Set-ServerComponentState -Identity MAIL02 -Component PopProxy -Requester HealthAPI -State Active


Mittwoch, 7. November 2018

SSL Check for IMAP/POP3/SMTP

IMAP via SSL uses 993
openssl s_client -showcerts -connect mail.example.com:993



POP3 via SSL uses 995

openssl s_client -showcerts -connect mail.example.com:995

Montag, 15. Oktober 2018

HPE Switch 1920 - hidden CLI commands

Using a serial console with 38400,8,N,1

if you need a password:


Jinhua1920unauthorized

_cmdline-mode on


The command: _hidecmd open you a new level...

In case you can not log in to the web interface:

Give the following commands:
system-view
ip http enable
ip http port 80
ip http acl 2000
local-user admin
pasword <hereyournewpassword>
authorization-attribute level 3
quit



Montag, 27. August 2018

OTRS 6 POP3 suddenly stopps

In case your OTRS stopps fetching Mails from your Exchange Server:

Open  „Exchange Management Shell“ 

(Get-ServerComponentState -Identity NAMEOFYOURSERVER -Component PopProxy).LocalStates

Watch the brackets! 

In case you get „inactive“:


Set-ServerComponentState -Identity NAMEOFYOURSERVER -component PopProxy -state Active -requester HealthAPI

Freitag, 10. August 2018

Parallels Desktop booting Problems

  1. Turn Off Mac.
  2. Hold CMD+R and start Mac.
  3. Hold until the Mac boot into Recovery Mode.
  4.  Go to Utilities -> Terminal 
  5. Run the commands: csrutil disable press Enter Key then type reboot.

Sonntag, 15. Juli 2018

Sony Webcam SSL Support: how to create openssl P12 PKCS out of crt

In case you have a crt certificate including your key and you need a p12

openssl pkcs12 -export -in hereyourcertificate.crt -inkey hereyourkey.key -out yournewp12certificate.p12

Montag, 25. Juni 2018

Exchange Server 2013: how to display version numer

1. Open ExchangeManagementShell
2. Get-ExchangeServer | Format-List Name, Edition, AdminDisplayVersion

Mittwoch, 25. April 2018

OTRS 6.0

Some quick hints on OTRS 6.0

MailQueue

cd /opt/otrs/bin
./otrs.Console.pl Maint::Email::MailQueue --list

MailQueue - Delete a specific Mail


./otrs.Console.pl Maint::Email::MailQueue --delete --filter ID::28


Mittwoch, 18. April 2018

Sudo

You want to get ROOT the easy way?
Put your user in group sudo:

sudo usermod -aG sudo USERNAME

visudo

%sudo  ALL=(ALL) NOPASSWD:ALL

Freitag, 30. März 2018

Exchange Problems to receive mails on Port 25

In case your Exchange is not reliable receiving Mails on Port 25.

Open ExchangeManagementConsole

Get-ReceiveConnector | Where-Object {$_.Bindings -like „*:25“} | fl Identity, Bindings, TransportRole

More than one entry with same Port as  Hubtransport?

Ok - map the Hubtransport to the correct TransportRole like:

Set-ReceiveConnector "Name of Your Hubtransport Relais" –TransportRole FrontEndTransport

Problem fixed!

Sonntag, 4. Februar 2018

Pyzor Error File "/usr/bin/pyzor", line 8

In case you get this error:

File "/usr/bin/pyzor", line 8, in <module>
    pyzor.client.run()
  File "/usr/lib/python2.6/site-packages/pyzor/client.py", line 1022, in run
    ExecCall().run()
  File "/usr/lib/python2.6/site-packages/pyzor/client.py", line 205, in run
    if not apply(dispatch, (self, args)):
  File "/usr/lib/python2.6/site-packages/pyzor/client.py", line 239, in ping
    runner.run(server, (server,))
  File "/usr/lib/python2.6/site-packages/pyzor/client.py", line 813, in run
    response = apply(self.routine, varargs, kwargs)
  File "/usr/lib/python2.6/site-packages/pyzor/client.py", line 38, in ping
    self.send(msg, address)
  File "/usr/lib/python2.6/site-packages/pyzor/client.py", line 72, in send
    self.socket.sendto(mac_msg_str, 0, address)

socket.error: [Errno 1] Operation not permitted



Just open your firewall:

iptables -I OUTPUT -m tcp -p tcp --dport 24441 -j ACCEPT
iptables -I OUTPUT -m udp -p udp --dport 24441 -j ACCEPT

Amavis Razor Error check failed: Connection refused razor2 ... line 330

In case you see the error message:

razor2: razor2 check failed: Connection refused razor2: razor2 had unknown error during get_server_info at /usr/share/perl5/vendor_perl/Mail/SpamAssassin/Plugin/Razor2.pm line 190. at /usr/share/perl5/vendor_perl/Mail/SpamAssassin/Plugin/Razor2.pm line 330.

Just unlock your firewall:

iptables -I OUTPUT -m tcp -p tcp --dport 2703 -j ACCEPT
service iptables save

Dienstag, 16. Januar 2018

Unix LINUX: how to find a string in a file

find /here-your-directory -type f -exec grep here-your-text {} \; -print

sudo find /here-your-directory -type f -print0 | xargs -0 grep here-your-text