Thursday, October 29, 2009

Postfix errors and testing

Postfix error :

 #postfix start
 #postfix stop

 if it says postfix is not running

 check the application at port no 25 and stop that application (might be  sendmail) and try once again.

 #postfix start
 #postfix stop

If postfix stops .Then its working.



For errors check this log file check /var/log/maillog

Send mail using postfix testing :
From your desktop try this

[root@mail ~]# telnet [proxyservername or IP] smtp

220 xdprox.amthi ESMTP Postfix
Escape character is '^]'.
220 mail.acme.local ESMTP Postfix
ehlo host
250-mail.acme.local
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
mail from: xxxx@amar.com
250 2.1.0 Ok
rcpt to: yyyy@amar.com
250 2.1.5 Ok
data
354 End data with .TEST MESSAGE
.  
250 2.0.0 Ok: queued as 9729067C17
quit
221 2.0.0 Bye
Connection closed by foreign host.
[root@mail ~]#

**** CHECK DOT AFTER TEST MESSAGE

Now check your mail id yyyy@amar.com

If you received your test message , you have successfully installed and configured your postfix .

Simple setup for sending mail from outlook express with proxy server setup

If you want to setup your own proxy server and mail relay server.Here I give you basic setup to send mail using outlook express ,configure squid first  http://arun-itadmin.blogspot.com/search/label/squid 

http://ftp.sanguine.net/pub/postfix/official/2.5/RPMS-rhel5-i386/ go to this site and download  your postfix version and install.

configuration  /etc/postfix/main.cf:  Add or modify this parameters.

inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
home_mailbox = Maildir/
mydomain=[your domainname]
# if it comes under C class network.Add all your sites subnet details here.
mynetworks=192.168.28.0/24,192.168.27.0/24 

then start postfix 
#postfix start 

Configuration outlook express :

Proxy server IP :192.168.3.8
configure internet accounts in outlook express :
servers

 incoming mail server   192.168.3.8
 outgoing mail server    192.168.3.8

outgoing mail server 
check -  my server required authentication

Leave all other parametes to its default values.

Now you can send mail from outlook express thro postfix. 

fetchmail - collect mail from yahoo mail server and view using mail

create file at /home/[username]/.fetchmail.rc
and Add

poll   pop.bizmail.yahoo.com with proto pop3
user ***@yahoo.com 

Dont use  user root here.create another user for fetchmail.

then use mail or mutt to check your mails.

To view new mails : mail -u [username]
To view all mails    : mail -u [username] -f

Monday, October 19, 2009

create MS office documents using Open office

use openoffice 2 and above and create a word document or a spread sheet.At the time of saving select from save as type from ODF text document to microsoft doc (97,2000).And then select "keep current format"  from the dialog box which would display after saving. Just you created MS word document useing Open office.

SureTrak: Insert an Object or a Picture

Unable to upload files into wordpress

check settings -- > misscellaneous -- > upload in this folder

change default location wp-content/uploads to exact location

it may be

ex :  /var/www/html/wp-content/uploads

Wordpress - restricting upload file size

change the upload_max_filesize parameter value in /etc/php.ini file.

squid proxy configuration

Configuring squid in redhat linux 5.1 / Centos

Step 1:
Add [host ip ] [host name] into file
ex: 192.162.5.25   proxyser
file /etc/hosts
Step 2:
change file /etc/sysconfig/network
hostname = [enter your hostname]
gateway=[enter your gateway IP] [if available]
step 3 :
file /etc/squid/squid-conf
visible_hostname=amarprox
http_port= 8080
cache_dir ufs /var/spool/squid 1000 16 256
cache_access_log /var/log/squid.log


set write permission to directory /var/log

Place this access control before all other access control lists.


acl intranet src 192.162.5.0/24  {this will allow systems under this IP region would use this proxy server}
http_access allow intranet

Step 4:

file /etc/resolv.conf
add nameservers
ex:
203.145.1.8
203.145.152
Step 5
Configure client with this proxy system ip and access ur internet.