[CentOS] BIND Setup Issue

2013-03-10 Thread Austin Einter
Dear All
I have a CentOS 6.3 machine. I am trying to setup DNS BIND setup in that
machine. It is having a static global IP. I have done lot of reading ,
google search and tried all possible option, but still not able to resolve
the issue.

My named.conf looks as below.

*
*
*
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//

options {
listen-on port 53 { 127.0.0.1; 10.0.0.1; };
listen-on-v6 port 53 { ::1; };
directory   "/var/named";
dump-file   "/var/named/data/cache_dump.db";
query-source address * port 53;
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { localhost; 10.0.0.1/24; 10.0.0.254/24; };
recursion yes;
dnssec-enable yes;
dnssec-validation yes;
dnssec-lookaside auto;

/* Path to ISC DLV key */
bindkeys-file "/etc/named.iscdlv.key";

managed-keys-directory "/var/named/dynamic";
};

logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};

zone "." IN {
type hint;
file "named.ca";
};zone "netcloudjobs.com" {
type master;
file "netcloudjobs.com.fwd";
allow-update { none; };
};

zone "189.201.173.in-addr.arpa"  {
type master;
file "netcloudjobs.com.rev";
allow-update { none; };
};

include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";
*
Next my forward zone file looks as below
*
$TTL 86400
@   IN  SOA ns1.netcloudjobs.com. root.netcloudjobs.com. (
2021071001  ;Serial
3600;Refresh
1800;Retry
604800  ;Expire
86400   ;Minimum TTL
)

@   IN  NS  ns1.netcloudjobs.com.
@   IN  NS  ns2.netcloudjobs.com.

ns1 IN  A   173.201.189.43
ns2 IN  A   173.201.189.43
*
And my reverse zone file looks as


*$TTL 86400
@  IN SOA ns1.netcloudjobs.com. root.netcloudjobs.com. (
2021071001  ;Serial
3600;Refresh
1800;Retry
604800  ;Expire
86400   ;Minimum TTL
)

@   IN  NS  ns1.netcloudjobs.com.
@   IN  NS  ns2.netcloudjobs.com.
ns1 IN  A   173.201.189.43
ns2 IN  A   173.201.189.43
43  IN  PTR ns1.netcloudjobs.com.
44  IN  PTR ns2.netcloudjobs.com.
*
I hope I am doing something wrong with configuration. I have done this
since more than 60 hours. Still I am not able to resolve
ns1.netcloudjobs.com.

Can somebody help here.

Best Regards
Austin
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] BIND Setup Issue

2013-03-10 Thread Austin Einter
Dear All
My resolv.conf looks as below

search netcloudjobs.com
nameserver 10.0.0.1
nameserver 8.8.8.8
nameserver 127.0.0.1

I do not have any error logs.

I just did one modification in named.conf.

*allow-query { localhost; 10.0.0.1/24; 10.0.0.254/24; };

*
*Line I modified to

*
*allow-query { any; };*


With this change, now I am able to ping to ns1.netcloudjobs.com . Problem
is 50% resolved.

Kindly guide me if allow-query any is right thing to do or not.

Next, how do I make sure www.netcloudjobs.com should resolve to my IP.

In my BIND server the, the command "dig www.netcloudjobs.com" gives below
output.

[root@ip-173-201-189-43 named]#
[root@ip-173-201-189-43 named]#
[root@ip-173-201-189-43 named]# dig www.netcloudjobs.com

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.10.rc1.el6_3.2 <<>> www.netcloudjobs.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 16461
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;www.netcloudjobs.com.  IN  A

;; ANSWER SECTION:
www.netcloudjobs.com.   86400   IN  A   173.201.189.43

;; AUTHORITY SECTION:
netcloudjobs.com.   86400   IN  NS  ns2.netcloudjobs.com.
netcloudjobs.com.   86400   IN  NS  ns1.netcloudjobs.com.

;; ADDITIONAL SECTION:
ns1.netcloudjobs.com.   86400   IN  A   173.201.189.43
ns2.netcloudjobs.com.   86400   IN  A   173.201.189.43

;; Query time: 0 msec
;; SERVER: 10.0.0.1#53(10.0.0.1)
;; WHEN: Sun Mar 10 06:04:00 2013
;; MSG SIZE  rcvd: 122

[root@ip-173-201-189-43 named]#

Can I assume that my configuration is proper? As just now I am able to ping
ns1.netcloudjobs.com from remote machines, so pinging to
www.netcloudjobs.com will take some more time.

Please guide me...

Austin




On Sun, Mar 10, 2013 at 5:36 PM, Reindl Harald wrote:

>
>
> Am 10.03.2013 12:57, schrieb Austin Einter:
>
> first why do you not post you error-messages
> inputs, outputs or whatever instead only your config?
>
>
> > And my reverse zone file looks as
> >
> > *$TTL 86400
> > @  IN SOA ns1.netcloudjobs.com. root.netcloudjobs.com. (
> > 2021071001  ;Serial
> > 3600;Refresh
> > 1800;Retry
> > 604800  ;Expire
> > 86400   ;Minimum TTL
> > )
> >
> > @   IN  NS  ns1.netcloudjobs.com.
> > @   IN  NS  ns2.netcloudjobs.com.
> > ns1 IN  A   173.201.189.43
> > ns2 IN  A   173.201.189.43
> > 43  IN  PTR ns1.netcloudjobs.com.
> > 44  IN  PTR ns2.netcloudjobs.com.
>
> why does you PTR-file contain A-records?
>
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] BIND Setup Issue

2013-03-10 Thread Austin Einter
My registrar is Godad.com, looks they have registered nameservers
ns1.netcloudjobs.com and ns2.netcloudjobs.com
Now I am able to resolve to ns1.netcloudjobs.com
I have only 1 IP address that x.x.x.43 , so I can not use x.x.x.44

>From my dedicated server, if I ping to www.netcloudjobs.com , it says

*[root@ip-173-201-189-43 named]# ping www.netcloudjobs.com
PING www.netcloudjobs.com (173.201.189.43) 56(84) bytes of data.
^C
--- www.netcloudjobs.com ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2217ms*

But if ping to netcloudjobs.com, it says

[root@ip-173-201-189-43 named]#

*[root@ip-173-201-189-43 named]# ping netcloudjobs.com
ping: unknown host netcloudjobs.com
[root@ip-173-201-189-43 named]#
*
My corresponding zone file looks as below
*
*
*[root@ip-173-201-189-43 named]# vi netcloudjobs.com.fwd
$TTL 86400
@   IN  SOA ns1.netcloudjobs.com. root.netcloudjobs.com. (
2041071002  ;Serial
3600;Refresh
1800;Retry
604800  ;Expire
86400   ;Minimum TTL
)

@   IN  NS  ns1.netcloudjobs.com.
@   IN  NS  ns2.netcloudjobs.com.
@   IN  MX   0  mail.netcloudjobs.com.

ns1 IN  A   173.201.189.43
ns2 IN  A   173.201.189.43
www IN  A   173.201.189.43
mailIN  A   173.201.189.43
~
*
 Can somebody kindly tell me what I need to do so that, from my dedicated
server I can ping to netcloudjobs.com

Best regards
Austin





On Sun, Mar 10, 2013 at 6:47 PM, Robert Moskowitz wrote:

>
> On 03/10/2013 07:57 AM, Austin Einter wrote:
>
>> Dear All
>> I have a CentOS 6.3 machine. I am trying to setup DNS BIND setup in that
>> machine. It is having a static global IP. I have done lot of reading ,
>> google search and tried all possible option, but still not able to resolve
>> the issue.
>>
>> My named.conf looks as below.
>>
>> *
>> *
>>
>> *
>> // named.conf
>> //
>> // Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
>> // server as a caching only nameserver (as a localhost DNS resolver only).
>> //
>> // See /usr/share/doc/bind*/sample/ for example named configuration files.
>> //
>>
>> options {
>>  listen-on port 53 { 127.0.0.1; 10.0.0.1; };
>>  listen-on-v6 port 53 { ::1; };
>>  directory   "/var/named";
>>  dump-file   "/var/named/data/cache_dump.**db";
>>  query-source address * port 53;
>>  statistics-file "/var/named/data/named_stats.**txt";
>>  memstatistics-file "/var/named/data/named_mem_**stats.txt";
>>  allow-query { localhost; 10.0.0.1/24; 10.0.0.254/24; };
>>  recursion yes;
>>  dnssec-enable yes;
>>  dnssec-validation yes;
>>  dnssec-lookaside auto;
>>
>>  /* Path to ISC DLV key */
>>  bindkeys-file "/etc/named.iscdlv.key";
>>
>>  managed-keys-directory "/var/named/dynamic";
>> };
>>
>> logging {
>>  channel default_debug {
>>  file "data/named.run";
>>  severity dynamic;
>>  };
>> };
>>
>> zone "." IN {
>>  type hint;
>>  file "named.ca";
>> };zone "netcloudjobs.com" {
>>  type master;
>>  file "netcloudjobs.com.fwd";
>>  allow-update { none; };
>> };
>>
>
> Who is your registrar for netcloudjobs.com and have they listed your two
> servers and their IP addresses?
>
>
>  zone "189.201.173.in-addr.arpa"  {
>>  type master;
>>  file "netcloudjobs.com.rev";
>>  allow-update { none; };
>> };
>>
>> include "/etc/named.rfc1912.zones";
>> include "/etc/named.root.key";
>> *
>> Next my forward zone file looks as below
>> *
>> $TTL 86400
>> @   IN  SOA ns1.netcloudjobs.com. root.netcloudjobs.com.
>> (
>>  2021071001  ;Serial
>>  3600;Refresh
>>  1800;Retry
>>  604800  ;Expire
>>  86400   ;Minimum TTL
>> )
>>
>> @   IN  NS  ns1.netcloudjobs.com.
>> @   IN  NS  ns2.netcloudjobs.com.
>>
>> ns1 IN  A   173.201.189.43
>> ns2 IN  A   173.201.189.43
>>
>
> .44?
>
>  *
>> And my reverse zone file looks as
>>
>>
>

