1 July 2015

How to Increase Zimbra Attachment/Upload Size Maximum

root@mail:~# telnet localhost 25
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mail.localhost.com ESMTP Postfix
helo mail.localhost.com
250 mail.localhost.com
ehlo mail.localhost.com
250-mail.localhost.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
quit
221 2.0.0 Bye
Connection closed by foreign host.
root@mail:~#




root@mail#su - zimbra
zimbra@mail:~$  postconf message_size_limit
message_size_limit = 10240000
zimbra@mail:~$
zimbra@mail:~$ zmprov mcf zimbraMtaMaxMessageSize 15728640
zimbra@mail:~$ zmprov mcf zimbraFileUploadMaxSize 15728640
zimbra@mail:~$ zmprov mcf zimbraMailContentMaxSize 26214400
zimbra@mail:~$ zmprov modifyConfig zimbraMtaMaxMessageSize 26214400
zimbra@mail:~$ postfix reload
/postfix-script: refreshing the Postfix mail system
zimbra@mail:~$
zimbra@mail:~$  postconf message_size_limit
message_size_limit = 26214400
zimbra@mail:~$

root@mail:~# telnet localhost 25
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mail.localhost.com ESMTP Postfix
ehlo mail.localhost.com
250-mail.localhost.com
250-PIPELINING
250-SIZE 26214400
250-VRFY
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
exit
502 5.5.2 Error: command not recognized
quit
221 2.0.0 Bye
Connection closed by foreign host.
root@mail:~#

12 June 2015

How to Configure apt-get with Proxy on Ubuntu 14.04


apt-get command with Proxy on Ubuntu 14.04

#cd /etc/apt/apt.conf.d

สร้างไฟล์ชื่อ 10proxy:

#sudo vi 10proxy

จากนั้นให้เพิ่มบรรทัดเข้าไป แบบไม่ Authentication

Acquire::http::Proxy "http://yourproxyaddress:proxyport/";

ถ้าเป็น Authentication:

Acquire::http::Proxy "http://username:password@yourproxyaddress:proxyport/";

Example:
root@demo:/# cat /etc/apt/apt.conf.d/10proxy
Acquire::http::Proxy "http://x.x.x.x:8080/";
root@demo:/#

หลังจาก นั้นก็  apt-get update && apt-get upgrade โลด

27 May 2015

เอาพื้นที่ System Reserved คืนมาจากการติดตั้ง Windows

System Reserved ถ้าไม่คิดว่าจะได้ใช้ เอาพื้นที่มาใช้ดีก่าครับ Windows พังก็ลงใหม่แค่นั้น

วิธีการไม่เอา System Reserved ตอนติดตั้ง Windows  (เน้นคลิกและอธิบายตามภาพนะครับ)




19 May 2015

How to Configure TFTP Server on CentOS 6

#yum install -y tftp tftp-server xinetd

#mkdir /Backup
#chmod 777 /backup

#vi /etc/xinetd.d/tftp

# default: off
# description: The tftp server serves files using the trivial file transfer \
#       protocol.  The tftp protocol is often used to boot diskless \
#       workstations, download configuration files to network-aware printers, \
#       and to start the installation process for some operating systems.
service tftp
{
        disable = no
        socket_type             = dgram
        protocol                = udp
        wait                    = yes
        user                    = root
        server                  = /usr/sbin/in.tftpd
        server_args             = -s -c /backup
        per_source              = 11
        cps                     = 100 2
        flags                   = IPv4
        disable                 = no
}

#vi /etc/sysconfig/iptables
-A INPUT -m state --state NEW -m udp -p udp --dport 69 -j ACCEPT

# /etc/init.d/xinetd restart
# /etc/init.d/iptables restart

Verify listen port services xinetd and tftp:
>netstat -tanup

Testing get file through TFTP Server:
#echo “TFTP Hello test” > /backup/test.txt
>tftp 127.0.0.1
>get test.txt


13 May 2015

Get Message 'system failure: exception During auth soap: Receiver' on Zimbra Web Admin

Change SSH Port by default (22) to Other Port on Zimbra Server

root@mail:~# netstat -tnlup |grep 9955
tcp        0      0 0.0.0.0:9955            0.0.0.0:*               LISTEN      26496/sshd
root@mail:~#


Problem:
Get Message Popup

Message: system failure: exception During auth {RemoteManager: zimbra.demo.biz-> zimbra@zimbra.demo.biz: 22} Error code: service.FAILURE Method: [unknown] Details: soap: Receiver

root@mail:~# su - zimbra
zimbra@mail:~$ zmprov gacf | grep Remote
zimbraRemoteManagementCommand: /opt/zimbra/libexec/zmrcd
zimbraRemoteManagementPort: 22
zimbraRemoteManagementPrivateKeyPath: /opt/zimbra/.ssh/zimbra_identity
zimbraRemoteManagementUser: zimbra
zimbra@mail:~$



Solution:
zimbra@mail:~$ zmprov mcf zimbraRemoteManagementPort 9955

zimbra@mail:~$ zmprov gacf | grep Remote
zimbraRemoteManagementCommand: /opt/zimbra/libexec/zmrcd
zimbraRemoteManagementPort: 9922
zimbraRemoteManagementPrivateKeyPath: /opt/zimbra/.ssh/zimbra_identity
zimbraRemoteManagementUser: zimbra
zimbra@mail:~$


Thanks.


12 May 2015

How to Redirect HTTP to HTTPS Zimbra 8 Web Client Sign in.

Login to Zimbra Mail Server.

#su zimbra
zimbra@mail:/root$ zmtlsctl redirect
zimbra@mail:/root$ zmcontrol restart


Checking Mode
zimbra@mail:/root$ zmprov gs `zmhostname` | grep MailMode
zimbraMailMode: redirect
zimbra@mail:/root$


More info:  https://wiki.zimbra.com/wiki/CLI_zmtlsctl_to_set_Web_Server_Mode

Thanks.