Pages

Tuesday, October 9, 2012

Juniper Command (snmp) Tips


=================
Tayab@M7i> show configuration | display set
set version 11.4R1.14

===============================

set snmp location NOC
set snmp contact "tayab@ictsolutionsforall.com"
set snmp community public authorization read-only
set snmp community public clients 192.168.0.0/16
set snmp community public clients 0.0.0.0/0 restrict
set snmp health-monitor
set routing-options static route 0.0.0.0/0 next-hop 192.168.10.2



=======================
Delete rules

delete set snmp community public authorization read-only
commit

Postfix/ Squirrelmail/ Webmail Time, MailBOX, related Tips


============

Time problem in webmail/ squirrelmail time problem / mail transfer time is wrong

vi /etc/php.ini
date.timezone = "Asia/Dhaka"


======================
If mail box not show in squirrelmail webmail

 vi /etc/dovecot.conf
  
 mail_location = mbox:~/mail:INBOX=/var/mail/%u

# mail_location = maildir:~/Maildir

/etc/init.d/dovecot restart

#### /usr/share/squirrelmail/config/conf.pl
SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Server Settings

General
-------
1.  Domain                 : tayabkhan.com
2.  Invert Time            : false
3.  Sendmail or SMTP       : SMTP

A.  Update IMAP Settings   : localhost:143 (uw)
B.  Update SMTP Settings   : localhost:25

R   Return to Main Menu
C   Turn color on
S   Save data
Q   Quit

===========================================


Time problem in webmail/ squirrelmail time problem / mail transfer time is wrong

vi /etc/php.ini
date.timezone = "Asia/Dhaka"


=================================
SquirrelMail
==========================


First find all email from /home in passwd_new file
cat passwd_new | awk -F: {'print "chown -R "$1":"$1"/home/"$1"/mail"'} > chown_change
chmod 755 chown_change 
then ./chown_change 

Squirrelmail location change


<VirtualHost *:80>
 DocumentRoot /usr/share/squirrelmail/
 ServerName mail.synergiesbangladesh.com
</VirtualHost>

=================
IF error message shows "(unknown mail transport error)"

Just copy the /etc/services file to /var/spool/postfix/etc/
And restart the postfix. 

 /var/spool/postfix/etc/resolv.conf and /etc/resolv.conf are equal:


========================