Re: [CentOS] BIND Setup Issue

2013-03-10 Thread Austin Einter
Dear All
Thanks for great support.

Now the issue is completely resolved.

I had to add "netcloudjob.com . IN A
173.201.189.43"  line in forward zone file. (As suggested by Arzek)perly.

Now from remote locations we are able to ping to www.netcloudjobs.com and
netcloudjobs.com .

Thanks a lot all.

Best Regards
Austin









On Mon, Mar 11, 2013 at 5:05 AM, Tilman Schmidt <
t.schm...@phoenixsoftware.de> wrote:

> Am 10.03.2013 16:34, schrieb Peter Eckel:
> > On 10.03.2013, at 16:14, Arek Czereszewski  wrote:
> >
> >> Put this in a zone file:
> >> netcloudjob.com. IN A 173.201.189.43
> >>
> >> Just after a MX line
> >
> > Austin already did that, and it doesn't help.
>
> Yes it does. The name can now be resolved.
>
> > The name can already be resolved,
>
> Only since he added the A RR.
>
> > and the address cannot be pinged either. I checked before I replied.
>
> That's a separate problem, and has nothing to do with BIND.
> What's more, given the complete lack of information about the network
> topology and involved components, we cannot even guess what may be the
> issue here. Routing? Firewall? NAT? Hardware? Everything's possible.
>
> --
> Tilman Schmidt
> Phoenix Software GmbH
> Bonn, Germany
>
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Postfix setup

2013-03-10 Thread Austin Einter
Dear All
I am planning to setup mail server for my domain.

Which one is preferred postfix or sendmail.


I came across a link *
http://ostechnix.wordpress.com/2013/02/08/setup-mail-server-using-postfixdovecotsquirrelmail-in-centosrhelscientific-linux-6-3-step-by-step/
* for postfix mail setup.

It says,
Prerequisites:

   - The mail server should contain a valid MX record in the DNS server.
   Navigate to this link how to setup DNS
server
   .
   - Firewall and SELinux should be disabled.


I have disabled iptables as my m/c is behind the firewall.

It says I need to disable firewall. Is it really required. Kindly let me
know.

Best Regards
Austin
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] SSL Certificate

2013-03-11 Thread Austin Einter
Dear All
This is my continuation of postfix setup.
Following link
http://campworld.net/thewiki/pmwiki.php/LinuxServersCentOS/Cent6VirtMailServerfor
postfix setup.

At one stage it says,
Configuring The Server Setup SSL Certificate

Now generate an SSL certificate for postfix and dovecot to have TLS
support. Replace mail.example.com with your server hostname.
> genkey --days 3650 mail.example.com


My doubt is ,

1. I have to install a SSL certificate for for web server (apache case). I
am planning to purchase a SSL certificate and put it. The same certificate
will be useful for both web server and mail server OR both web and mail
server needs to separate separate SSL certificates.


2. I hope for web server case, one must purchase a ssl certificate and use
it (so that browsers will work smoothly without complain). For mail server
can one use locally generated ssl certificate?


Kindly let me know.


Best Regards

Austin
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] SSL Certificate

2013-03-11 Thread Austin Einter
Thanks a lot Mike.
-Austin


On Tue, Mar 12, 2013 at 6:30 AM, Mike McCarthy  wrote:

> For the WEB server it makes sens to have a certificate that is signed by
> a known CA. However, for postfix a self signed cert is just fine. When a
> user first connects with TLS, the mail client will complain. But with
> most mail clients (I use Thunderbird), you can get the certificate and
> store a permanent exception so it will never complain again. Other
> servers that make connections to deliver mail with STARTTLS generally
> don't care.
>
> Mike
>
> On 03/11/2013 07:05 PM, Austin Einter wrote:
> > Dear All
> > This is my continuation of postfix setup.
> > Following link
> >
> http://campworld.net/thewiki/pmwiki.php/LinuxServersCentOS/Cent6VirtMailServerfor
> > postfix setup.
> >
> > At one stage it says,
> > Configuring The Server Setup SSL Certificate
> >
> > Now generate an SSL certificate for postfix and dovecot to have TLS
> > support. Replace mail.example.com with your server hostname.
> >> genkey --days 3650 mail.example.com
> >
> > My doubt is ,
> >
> > 1. I have to install a SSL certificate for for web server (apache case).
> I
> > am planning to purchase a SSL certificate and put it. The same
> certificate
> > will be useful for both web server and mail server OR both web and mail
> > server needs to separate separate SSL certificates.
> >
> >
> > 2. I hope for web server case, one must purchase a ssl certificate and
> use
> > it (so that browsers will work smoothly without complain). For mail
> server
> > can one use locally generated ssl certificate?
> >
> >
> > Kindly let me know.
> >
> >
> > Best Regards
> >
> > Austin
> > ___
> > CentOS mailing list
> > CentOS@centos.org
> > http://lists.centos.org/mailman/listinfo/centos
>
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Postfix setup

2013-03-11 Thread Austin Einter
Dear Robert Moskowitz
The link *
http://campworld.net/thewiki/pmwiki.php/LinuxServersCentOS/Cent6VirtMailServer
* you suggested is working great for me so far.

At one point it says

Configuring Postfix

Here we go with more config files. You'll have to be sure to change some
settings to match your host. The config files will have sections commented
out. Don't worry about it. These sections are for spam/virus/sympa
configuration. Just copy and past to create the config files. What ever you
see here replaces what already exists.

The main postfix config files.
/etc/postfix/main.cf

When I checked, I did not find any folder postfix in my /etc path. Even I
searched the whole machine, I did not get main.cf anywhere.
Does it mean that I have done some mistake somewhere in earlier steps.

Even, in main.cf file given in above link has an entry as below.

*daemon_directory = /usr/libexec/postfix*

But in my machine I do not see any postfix folder in path /usr/libexec.
However I found /var/lib/postfix folder. So should I use
/var/lib/postfix instead of */usr/libexec/postfix*.

Please guide me.

-Austin



On Mon, Mar 11, 2013 at 9:13 AM, Robert Moskowitz wrote:

>
> On 03/10/2013 10:54 PM, Austin Einter wrote:
>
>> Dear All
>> I am planning to setup mail server for my domain.
>>
>> Which one is preferred postfix or sendmail.
>>
>
> I switched to postfix 3 years ago, and never looked back.
>
>  I came across a link *
>> http://ostechnix.wordpress.**com/2013/02/08/setup-mail-**server-using-**
>> postfixdovecotsquirrelmail-in-**centosrhelscientific-linux-6-**
>> 3-step-by-step/<http://ostechnix.wordpress.com/2013/02/08/setup-mail-server-using-postfixdovecotsquirrelmail-in-centosrhelscientific-linux-6-3-step-by-step/>
>> * for postfix mail setup.
>>
>
> Here are two very good links:
>
> http://campworld.net/thewiki/**pmwiki.php/LinuxServersCentOS/**
> Cent6VirtMailServer<http://campworld.net/thewiki/pmwiki.php/LinuxServersCentOS/Cent6VirtMailServer>
> http://wiki.centos.org/HowTos/**Amavisd<http://wiki.centos.org/HowTos/Amavisd>
>
> I have used both as guideposts, and found problems with both, as people
> here and on related lists will attest to be the questions resulting by
> following other's instructions lead to strangeness.  I really suggest that
> you step slowly into this.  There is a lot to do to get all the pieces
> together.  A lot you need to understand with each package.  And then things
> not even covered, but you are expected to know when setting up a server.
>  Like php.conf, you need to set your timezone.  None of the tutorials for
> things like roundcube tell you this; you are expected to know about using
> php.
>
>
>  It says,
>> Prerequisites:
>>
>> - The mail server should contain a valid MX record in the DNS server.
>>
>> Navigate to this link how to setup DNS
>> server<http://ostechnix.**wordpress.com/2013/01/25/**
>> setup-dns-server-step-by-step-**in-centos-6-3-rhel-6-3-**
>> scientific-linux-6-3-3/<http://ostechnix.wordpress.com/2013/01/25/setup-dns-server-step-by-step-in-centos-6-3-rhel-6-3-scientific-linux-6-3-3/>
>> >
>> .
>> - Firewall and SELinux should be disabled.
>>
>
> You should never disable the server firewall. It is easy to figure out
> what ports are necessary and open only those.  As far as selunix, this is
> hard.  I have been given a set of scripts to work out what to enable for
> selinux, and this is still a work in progress for me.
>
>
>  I have disabled iptables as my m/c is behind the firewall.
>>
>
> So what?  Read the press about "Advance Persistant Threats".  Only open
> what is necessary.
>
>
>  It says I need to disable firewall. Is it really required. Kindly let me
>> know.
>>
>
> Figure out the ports you need.  This is not hard.  It is easy compared to
> the rest you will have to learn.
>
> I have the wounds, even with my kevlar suit.  :)
>
> BTW, I am putting together my own blog on what I am doing.  I have to work
> out a few pieces to get my mysql passwords out of the scripts I use, but I
> have learned a lot over the past few months, and really should share.  some.
>
>
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Postmap command

2013-03-11 Thread Austin Einter
Dear All
While setting up postfix, at one point I need to do

postmap /etc/postfix/transport

But I get the output as

*bash: postmap: command not found*

I was just wondering is it something I need to install separately.

Thanks
Austin
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Postmap command

2013-03-11 Thread Austin Einter
I am following the link
http://campworld.net/thewiki/pmwiki.php/LinuxServersCentOS/Cent6VirtMailServerfor
postfix setup. Looks it does not say anywhere yum install postfix. Do
I
need to do "yum install postfix" additionally including steps mentioned in
above link.., bit confused...

Regards
Austin



On Tue, Mar 12, 2013 at 9:26 AM, John R. Dennison  wrote:

> On Tue, Mar 12, 2013 at 04:42:14PM +1300, Clint Dilks wrote:
> >
> > or have you compiled postfix yourself ?
>
> Or perhaps it's an issue of incorrect PATH, generally caused by someone
> not properly becoming root on an EL box.
>
> http://wiki.centos.org/TipsAndTricks/BecomingRoot
>
>
>
>
>
>
> John
> --
> Life is like a game of cards.  The hand that is dealt you represents
> determinism; the way you play it is free will.
>
> -- Jawaharlal Nehru
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Postfix setup

2013-03-12 Thread Austin Einter
Dear All
I have got partial success with postfix setup. So far I am able to do

1. Access the postfix admin
2. Was able to login to postfix admin
3. Created one more admin account
4. From newly created admin account sent a mail to my gmail account, and I
received that mail.
5. I am able to add a domain
6. I was able to add a virtual mailbox

However many things are NOT working. Things that I have observed NOT
working are

1. Not able to login to mailbox through roundcube
In link https://www.example.com/webmail/ (after security exception
confirmation) , I entered the u...@example.com and password.
It says "*Connection to storage server failed.*".

Any idea why it happen?

I checked my /home/vmail path. I hope here there will be individual
folder/file for individual mailboxes (not sure though). Did not see any
file/folder as of now.

Kindly guide why it gives "*Connection to storage server failed.*".

Thanks
Austin











On Wed, Mar 13, 2013 at 6:54 AM, SilverTip257 wrote:

> On Tue, Mar 12, 2013 at 10:02 AM, James B. Byrne  >wrote:
>
> >
> > On Mon, March 11, 2013 16:56, Craig White wrote:
> >
> > >
> > > 
> > > develop good, consistent habits… postfix or whatever config files you
> > > edit, backup the distribution's version of the config file first
> > > before you ever edit…
> > >
> > > cp main.cf main.cf-dist
> > >
> >
> > Alternatively:
> >
> > yum install postfix
> > yum install git
> > cd /etc/posfix
> > git init
> > git add ./
> > git commit -m"Postfix config file initial commit"
> >
> > Now all the default config files are stored as hashed blobs in
> > /etc/postfix/.git and you can modify them in place.  Once you are
> >
>
> Nice.  git-r-done  ;)
>
> I've been rather content with using RCS (as opposed to other version
> control systems) on the individual boxes.
>
> Version control of some sort is a must.
> And backups ... multiple backups ...  :D
>
>
> > satisfied with your latest set of changes do this (always issue git
> > commands from the repository root, in this case /etc/postfix):
> >
> > git add ./  or  git add 
> > git commit -m"explanation of why the changes were made"
> >
> > If you screw up and need to get back what was there originally do this:
> >
> > git checkout 
> >
> > If you want to see what was different between this config and the
> > previous version do this:
> >
> > git diff 
> >
> > You can compare any previous version of any tracked file with any
> > other version of the same file by specifying the commit ids.
> >
> > git diff .. -- 
> >
> > Git also provides a blow by blow history of all changes applied to a
> > file and what logon id made them.
> >
> > git blame .. -- 
> >
> > See http://git-scm.com/ for details on what git is and how to use it.
> > I use git for version control of system config files on all my uptime
> > sensitive servers.  It makes getting back to a working config trivial
> > when things turn ugly following a change.
> >
> > --
> > ***  E-Mail is NOT a SECURE channel  ***
> > James B. Byrnemailto:byrn...@harte-lyne.ca
> > Harte & Lyne Limited  http://www.harte-lyne.ca
> > 9 Brockley Drive  vox: +1 905 561 1241
> > Hamilton, Ontario fax: +1 905 561 0757
> > Canada  L8E 3C3
> >
> > ___
> > CentOS mailing list
> > CentOS@centos.org
> > http://lists.centos.org/mailman/listinfo/centos
> >
>
>
>
> --
> ---~~.~~---
> Mike
> //  SilverTip257  //
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Postfix setup

2013-03-12 Thread Austin Einter
Dear All
I am able to send receive mail properly with use of roundcube.

Thanks a lot for all your support.

The last thing I did was started dovecot service, then roundcuble was able
to work properly.

Next, I will look into security aspect, spam filtering etc etc. Will start
a new thread for that.

Many thanks for great tips to me.

Best Regards
Austin







On Mon, Mar 11, 2013 at 8:24 AM, Austin Einter wrote:

> Dear All
> I am planning to setup mail server for my domain.
>
> Which one is preferred postfix or sendmail.
>
>
> I came across a link *
> http://ostechnix.wordpress.com/2013/02/08/setup-mail-server-using-postfixdovecotsquirrelmail-in-centosrhelscientific-linux-6-3-step-by-step/
> * for postfix mail setup.
>
> It says,
> Prerequisites:
>
>- The mail server should contain a valid MX record in the DNS server.
>Navigate to this link how to setup DNS 
> server<http://ostechnix.wordpress.com/2013/01/25/setup-dns-server-step-by-step-in-centos-6-3-rhel-6-3-scientific-linux-6-3-3/>
>.
>- Firewall and SELinux should be disabled.
>
>
> I have disabled iptables as my m/c is behind the firewall.
>
> It says I need to disable firewall. Is it really required. Kindly let me
> know.
>
> Best Regards
> Austin
>
>
>
>
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Postfix (Roundcube client) sends mail, but not able to receive

2013-03-13 Thread Austin Einter
Dear All
Recently I just setup postfix, dovecot, roundcube etc in a dedicated server.

>From roundcuble, I am able to send mail to my gmail account.

But from my gmail account, when sent mail to my mail id, that I setup
recently, I do not see that email in roundcuble inbox. Neither that mail
bounced back in gmail. Not sure, how do I debug this.

Kindly let me know how should I proceed to fix this issue.

Thanks
Austin
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Postfix (Roundcube client) sends mail, but not able to receive

2013-03-13 Thread Austin Einter
Dear Les Mikesell
I  executed the steps you have advised.

1. MX Record Check
[root@ip-173-201-189-43 necs14]#
[root@ip-173-201-189-43 necs14]# dig -t MX netcloudjobs.com

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.10.rc1.el6_3.2 <<>> -t MX
netcloudjobs.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 28659
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 3
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;netcloudjobs.com.  IN  MX

;; ANSWER SECTION:
netcloudjobs.com.   86400   IN  MX  0 mail.netcloudjobs.com.

;; AUTHORITY SECTION:
netcloudjobs.com.   86400   IN  NS  ns2.netcloudjobs.com.
netcloudjobs.com.   86400   IN  NS  ns1.netcloudjobs.com.

;; ADDITIONAL SECTION:
mail.netcloudjobs.com.  86400   IN  A   173.201.189.43
ns1.netcloudjobs.com.   86400   IN  A   173.201.189.43
ns2.netcloudjobs.com.   86400   IN  A   173.201.189.43

;; Query time: 0 msec
;; SERVER: 10.0.0.1#53(10.0.0.1)
;; WHEN: Wed Mar 13 15:41:00 2013
;; MSG SIZE  rcvd: 139

[root@ip-173-201-189-43 necs14]# clear
[root@ip-173-201-189-43 necs14]#


2. A record check
[root@ip-173-201-189-43 necs14]# dig mail.netcloudjobs.com

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.10.rc1.el6_3.2 <<>> mail.netcloudjobs.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5672
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;mail.netcloudjobs.com. IN  A

;; ANSWER SECTION:
mail.netcloudjobs.com.  86400   IN  A   173.201.189.43

;; AUTHORITY SECTION:
netcloudjobs.com.   86400   IN  NS  ns1.netcloudjobs.com.
netcloudjobs.com.   86400   IN  NS  ns2.netcloudjobs.com.

;; ADDITIONAL SECTION:
ns1.netcloudjobs.com.   86400   IN  A   173.201.189.43
ns2.netcloudjobs.com.   86400   IN  A   173.201.189.43

;; Query time: 0 msec
;; SERVER: 10.0.0.1#53(10.0.0.1)
;; WHEN: Wed Mar 13 15:42:19 2013
;; MSG SIZE  rcvd: 123

[root@ip-173-201-189-43 necs14]#

I see in my firewall telenet/25 is blocked.
However smtp/25 is allowed.


Not sure how do I debug..., Any idea...

-Austin



On Wed, Mar 13, 2013 at 9:52 PM, Les Mikesell  wrote:

> On Wed, Mar 13, 2013 at 10:03 AM, Austin Einter 
> wrote:
> > Dear All
> > Recently I just setup postfix, dovecot, roundcube etc in a dedicated
> server.
> >
> > >From roundcuble, I am able to send mail to my gmail account.
> >
> > But from my gmail account, when sent mail to my mail id, that I setup
> > recently, I do not see that email in roundcuble inbox. Neither that mail
> > bounced back in gmail. Not sure, how do I debug this.
> >
> > Kindly let me know how should I proceed to fix this issue.
>
> First look in your posftix log to see if there has been an attempt to
> deliver it.   If it hasn't gotten that far, make sure that your DNS MX
> record is visible to the rest of the world and also the A record for
> the name in the MX.   Then check that there are no firewalls blocking
> port 25 either from the internet
> service provider or your router, or your host.
>
> These are easiest if you have some outside account where you can:
> dig -t MX your_domain.com
> then
> dig name_of_MX_host
> then
> telnet IP_address 25
> and you should get an SMTP ready prompt from your postfix.
>
> If your domain name did not resolve in DNS at all, gmail should have
> rejected it immediately, but it may resolve to the wrong address or
> the connection may be blocked somewhere and it would retry for a
> while.
>
> --
>Les Mikesell
> lesmikes...@gmail.com
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Postfix (Roundcube client) sends mail, but not able to receive

2013-03-13 Thread Austin Einter
Dear All
I have some basic doubts.

1. Do I need to run postfix like  /etc/init.d/postfix restart
2. What I found it , it is starting.., but when I check immediately ps -ef
| grep postfix, I do not see any postfix process running.
3. Is there any system config file, where I need to mention system need to
run postfix not sendmail
4. If postfix is not running, how am I able to send mails out

5. I read some "make sure port 25 does not relay mails", can somebody
explain more in this regard and how do I stop port 25 relaying mails...

My apologize for novice questions.

Regards
-Austin





On Thu, Mar 14, 2013 at 4:27 AM, Austin Einter wrote:

> Dear Les Mikesell
> I  executed the steps you have advised.
>
> 1. MX Record Check
> [root@ip-173-201-189-43 necs14]#
> [root@ip-173-201-189-43 necs14]# dig -t MX netcloudjobs.com
>
> ; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.10.rc1.el6_3.2 <<>> -t MX
> netcloudjobs.com
> ;; global options: +cmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 28659
> ;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 3
> ;; WARNING: recursion requested but not available
>
> ;; QUESTION SECTION:
> ;netcloudjobs.com.  IN  MX
>
> ;; ANSWER SECTION:
> netcloudjobs.com.   86400   IN  MX  0 mail.netcloudjobs.com.
>
> ;; AUTHORITY SECTION:
> netcloudjobs.com.   86400   IN  NS  ns2.netcloudjobs.com.
> netcloudjobs.com.   86400   IN  NS  ns1.netcloudjobs.com.
>
> ;; ADDITIONAL SECTION:
> mail.netcloudjobs.com.  86400   IN  A   173.201.189.43
> ns1.netcloudjobs.com.   86400   IN  A   173.201.189.43
> ns2.netcloudjobs.com.   86400   IN  A   173.201.189.43
>
> ;; Query time: 0 msec
> ;; SERVER: 10.0.0.1#53(10.0.0.1)
> ;; WHEN: Wed Mar 13 15:41:00 2013
> ;; MSG SIZE  rcvd: 139
>
> [root@ip-173-201-189-43 necs14]# clear
> [root@ip-173-201-189-43 necs14]#
>
>
> 2. A record check
> [root@ip-173-201-189-43 necs14]# dig mail.netcloudjobs.com
>
> ; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.10.rc1.el6_3.2 <<>>
> mail.netcloudjobs.com
> ;; global options: +cmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5672
> ;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2
> ;; WARNING: recursion requested but not available
>
> ;; QUESTION SECTION:
> ;mail.netcloudjobs.com. IN  A
>
> ;; ANSWER SECTION:
> mail.netcloudjobs.com.  86400   IN  A   173.201.189.43
>
> ;; AUTHORITY SECTION:
> netcloudjobs.com.   86400   IN  NS  ns1.netcloudjobs.com.
> netcloudjobs.com.   86400   IN  NS  ns2.netcloudjobs.com.
>
> ;; ADDITIONAL SECTION:
> ns1.netcloudjobs.com.   86400   IN  A   173.201.189.43
> ns2.netcloudjobs.com.   86400   IN  A   173.201.189.43
>
> ;; Query time: 0 msec
> ;; SERVER: 10.0.0.1#53(10.0.0.1)
> ;; WHEN: Wed Mar 13 15:42:19 2013
> ;; MSG SIZE  rcvd: 123
>
> [root@ip-173-201-189-43 necs14]#
>
> I see in my firewall telenet/25 is blocked.
> However smtp/25 is allowed.
>
>
> Not sure how do I debug..., Any idea...
>
> -Austin
>
>
>
> On Wed, Mar 13, 2013 at 9:52 PM, Les Mikesell wrote:
>
>> On Wed, Mar 13, 2013 at 10:03 AM, Austin Einter 
>> wrote:
>> > Dear All
>> > Recently I just setup postfix, dovecot, roundcube etc in a dedicated
>> server.
>> >
>> > >From roundcuble, I am able to send mail to my gmail account.
>> >
>> > But from my gmail account, when sent mail to my mail id, that I setup
>> > recently, I do not see that email in roundcuble inbox. Neither that mail
>> > bounced back in gmail. Not sure, how do I debug this.
>> >
>> > Kindly let me know how should I proceed to fix this issue.
>>
>> First look in your posftix log to see if there has been an attempt to
>> deliver it.   If it hasn't gotten that far, make sure that your DNS MX
>> record is visible to the rest of the world and also the A record for
>> the name in the MX.   Then check that there are no firewalls blocking
>> port 25 either from the internet
>> service provider or your router, or your host.
>>
>> These are easiest if you have some outside account where you can:
>> dig -t MX your_domain.com
>> then
>> dig name_of_MX_host
>> then
>> telnet IP_address 25
>> and you should get an SMTP ready prompt from your postfix.
>>
>> If your domain name did not resolve in DNS at all, gmail should have
>> rejected it immediately, but it may resolve to the wrong address or
>> the connection may be blocked somewhere and it would retry for a
>> while.
>>
>> --
>>Les Mikesell
>> lesmikes...@gmail.com
>> ___
>> CentOS mailing list
>> CentOS@centos.org
>> http://lists.centos.org/mailman/listinfo/centos
>>
>
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Postfix (Roundcube client) sends mail, but not able to receive

2013-03-13 Thread Austin Einter
telnet ipaddress 25 is not working, looks postfix is not running, but i am
clueless why it does not startup even if i do /etc/init.d/postfix restart.
even if it is not running, how i am able to send mails out using
roundcube

-austin


On Thu, Mar 14, 2013 at 4:40 AM, Les Mikesell  wrote:

> On Wed, Mar 13, 2013 at 5:57 PM, Austin Einter 
> wrote:
> >>
> > [root@ip-173-201-189-43 necs14]#
> >
> > I see in my firewall telenet/25 is blocked.
> > However smtp/25 is allowed.
>
> What does that mean?  Both services use TCP.  Telnet is normally port
> 23, SMTP is 25.I suggested 'telnet IP_address 25' as a quick way
> to see if tcp/25 is permiited.
>
> I can't connect now, though, so either postfix is not listening or
> there is a firewall somewhere.
>
> --
>   Les Mikesell
> lesmikes...@gmail.com
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Postfix (Roundcube client) sends mail, but not able to receive

2013-03-13 Thread Austin Einter
Dear Robert
I have a bigger problem.

sendmail was running previously. thats the reason I was able to send mail.
Mow did chkconfig off for sendmail.

Now postfix is running.

Both send/recv not working now.

While sending mail from roundcuble it says "connection to server failed".

regards
-austin









On Thu, Mar 14, 2013 at 4:47 AM, Robert Moskowitz wrote:

>
> On 03/13/2013 07:03 PM, Austin Einter wrote:
>
>> Dear All
>> I have some basic doubts.
>>
>> 1. Do I need to run postfix like  /etc/init.d/postfix restart
>> 2. What I found it , it is starting.., but when I check immediately ps -ef
>> | grep postfix, I do not see any postfix process running.
>>
>
> In Centos we still have the service command, and it works well with
> services like postfix.  So you start, restart, and stop with:
>
> service postfix start/stop/restart/status
>
> Note that at some point, probably Centos 7, 'service' is going away.
>
> Oh, and:
>
> chkconfig --list|grep postfix
>
> It should be on for all run levels if not:
>
> chkconfig postfix on
>
>
>  3. Is there any system config file, where I need to mention system need to
>> run postfix not sendmail
>>
>
> Did you install sendmail?
>
> grep sendmail /root/install.log
>
> service sendmail status
>
> chkconfig --list|grep sendmail
>
>
>
>  4. If postfix is not running, how am I able to send mails out
>>
>
> check to see what is running.
>
>
>  5. I read some "make sure port 25 does not relay mails", can somebody
>> explain more in this regard and how do I stop port 25 relaying mails...
>>
>
> Read to Postfix docs on this first then ask questions.  Do a google
> search.  This is something you need to know about.  the campworld howto
> sets you up safe.  If you got all of his stuff done.
>
>
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Postfix (Roundcube client) sends mail, but not able to receive

2013-03-13 Thread Austin Einter
Looks I did not start amavisd service. Thats why probably connection to
127.0.0.1:10024 is being refused.
I tried starting amavisd service. Gets bunch of erropr as below.


*[root@ip-173-201-189-43 postfix]# service amavisd restart
Shutting down amavisd: fetch_modules: error loading required module
MIME/Head.pm:
  Can't locate Mail/Header.pm in @INC (@INC contains:
/usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl
/usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at
/usr/share/perl5/MIME/Head.pm line 120.
  BEGIN failed--compilation aborted at /usr/share/perl5/MIME/Head.pm line
120.
  Compilation failed in require at /usr/sbin/amavisd line 197.
fetch_modules: error loading required module MIME/Entity.pm:
  Can't locate Mail/Internet.pm in @INC (@INC contains:
/usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl
/usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at
/usr/share/perl5/MIME/Entity.pm line 229.
  BEGIN failed--compilation aborted at /usr/share/perl5/MIME/Entity.pm line
229.
  Compilation failed in require at /usr/sbin/amavisd line 197.
fetch_modules: error loading required module MIME/Parser.pm:
  Attempt to reload MIME/Head.pm aborted.
  Compilation failed in require at /usr/share/perl5/MIME/Parser.pm line 143.
  BEGIN failed--compilation aborted at /usr/share/perl5/MIME/Parser.pm line
143.
  Compilation failed in require at /usr/sbin/amavisd line 197.
ERROR: MISSING REQUIRED BASIC MODULES:
  MIME::Head
  MIME::Entity
  MIME::Parser
BEGIN failed--compilation aborted at /usr/sbin/amavisd line 237.
   [FAILED]

Starting amavisd: fetch_modules: error loading required module MIME/Head.pm:
  Can't locate Mail/Header.pm in @INC (@INC contains:
/usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl
/usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at
/usr/share/perl5/MIME/Head.pm line 120.
  BEGIN failed--compilation aborted at /usr/share/perl5/MIME/Head.pm line
120.
  Compilation failed in require at /usr/sbin/amavisd line 197.
fetch_modules: error loading required module MIME/Entity.pm:
  Can't locate Mail/Internet.pm in @INC (@INC contains:
/usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl
/usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at
/usr/share/perl5/MIME/Entity.pm line 229.
  BEGIN failed--compilation aborted at /usr/share/perl5/MIME/Entity.pm line
229.
  Compilation failed in require at /usr/sbin/amavisd line 197.
fetch_modules: error loading required module MIME/Parser.pm:
  Attempt to reload MIME/Head.pm aborted.
  Compilation failed in require at /usr/share/perl5/MIME/Parser.pm line 143.
  BEGIN failed--compilation aborted at /usr/share/perl5/MIME/Parser.pm line
143.
  Compilation failed in require at /usr/sbin/amavisd line 197.
ERROR: MISSING REQUIRED BASIC MODULES:
  MIME::Head
  MIME::Entity
  MIME::ParserBEGIN failed--compilation aborted at /usr/sbin/amavisd line
237.
   [FAILED]

*



On Thu, Mar 14, 2013 at 8:11 AM, Austin Einter wrote:

> DearAll
>
> I was able to resolve error with your kind help, specially Robert's
> pointers helped a lot.
>
>
> *Mar 13 16:35:36 ip-173-201-189-43 dovecot: dict: Error: mysql: Connect
> failed to localhost (postfix): Access denied for user 'postfix'@'localhost'
> (using password: YES) - waiting for 1 seconds before retry
> Mar 13 16:35:36 ip-173-201-189-43 dovecot: dict: Error: dict sql lookup
> failed: Not connected to database
>
> *
> By modifying password in file dovecot-dict-quota.conf.
>
> Then when I send mail, roundcube says message sent, but message is not
> recvd at gmail.
>
> From mail log, I see
>
> Mar 13 19:32:52 ip-173-201-189-43 postfix/qmgr[3170]: 9CCE838A0C4A: from=<
> bh...@netcloudjobs.com>, size=593, nrcpt=1 (queue active)
> Mar 13 19:32:52 ip-173-201-189-43 postfix/smtp[3196]: connect to
> 127.0.0.1[127.0.0.1]:10024: Connection refused
> Mar 13 19:32:52 ip-173-201-189-43 dovecot: imap-login: Login: user=<
> bh...@netcloudjobs.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1,
> mpid=3199, secured
> Mar 13 19:32:52 ip-173-201-189-43 postfix/smtp[3196]: 9CCE838A0C4A: to=<
> austin.ein...@gmail.com>, relay=none, delay=0.08, delays=0.08/0.01/0/0,
> dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024:
> Connection refused)
>
> Looks connection to 127.0.0.1:10024 is being refused.
>
> Any idea, what needs to be done here...
>
> -Austin
>
>
>
>
>
>
>
>
> On Thu, Mar 14, 2013 at 6:32 AM, Robert Moskowitz wrote:
>
>>
>> On 03/13/2013 08:31 PM, Austin Einter wrote:
>>
>>   Dear Robert
>>  It looks dovecot could not connect to 

Re: [CentOS] Postfix (Roundcube client) sends mail, but not able to receive

2013-03-13 Thread Austin Einter
I hope this comes from perl-mailtools package.
It was installed using yum.

I just searched MIME/Header.pm is there but in a different path.

In my system, MIME/Header.pm is present in path
/usr/lib/perl5/vendor_perl/5.8.5/Mail/Header.pm

Looks amivsd is searching at below paths

*/usr/local/lib64/perl5
/usr/local/share/perl5
/usr/lib64/perl5/vendor_perl
/usr/share/perl5/vendor_perl
/usr/lib64/perl5 /usr/share/perl5

*
How can I instruct amivsd to look at path /usr/lib/perl5/vendor_perl/5.8.5

Many thanks for great support.

-Austin




On Thu, Mar 14, 2013 at 8:28 AM, Les Mikesell  wrote:

> On Wed, Mar 13, 2013 at 9:47 PM, Austin Einter 
> wrote:
> > Looks I did not start amavisd service. Thats why probably connection to
> > 127.0.0.1:10024 is being refused.
> > I tried starting amavisd service. Gets bunch of erropr as below.
> >
> >
> > *[root@ip-173-201-189-43 postfix]# service amavisd restart
> > Shutting down amavisd: fetch_modules: error loading required module
> > MIME/Head.pm:
> >   Can't locate Mail/Header.pm in @INC (@INC contains:
>
> That sounds like you installed something that wasn't rpm-packaged
> (why?) and you are missing dependencies.
>
> --
>   Les Mikesell
>  lesmikes...@gmail.com
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Postfix (Roundcube client) sends mail, but not able to receive

2013-03-13 Thread Austin Einter
Hi Les Mikesell
The rpm installed in my m/c is *amavisd-new-2.6.4-2.el6.noarch*.

I believe it is from epel (I have epel repo enabled).


Is it incompatible?

Regards
Austin






On Thu, Mar 14, 2013 at 9:38 AM, Les Mikesell  wrote:

> On Wed, Mar 13, 2013 at 10:11 PM, Austin Einter 
> wrote:
> > I hope this comes from perl-mailtools package.
> > It was installed using yum.
> >
> > I just searched MIME/Header.pm is there but in a different path.
> >
> > In my system, MIME/Header.pm is present in path
> > /usr/lib/perl5/vendor_perl/5.8.5/Mail/Header.pm
> >
> > Looks amivsd is searching at below paths
> >
> > */usr/local/lib64/perl5
> > /usr/local/share/perl5
> > /usr/lib64/perl5/vendor_perl
> > /usr/share/perl5/vendor_perl
> > /usr/lib64/perl5 /usr/share/perl5
> >
> > *
> > How can I instruct amivsd to look at path
> /usr/lib/perl5/vendor_perl/5.8.5
>
> It should already know where to look if you installed it via yum and
> let it pull in the dependencies.  Is this the amavisd-new package from
> EPEL?
>
> --
>Les Mikesell
>   lesmikes...@gmail.com
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Postfix (Roundcube client) sends mail, but not able to receive

2013-03-13 Thread Austin Einter
perl-5.10.1.x86_64

This is the output of command "rpm -q --qf "%{n}-%{version}.%{arch}\n"
perl".

So must be 64 bit compatible one.

should I uninstall  this rpm and reinstall again

regards
austin



On Thu, Mar 14, 2013 at 10:45 AM, Les Mikesell wrote:

> On Wed, Mar 13, 2013 at 11:33 PM, Austin Einter 
> wrote:
> > Hi Les Mikesell
> > The rpm installed in my m/c is *amavisd-new-2.6.4-2.el6.noarch*.
> >
> > I believe it is from epel (I have epel repo enabled).
> >
> >
> > Is it incompatible?
>
> An unmodified version seems to start OK.  Are you sure you have the
> 64-bit versions of perl and related packages installed?
> rpm -q --qf "%{n}-%{version}.%{arch}\n" perl
>
> --
>   Les Mikesell
>  lesmikes...@gmail.com
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Postfix/Amavisd/Clamd - Mail send failing

2013-03-14 Thread Austin Einter
Dear All
With help from you all I am now at better stage. Special thanks to Robert.

Atleast I am able to run all the required services (postfix, amavisd, clamd
etc).

I sent a mail from my gmail, I received at my newly setup domain/mailbox.

I am facing issue while sending the mail outside.

>From maillog I realized, two issues are there.


*1. Virus scan failed. The error log is as below *

*Mar 14 18:49:55 ip-173-201-189-43 amavis[3325]: (03325-01) (!)run_av
(ClamAV-clamd) FAILED - unexpected ,
output="/var/spool/amavisd/tmp/amavis-20130314T184955-03325-nFS5UJ4F/parts:
lstat() failed: Permission denied. ERROR\n"
Mar 14 18:49:55 ip-173-201-189-43 amavis[3325]: (03325-01) (!)ClamAV-clamd
av-scanner FAILED: CODE(0x19c3ec0) unexpected ,
output="/var/spool/amavisd/tmp/amavis-20130314T184955-03325-nFS5UJ4F/parts:
lstat() failed: Permission denied. ERROR\n" at (eval 113) line 897.
Mar 14 18:49:55 ip-173-201-189-43 amavis[3325]: (03325-01) (!)WARN: all
primary virus scanners failed, considering backups
*

*2. Looks destination network not reachable (probably here gmail's mail
server)*
*
Mar 14 18:49:58 ip-173-201-189-43 amavis[3325]: (03325-01) FWD from <
bh...@netcloudjobs.com> -> ,BODY=7BIT 250 2.0.0
from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 1AE0E38A0D3E
Mar 14 18:49:58 ip-173-201-189-43 postfix/error[3384]: 1AE0E38A0D3E: to=<
austin.ein...@gmail.com>, relay=none, delay=0.02, delays=0.01/0.01/0/0,
dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to
alt2.gmail-smtp-in.l.google.com[2607:f8b0:4002:c04::1a]:25: Network is
unreachable)
Mar 14 18:49:58 ip-173-201-189-43 amavis[3325]: (03325-01) Passed CLEAN
{RelayedOutbound}, MYNETS LOCAL [127.0.0.1]:46504 [127.0.0.1] <
bh...@netcloudjobs.com> -> , Message-ID: <
bd17726f3d35c7980426e4a55566c...@netcloudjobs.com>, mail_id: T8Zt2QE1Eico,
Hits: -1, size: 805, queued_as: 1AE0E38A0D3E, 2885 ms
*
Is it a dns issue. Why my mail server is saying "*delivery temporarily
suspended: connect to
alt2.gmail-smtp-in.l.google.com[2607:f8b0:4002:c04::1a]:25:
Network is unreachable)*".

Kindly guide me to solve these 2 issues.

Best regards
Austin
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Postfix/Amavisd/Clamd - Mail send failing

2013-03-14 Thread Austin Einter
I hope I have solved the first issue by giving right permission to
/var/spool/amavisd/tmp.
I gave the permission to that folder as 770.

Any input for 2nd issue.., Can it be a firewall issue, do I need to
open any port in   IN or OUT interfaces...

It is strange when it logs "*very temporarily suspended: connect to
alt2.gmail-smtp-in.l.google.com[2607:f8b0:4002:c04::1a]:25: Network is
unreachable*".

It is just some network/dns setting causing the issue, not able to catch
the issue here .., any input...

-Austin



On Fri, Mar 15, 2013 at 7:38 AM, Austin Einter wrote:

> Dear All
> With help from you all I am now at better stage. Special thanks to Robert.
>
> Atleast I am able to run all the required services (postfix, amavisd,
> clamd etc).
>
> I sent a mail from my gmail, I received at my newly setup domain/mailbox.
>
> I am facing issue while sending the mail outside.
>
> From maillog I realized, two issues are there.
>
>
> *1. Virus scan failed. The error log is as below *
>
> *Mar 14 18:49:55 ip-173-201-189-43 amavis[3325]: (03325-01) (!)run_av
> (ClamAV-clamd) FAILED - unexpected ,
> output="/var/spool/amavisd/tmp/amavis-20130314T184955-03325-nFS5UJ4F/parts:
> lstat() failed: Permission denied. ERROR\n"
> Mar 14 18:49:55 ip-173-201-189-43 amavis[3325]: (03325-01) (!)ClamAV-clamd
> av-scanner FAILED: CODE(0x19c3ec0) unexpected ,
> output="/var/spool/amavisd/tmp/amavis-20130314T184955-03325-nFS5UJ4F/parts:
> lstat() failed: Permission denied. ERROR\n" at (eval 113) line 897.
> Mar 14 18:49:55 ip-173-201-189-43 amavis[3325]: (03325-01) (!)WARN: all
> primary virus scanners failed, considering backups
> *
>
> *2. Looks destination network not reachable (probably here gmail's mail
> server)*
> *
> Mar 14 18:49:58 ip-173-201-189-43 amavis[3325]: (03325-01) FWD from <
> bh...@netcloudjobs.com> -> ,BODY=7BIT 250 2.0.0
> from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 1AE0E38A0D3E
> Mar 14 18:49:58 ip-173-201-189-43 postfix/error[3384]: 1AE0E38A0D3E: to=<
> austin.ein...@gmail.com>, relay=none, delay=0.02, delays=0.01/0.01/0/0,
> dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to
> alt2.gmail-smtp-in.l.google.com[2607:f8b0:4002:c04::1a]:25: Network is
> unreachable)
> Mar 14 18:49:58 ip-173-201-189-43 amavis[3325]: (03325-01) Passed CLEAN
> {RelayedOutbound}, MYNETS LOCAL [127.0.0.1]:46504 [127.0.0.1] <
> bh...@netcloudjobs.com> -> , Message-ID: <
> bd17726f3d35c7980426e4a55566c...@netcloudjobs.com>, mail_id:
> T8Zt2QE1Eico, Hits: -1, size: 805, queued_as: 1AE0E38A0D3E, 2885 ms
> *
> Is it a dns issue. Why my mail server is saying "*delivery temporarily
> suspended: connect to 
> alt2.gmail-smtp-in.l.google.com[2607:f8b0:4002:c04::1a]:25:
> Network is unreachable)*".
>
> Kindly guide me to solve these 2 issues.
>
> Best regards
> Austin
>
>
>
>
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Postfix/Amavisd/Clamd - Mail send failing

2013-03-14 Thread Austin Einter
I just executed below command

*[root@ip-173-201-189-43 tmp]#
[root@ip-173-201-189-43 tmp]# telnet gmail-smtp-in.l.google.com 25
Trying 173.194.79.27...
telnet: connect to address 173.194.79.27: No route to host
Trying 2607:f8b0:400e:c01::1b...
telnet: connect to address 2607:f8b0:400e:c01::1b: Network is unreachable
[root@ip-173-201-189-43 tmp]#
*
Looks its a generic issue, nothing to do with mail setup.

I am not able to connect to gmail server's 25 port.

What is the work around here, any idea.





On Fri, Mar 15, 2013 at 8:38 AM, Austin Einter wrote:

> I hope I have solved the first issue by giving right permission to
> /var/spool/amavisd/tmp.
> I gave the permission to that folder as 770.
>
> Any input for 2nd issue.., Can it be a firewall issue, do I need to
> open any port in   IN or OUT interfaces...
>
> It is strange when it logs "*very temporarily suspended: connect to
> alt2.gmail-smtp-in.l.google.com[2607:f8b0:4002:c04::1a]:25: Network is
> unreachable*".
>
> It is just some network/dns setting causing the issue, not able to catch
> the issue here .., any input...
>
> -Austin
>
>
>
> On Fri, Mar 15, 2013 at 7:38 AM, Austin Einter wrote:
>
>> Dear All
>> With help from you all I am now at better stage. Special thanks to Robert.
>>
>> Atleast I am able to run all the required services (postfix, amavisd,
>> clamd etc).
>>
>> I sent a mail from my gmail, I received at my newly setup domain/mailbox.
>>
>> I am facing issue while sending the mail outside.
>>
>> From maillog I realized, two issues are there.
>>
>>
>> *1. Virus scan failed. The error log is as below *
>>
>> *Mar 14 18:49:55 ip-173-201-189-43 amavis[3325]: (03325-01) (!)run_av
>> (ClamAV-clamd) FAILED - unexpected ,
>> output="/var/spool/amavisd/tmp/amavis-20130314T184955-03325-nFS5UJ4F/parts:
>> lstat() failed: Permission denied. ERROR\n"
>> Mar 14 18:49:55 ip-173-201-189-43 amavis[3325]: (03325-01)
>> (!)ClamAV-clamd av-scanner FAILED: CODE(0x19c3ec0) unexpected ,
>> output="/var/spool/amavisd/tmp/amavis-20130314T184955-03325-nFS5UJ4F/parts:
>> lstat() failed: Permission denied. ERROR\n" at (eval 113) line 897.
>> Mar 14 18:49:55 ip-173-201-189-43 amavis[3325]: (03325-01) (!)WARN: all
>> primary virus scanners failed, considering backups
>> *
>>
>> *2. Looks destination network not reachable (probably here gmail's mail
>> server)*
>> *
>> Mar 14 18:49:58 ip-173-201-189-43 amavis[3325]: (03325-01) FWD from <
>> bh...@netcloudjobs.com> -> ,BODY=7BIT 250 2.0.0
>> from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 1AE0E38A0D3E
>> Mar 14 18:49:58 ip-173-201-189-43 postfix/error[3384]: 1AE0E38A0D3E: to=<
>> austin.ein...@gmail.com>, relay=none, delay=0.02, delays=0.01/0.01/0/0,
>> dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to
>> alt2.gmail-smtp-in.l.google.com[2607:f8b0:4002:c04::1a]:25: Network is
>> unreachable)
>> Mar 14 18:49:58 ip-173-201-189-43 amavis[3325]: (03325-01) Passed CLEAN
>> {RelayedOutbound}, MYNETS LOCAL [127.0.0.1]:46504 [127.0.0.1] <
>> bh...@netcloudjobs.com> -> , Message-ID: <
>> bd17726f3d35c7980426e4a55566c...@netcloudjobs.com>, mail_id:
>> T8Zt2QE1Eico, Hits: -1, size: 805, queued_as: 1AE0E38A0D3E, 2885 ms
>> *
>> Is it a dns issue. Why my mail server is saying "*delivery temporarily
>> suspended: connect to 
>> alt2.gmail-smtp-in.l.google.com[2607:f8b0:4002:c04::1a]:25:
>> Network is unreachable)*".
>>
>> Kindly guide me to solve these 2 issues.
>>
>> Best regards
>> Austin
>>
>>
>>
>>
>>
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Postfix/Amavisd/Clamd - Mail send failing

2013-03-14 Thread Austin Einter
I just checked firewall. tcp/smtp(25 ) is allowed.

Any kind of DNS configuration issues

Any pointers .


On Fri, Mar 15, 2013 at 8:50 AM, Austin Einter wrote:

> I just executed below command
>
> *[root@ip-173-201-189-43 tmp]#
> [root@ip-173-201-189-43 tmp]# telnet gmail-smtp-in.l.google.com 25
> Trying 173.194.79.27...
> telnet: connect to address 173.194.79.27: No route to host
> Trying 2607:f8b0:400e:c01::1b...
> telnet: connect to address 2607:f8b0:400e:c01::1b: Network is unreachable
> [root@ip-173-201-189-43 tmp]#
> *
> Looks its a generic issue, nothing to do with mail setup.
>
> I am not able to connect to gmail server's 25 port.
>
> What is the work around here, any idea.
>
>
>
>
>
> On Fri, Mar 15, 2013 at 8:38 AM, Austin Einter wrote:
>
>> I hope I have solved the first issue by giving right permission to
>> /var/spool/amavisd/tmp.
>> I gave the permission to that folder as 770.
>>
>> Any input for 2nd issue.., Can it be a firewall issue, do I need to
>> open any port in   IN or OUT interfaces...
>>
>> It is strange when it logs "*very temporarily suspended: connect to
>> alt2.gmail-smtp-in.l.google.com[2607:f8b0:4002:c04::1a]:25: Network is
>> unreachable*".
>>
>> It is just some network/dns setting causing the issue, not able to catch
>> the issue here .., any input...
>>
>> -Austin
>>
>>
>>
>> On Fri, Mar 15, 2013 at 7:38 AM, Austin Einter 
>> wrote:
>>
>>> Dear All
>>> With help from you all I am now at better stage. Special thanks to
>>> Robert.
>>>
>>> Atleast I am able to run all the required services (postfix, amavisd,
>>> clamd etc).
>>>
>>> I sent a mail from my gmail, I received at my newly setup domain/mailbox.
>>>
>>> I am facing issue while sending the mail outside.
>>>
>>> From maillog I realized, two issues are there.
>>>
>>>
>>> *1. Virus scan failed. The error log is as below *
>>>
>>> *Mar 14 18:49:55 ip-173-201-189-43 amavis[3325]: (03325-01) (!)run_av
>>> (ClamAV-clamd) FAILED - unexpected ,
>>> output="/var/spool/amavisd/tmp/amavis-20130314T184955-03325-nFS5UJ4F/parts:
>>> lstat() failed: Permission denied. ERROR\n"
>>> Mar 14 18:49:55 ip-173-201-189-43 amavis[3325]: (03325-01)
>>> (!)ClamAV-clamd av-scanner FAILED: CODE(0x19c3ec0) unexpected ,
>>> output="/var/spool/amavisd/tmp/amavis-20130314T184955-03325-nFS5UJ4F/parts:
>>> lstat() failed: Permission denied. ERROR\n" at (eval 113) line 897.
>>> Mar 14 18:49:55 ip-173-201-189-43 amavis[3325]: (03325-01) (!)WARN: all
>>> primary virus scanners failed, considering backups
>>> *
>>>
>>> *2. Looks destination network not reachable (probably here gmail's mail
>>> server)*
>>> *
>>> Mar 14 18:49:58 ip-173-201-189-43 amavis[3325]: (03325-01) FWD from <
>>> bh...@netcloudjobs.com> -> ,BODY=7BIT 250
>>> 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 1AE0E38A0D3E
>>> Mar 14 18:49:58 ip-173-201-189-43 postfix/error[3384]: 1AE0E38A0D3E: to=<
>>> austin.ein...@gmail.com>, relay=none, delay=0.02, delays=0.01/0.01/0/0,
>>> dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to
>>> alt2.gmail-smtp-in.l.google.com[2607:f8b0:4002:c04::1a]:25: Network is
>>> unreachable)
>>> Mar 14 18:49:58 ip-173-201-189-43 amavis[3325]: (03325-01) Passed CLEAN
>>> {RelayedOutbound}, MYNETS LOCAL [127.0.0.1]:46504 [127.0.0.1] <
>>> bh...@netcloudjobs.com> -> , Message-ID: <
>>> bd17726f3d35c7980426e4a55566c...@netcloudjobs.com>, mail_id:
>>> T8Zt2QE1Eico, Hits: -1, size: 805, queued_as: 1AE0E38A0D3E, 2885 ms
>>> *
>>> Is it a dns issue. Why my mail server is saying "*delivery temporarily
>>> suspended: connect to 
>>> alt2.gmail-smtp-in.l.google.com[2607:f8b0:4002:c04::1a]:25:
>>> Network is unreachable)*".
>>>
>>> Kindly guide me to solve these 2 issues.
>>>
>>> Best regards
>>> Austin
>>>
>>>
>>>
>>>
>>>
>>
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Postfix/Amavisd/Clamd - Mail send failing

2013-03-14 Thread Austin Einter
Thanks John
By the way I checked with my service provider. Their ISP does not block 25.
But to successfully deliver SMTP mail, I need to use their relay server (it
uses port 25 only).

Where will I configure their relay server . Is it in
/etc/postfix/main.cfor any other file. Do I need to modify anyting in
dovecot or amavisd
configuration???

Thanks
Austin



On Fri, Mar 15, 2013 at 9:55 AM, John R Pierce  wrote:

> On 3/14/2013 9:20 PM, Les Mikesell wrote:
> > Some ISP's block port 25 if it is a 'home' type connection.   Comcast
> > recently started blocking and I can't connect there from home either.
>
>
> configure your mail server to use your ISP's mail server as a
> 'smarthost', OR configure it to use an external (coloc or whatever)
> server as smarthost via port 587 with authentication.
>
>
>
>
> --
> john r pierce  37N 122W
> somewhere on the middle of the left coast
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Postfix/Amavisd/Clamd - Mail send failing

2013-03-14 Thread Austin Einter
Thanks Everybody
I configured the relayhost entry in main.cf in /etc/postfix path as
relayhost = [my service provider relay host]
Thats all, I am able to send / recv email.


Next how do I make sure, my spam/antivirus filtering is working properly
Is it that only maillog i cam check, or is there any effective way of
checking it.

Thanks
-Austin







On Fri, Mar 15, 2013 at 11:13 AM, Austin Einter wrote:

> Thanks John
> By the way I checked with my service provider. Their ISP does not block
> 25. But to successfully deliver SMTP mail, I need to use their relay server
> (it uses port 25 only).
>
> Where will I configure their relay server . Is it in /etc/postfix/main.cfor 
> any other file. Do I need to modify anyting in dovecot or amavisd
> configuration???
>
> Thanks
> Austin
>
>
>
> On Fri, Mar 15, 2013 at 9:55 AM, John R Pierce wrote:
>
>> On 3/14/2013 9:20 PM, Les Mikesell wrote:
>> > Some ISP's block port 25 if it is a 'home' type connection.   Comcast
>> > recently started blocking and I can't connect there from home either.
>>
>>
>> configure your mail server to use your ISP's mail server as a
>> 'smarthost', OR configure it to use an external (coloc or whatever)
>> server as smarthost via port 587 with authentication.
>>
>>
>>
>>
>> --
>> john r pierce  37N 122W
>> somewhere on the middle of the left coast
>>
>> ___
>> CentOS mailing list
>> CentOS@centos.org
>> http://lists.centos.org/mailman/listinfo/centos
>>
>
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] posfix admin issue

2013-03-21 Thread Austin Einter
Dear All
I had successfully installed posfixadmin. I was able to login to postfix
admin and create email ids etc.

In something broken (not sure which one caused the issue), I am
experiencing below problem with postfix admin.

1. I am able to access domain/mailadmin page.
2. I can create admin accounts at domain/mailadmin/setup.php
3. I can see the admin login page by access

But when I enter my admin mailid, and password (i am 100% sure these are
correct), it goes to a page domain/login.php and then says "Page not found".

My question is why it is redirecting wrongly to domain/login.php.

Kindly help me.

Please note that I have all other things working like amavisd, dovecot etc,
I am able to send recv mails for accounts that I created previously.

Regards
Austin
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] posfix admin issue

2013-03-21 Thread Austin Einter
Dear Banyan
Thanks for input. I checked the log. I found always ssl_error_log is being
written when I am trying to login to postfixadmin and it looks relevant
also. But I do not know how to fix it.


The error log is as below.


[Thu Mar 21 07:08:09 2013] [error] [client 122.178.239.178] PHP Warning:
Unknown: Failed to write session data (memcache). Please verify that the
current setting of session.save_path is correct
(tcp://localhost:11211?persistent=1&weight=1&timeout=1&retry_interval=15)
in Unknown on line 0, referer: *
https://www.netcloudjobs.com/mailadmin/login.php*

I have memcache (memcached demon running in a drupal based environment).

Thanks
-Austin




On Thu, Mar 21, 2013 at 7:15 PM, Banyan He  wrote:

> It sounds like a php coding problem. You can check the php page first.
> Check at what condition is you will be redirected back to the login page.
> It would be easy. You can send in the php file or give us the address where
> to find the file.
>
> Make sure you have all the conditions match, you will not be directly to
> login page. BTW, some codes will check the existence of the setup files. If
> they do exist, you won't be able to login to the admin page.
>
> 
> Banyan He
> Blog: http://www.rootong.com
> Email: ban...@rootong.com
>
>
> On 3/21/2013 5:06 PM, Austin Einter wrote:
>
>> Dear All
>> I had successfully installed posfixadmin. I was able to login to postfix
>> admin and create email ids etc.
>>
>> In something broken (not sure which one caused the issue), I am
>> experiencing below problem with postfix admin.
>>
>> 1. I am able to access domain/mailadmin page.
>> 2. I can create admin accounts at domain/mailadmin/setup.php
>> 3. I can see the admin login page by access
>>
>> But when I enter my admin mailid, and password (i am 100% sure these are
>> correct), it goes to a page domain/login.php and then says "Page not
>> found".
>>
>> My question is why it is redirecting wrongly to domain/login.php.
>>
>> Kindly help me.
>>
>> Please note that I have all other things working like amavisd, dovecot
>> etc,
>> I am able to send recv mails for accounts that I created previously.
>>
>> Regards
>> Austin
>> __**_
>> CentOS mailing list
>> CentOS@centos.org
>> http://lists.centos.org/**mailman/listinfo/centos<http://lists.centos.org/mailman/listinfo/centos>
>>
>>
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] posfix admin issue

2013-03-21 Thread Austin Einter
I just looked at link
http://sourceforge.net/p/postfixadmin/discussion/676076/thread/9eb8a948 ,
it looks a similar issue and it is related session cookie. I checked in my
php.ini and cooki is enabled. Not sure if memcache will create any
problem..,

Hope somebody would have faced this issue previously.., any pointer...

-Austin


On Thu, Mar 21, 2013 at 7:44 PM, Austin Einter wrote:

> Dear Banyan
> Thanks for input. I checked the log. I found always ssl_error_log is being
> written when I am trying to login to postfixadmin and it looks relevant
> also. But I do not know how to fix it.
>
>
> The error log is as below.
>
>
> [Thu Mar 21 07:08:09 2013] [error] [client 122.178.239.178] PHP Warning:
> Unknown: Failed to write session data (memcache). Please verify that the
> current setting of session.save_path is correct
> (tcp://localhost:11211?persistent=1&weight=1&timeout=1&retry_interval=15)
> in Unknown on line 0, referer: *
> https://www.netcloudjobs.com/mailadmin/login.php*
>
> I have memcache (memcached demon running in a drupal based environment).
>
> Thanks
> -Austin
>
>
>
>
> On Thu, Mar 21, 2013 at 7:15 PM, Banyan He  wrote:
>
>> It sounds like a php coding problem. You can check the php page first.
>> Check at what condition is you will be redirected back to the login page.
>> It would be easy. You can send in the php file or give us the address where
>> to find the file.
>>
>> Make sure you have all the conditions match, you will not be directly to
>> login page. BTW, some codes will check the existence of the setup files. If
>> they do exist, you won't be able to login to the admin page.
>>
>> 
>> Banyan He
>> Blog: http://www.rootong.com
>> Email: ban...@rootong.com
>>
>>
>> On 3/21/2013 5:06 PM, Austin Einter wrote:
>>
>>> Dear All
>>> I had successfully installed posfixadmin. I was able to login to postfix
>>> admin and create email ids etc.
>>>
>>> In something broken (not sure which one caused the issue), I am
>>> experiencing below problem with postfix admin.
>>>
>>> 1. I am able to access domain/mailadmin page.
>>> 2. I can create admin accounts at domain/mailadmin/setup.php
>>> 3. I can see the admin login page by access
>>>
>>> But when I enter my admin mailid, and password (i am 100% sure these are
>>> correct), it goes to a page domain/login.php and then says "Page not
>>> found".
>>>
>>> My question is why it is redirecting wrongly to domain/login.php.
>>>
>>> Kindly help me.
>>>
>>> Please note that I have all other things working like amavisd, dovecot
>>> etc,
>>> I am able to send recv mails for accounts that I created previously.
>>>
>>> Regards
>>> Austin
>>> __**_
>>> CentOS mailing list
>>> CentOS@centos.org
>>> http://lists.centos.org/**mailman/listinfo/centos<http://lists.centos.org/mailman/listinfo/centos>
>>>
>>>
>>
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos