Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Questions About Centos 4 + Postfix + Ldap Tutorial
keith
post Apr 28 2005, 09:36 AM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 12
Joined: 28-April 05
Member No.: 4,932



I've been playing around with a Centos 4 server over the last couple days. I tried to follow the tutorial for installing Postfix, LDAP, MailScanner, Dovecot, etc on a Centos 4 server and I had a couple questions.

1. This server is going to be a web/mail server. Should I install the web stuff first or the mail stuff first. I am going to be installing Linux, Apache, PHP, MySQL (probably using this guide: http://www.linuxhelp.ca/forums/index.php?a...ST&f=15&t=3676).

2. I'm confused about a section in Part I. Where it says "Then edit the file /etc/openldap/slapd.conf", do I just throw that code at the bottom of the slapd.conf file or does it have to go in a certain place?

3. With the code that you have to add to the slapd.conf file. What is the o= for? It's filled out as hosting in the tutorial. So if I was using yahoo.com would I say o=com,dc=yahoo,dc=com?

4. If it's not a lot of trouble, can some one explain the dc, cn, and o paramteres? They confuse me a lot.

5. Last thing, in the last section of Part I, it has "yyyyyyyyyyyyyyyyyyyyyyyyy". What is that for?
Go to the top of the page
 
+Quote Post
Robert83
post Apr 28 2005, 10:19 AM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,439
Joined: 3-January 04
From: Germany
Member No.: 2,069



Hi,

1. Should go in the order I did, basicaly all e-mail server guides go in this order

2. You just put the code to the bottom of the config file.

3. no o=hosting (and it stays hosting) o=hosting , dc=yahoo, dc=com

(you can check this picture to see how the ldap tree looks like http://wanderingbarque.com/howtos/mailserv...r/ldap_tree.gif
)

4. dc = domain component , cn = common name

5. yyyyyyyyyyyyy stands for the password you generate right before that , look a bit close and you'll see.
So does xxxxxxxxxxxx later.

Sincerely
Robert B


--------------------
Robert Becskei
robert83@linuxhelp.net
--------------------
May the source be with us!
--------------------
AMD X2-3800 @ 2400Mhz
2048MB DDR 400Mhz
DFI Lanparty UT4 NF4 ULTRA-D
GeForce 7800GT
250GB+250GB
Pioneer DVD-RW
17inch Samsung Syncmaster 757NF
WinXP Pro (SP2)/ CentOS 4.3
--------------------
Go to the top of the page
 
+Quote Post
keith
post Apr 28 2005, 11:33 AM
Post #3


Whats this Lie-nix Thing?
*

Group: Members
Posts: 12
Joined: 28-April 05
Member No.: 4,932



So if I was going to install Apache and PHP should I do this before or after your tutorial?
Go to the top of the page
 
+Quote Post
Robert83
post Apr 28 2005, 11:47 AM
Post #4


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,439
Joined: 3-January 04
From: Germany
Member No.: 2,069



Hi,

if you follow the guide, you will install httpd (apache) and php (the squirrelmail part = webmail).

you should first setup a fully working mail server and then add features to it like webmail...

postfix can work without webmail, but webmail won't work without a e-mail server (postfix,sendmail...etc)

if you want this server to be a LAMP server, you can install it after...or even before the mail server (with all the stuff...ldap,dovecot,squirrelmail...etc)


Sincerely
Robert B

This post has been edited by Robert83: Apr 28 2005, 11:48 AM


--------------------
Robert Becskei
robert83@linuxhelp.net
--------------------
May the source be with us!
--------------------
AMD X2-3800 @ 2400Mhz
2048MB DDR 400Mhz
DFI Lanparty UT4 NF4 ULTRA-D
GeForce 7800GT
250GB+250GB
Pioneer DVD-RW
17inch Samsung Syncmaster 757NF
WinXP Pro (SP2)/ CentOS 4.3
--------------------
Go to the top of the page
 
+Quote Post
keith
post May 2 2005, 10:59 PM
Post #5


Whats this Lie-nix Thing?
*

Group: Members
Posts: 12
Joined: 28-April 05
Member No.: 4,932



Well I've been working on this for a while now and I'm stuck on Part I. When I type

CODE
ldapadd -x -D "cn=Manager,dc=keithslater,dc=com" -W -f base.ldif


I get this

CODE
Enter LDAP Password:
adding new entry "dc=keithslater, dc=com"
ldap_add: Internal (implementation specific) error (80)
       additional info: @

                        ?(


I'm not sure why it's happening. This is a completely brand new formatted machine with nothing else installed and I followed exactly what it said. This is actually the second time I've attempted this and I've got this error both times. The additional info changes to other random characters if I change little things in the config files.
Go to the top of the page
 
+Quote Post
keith
post May 3 2005, 09:47 AM
Post #6


Whats this Lie-nix Thing?
*

Group: Members
Posts: 12
Joined: 28-April 05
Member No.: 4,932



This is what I'm getting in the log file

CODE
May  3 10:53:57 cristal slapd[23553]: conn=0 fd=10 ACCEPT from IP=127.0.0.1:32830 (IP=0.0.0.0:389)
May  3 10:53:57 cristal slapd[23553]: conn=0 op=0 BIND dn="cn=Manager,dc=keithslater,dc=com" method=128
May  3 10:53:57 cristal slapd[23553]: conn=0 op=0 BIND dn="cn=Manager,dc=keithslater,dc=com" mech=SIMPLE ssf=0
May  3 10:53:57 cristal slapd[23553]: conn=0 op=0 RESULT tag=97 err=0 text=
May  3 10:53:57 cristal slapd[23553]: conn=0 op=1 ADD dn="dc=keithslater,dc=com"
May  3 10:53:57 cristal slapd[23553]: <= dn2id could not open dn2id.dbb
May  3 10:53:57 cristal slapd[23553]: <= dn2id could not open dn2id.dbb
May  3 10:53:57 cristal slapd[23553]: conn=0 op=1 RESULT tag=105 err=80 text=@

                                                                            ?(
May  3 10:53:57 cristal slapd[23553]: conn=0 op=2 UNBIND
May  3 10:53:57 cristal slapd[23553]: conn=0 fd=10 closed



The file dn2id.dbb isn't on the server.

The /var/lib/ldap directory looks like:

CODE
drwx------   2 ldap ldap   4096 May  3 11:33 .
drwxr-xr-x  13 root root   4096 May  2 22:07 ..
-rw-------   1 ldap ldap  16384 May  3 11:33 __db.001
-rw-------   1 ldap ldap 278528 May  3 11:33 __db.002
-rw-------   1 ldap ldap  98304 May  3 11:33 __db.003
-rw-------   1 ldap ldap 450560 May  3 11:33 __db.004
-rw-------   1 ldap ldap  16384 May  3 11:33 __db.005
-rw-------   1 ldap ldap   8192 May  3 11:36 dn2id.bdb
-rw-------   1 ldap ldap  32768 May  3 11:36 id2entry.bdb
-rw-------   1 ldap ldap  42225 May  3 11:36 log.0000000001
Go to the top of the page
 
+Quote Post
keith
post May 3 2005, 02:37 PM
Post #7


Whats this Lie-nix Thing?
*

Group: Members
Posts: 12
Joined: 28-April 05
Member No.: 4,932



Incase anyone else is having this problem, I removed the whole bdb definition from the slapd.conf file and it seems to be working now.
Go to the top of the page
 
+Quote Post
keith
post May 4 2005, 10:44 PM
Post #8


Whats this Lie-nix Thing?
*

Group: Members
Posts: 12
Joined: 28-April 05
Member No.: 4,932



Alright, I made it through the whole tutorial and I believe I have everything set up right.

My next questions are:

How do you add new mail accounts?
I believe I read you create the directories and then add them to jamm?
Are the only directories /home/vmail/<domain name> and /home/vmail/<domain name>/<mail name>?
What about permissions?

Thanks
Go to the top of the page
 
+Quote Post
Robert83
post May 5 2005, 12:41 AM
Post #9


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,439
Joined: 3-January 04
From: Germany
Member No.: 2,069



Hi,

you create the

/home/vmail/domain_name/user_name

rwxrwx--- vmail.vmail

then with jamm add the domain_name
and add the user_name

Sincerely
Robert B


--------------------
Robert Becskei
robert83@linuxhelp.net
--------------------
May the source be with us!
--------------------
AMD X2-3800 @ 2400Mhz
2048MB DDR 400Mhz
DFI Lanparty UT4 NF4 ULTRA-D
GeForce 7800GT
250GB+250GB
Pioneer DVD-RW
17inch Samsung Syncmaster 757NF
WinXP Pro (SP2)/ CentOS 4.3
--------------------
Go to the top of the page
 
+Quote Post
keith
post May 9 2005, 09:52 PM
Post #10


Whats this Lie-nix Thing?
*

Group: Members
Posts: 12
Joined: 28-April 05
Member No.: 4,932



Ok then, how would I log into squirrel mail? Would I use the full email address as the username? Or does it pull the domain name from the URL or something?

And actually when I try to log in with Squirrelmail, I get this error:

QUOTE
May  9 23:05:27 cristal dovecot-auth: LDAP: Can't connect to server: localhost
May  9 23:05:27 cristal imap-login: Disconnected [127.0.0.1]
Go to the top of the page
 
+Quote Post
Robert83
post May 12 2005, 06:24 AM
Post #11


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,439
Joined: 3-January 04
From: Germany
Member No.: 2,069



Hi,

the first thing I would check is if ldap is running .

seccond recheck your ldap config files , the ones in /etc/openldap

when logging in you use

username@domainname.com

this might be long yes...but is better than to type username

why?

cause than that same user would exist in all other domains....

Sincerely
Robert B


--------------------
Robert Becskei
robert83@linuxhelp.net
--------------------
May the source be with us!
--------------------
AMD X2-3800 @ 2400Mhz
2048MB DDR 400Mhz
DFI Lanparty UT4 NF4 ULTRA-D
GeForce 7800GT
250GB+250GB
Pioneer DVD-RW
17inch Samsung Syncmaster 757NF
WinXP Pro (SP2)/ CentOS 4.3
--------------------
Go to the top of the page
 
+Quote Post
sainigaurav_gs
post May 12 2005, 02:21 PM
Post #12


Whats this Lie-nix Thing?
*

Group: Members
Posts: 2
Joined: 10-May 05
Member No.: 4,982



Hi

I am a newbie to linux. I installed the Postfix mail server as per guide on RHEL3. Packages openldap, postfix and cyrus-sasl were already installed. my questions are

1: How do i know that they were compiled with ldap support.

2. What is the default userid with which i should login in Jamm on the first screen.

everything seems to be running fine as there were no errors. but i cannot login in jamm. Please guide me.


Thanks in advance
Go to the top of the page
 
+Quote Post
keith
post May 17 2005, 10:59 AM
Post #13


Whats this Lie-nix Thing?
*

Group: Members
Posts: 12
Joined: 28-April 05
Member No.: 4,932



QUOTE (sainigaurav_gs @ May 12 2005, 02:21 PM)
2. What is the default userid with which i should login in Jamm on the first screen.

root
Go to the top of the page
 
+Quote Post
keith
post May 17 2005, 07:27 PM
Post #14


Whats this Lie-nix Thing?
*

Group: Members
Posts: 12
Joined: 28-April 05
Member No.: 4,932



QUOTE
And actually when I try to log in with Squirrelmail, I get this error:

QUOTE
May  9 23:05:27 cristal dovecot-auth: LDAP: Can't connect to server: localhost
May  9 23:05:27 cristal imap-login: Disconnected [127.0.0.1]


Incase anyone else is having thos problem I changed /etc/dovecot-ldap.conf line

CODE
hosts = localhost

to
CODE
host =



Also in Part II in the /etc/postfix/main.cf file.
The line reject_unauth_destination is spelled wrong in the tutorial

-------

Ok, now this is the problem I'm having. I can log in fine with squirrelmail and Outlook Express. For some reason I can't seem to send or receive mail. Everything goes through like it's fine but I just never get the mail. I've look in my maillog, debug, messages, and secure log and I don't have any errors.
Go to the top of the page
 
+Quote Post
loribas
post May 31 2005, 01:41 PM
Post #15


Whats this Lie-nix Thing?
*

Group: Members
Posts: 1
Joined: 31-May 05
Member No.: 5,068



Hello linuxers,

Ive followed step by step the guide 2 times but.... When I try to log in Jamm I get the message:

----

JAMM Communication Error Page

An fatal error has occured!
Could not contact the ldap server.

We're sorry for the inconvience. Please try again later.

----

I really have no idea what is wrong...

Luis
Go to the top of the page
 
+Quote Post
keith
post Jun 8 2005, 01:51 PM
Post #16


Whats this Lie-nix Thing?
*

Group: Members
Posts: 12
Joined: 28-April 05
Member No.: 4,932



loribas - Check any log files for error messages. If you see anything weird, post it here.

Ok, how can I check and see if SpamAssassin is actually working. I've had the server running in production for a little over a week now and I'm still get the same amount of spam (100+ a day). Is there anything I would want to look for to change?
Go to the top of the page
 
+Quote Post
keith
post Jun 23 2005, 06:22 AM
Post #17


Whats this Lie-nix Thing?
*

Group: Members
Posts: 12
Joined: 28-April 05
Member No.: 4,932



Anyone?
Go to the top of the page
 
+Quote Post
keith
post Jun 30 2005, 09:01 AM
Post #18


Whats this Lie-nix Thing?
*

Group: Members
Posts: 12
Joined: 28-April 05
Member No.: 4,932



Still looking for help on this. You around Robert83?
Go to the top of the page
 
+Quote Post
Robert83
post Jun 30 2005, 10:15 AM
Post #19


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,439
Joined: 3-January 04
From: Germany
Member No.: 2,069



Hello,

Sorry for the inconvinience, but I'm in civil military service for a few more months (12) , and I'm working from 8:00-14:00 usualy at the red cross , and from 14:00 to 19:30 I'm working at my old workplace.

This is how my maillog looks like when Spamassassin is working :

Jun 30 18:11:13 pipin postfix/postfix-script: warning: not owned by root: /var/spool/postfix.in
Jun 30 18:11:14 pipin postfix/postfix-script: starting the Postfix mail system
Jun 30 18:11:15 pipin postfix/master[2664]: daemon started -- version 2.0.16
Jun 30 18:11:15 pipin postfix/postfix-script: warning: not owned by root: /var/spool/postfix
Jun 30 18:11:16 pipin postfix/postfix-script: starting the Postfix mail system
Jun 30 18:11:16 pipin postfix/master[2712]: daemon started -- version 2.0.16
Jun 30 18:11:25 pipin MailScanner[2732]: MailScanner E-Mail Virus Scanner version 4.38.3 starting...
Jun 30 18:11:26 pipin MailScanner[2732]: Read 1 hostnames from the phishing whitelist
Jun 30 18:11:28 pipin MailScanner[2732]: Enabling SpamAssassin auto-whitelist functionality...
Jun 30 18:11:35 pipin MailScanner[2772]: MailScanner E-Mail Virus Scanner version 4.38.3 starting...
Jun 30 18:11:36 pipin MailScanner[2772]: Read 1 hostnames from the phishing whitelist
Jun 30 18:11:38 pipin MailScanner[2732]: Using locktype = flock
Jun 30 18:11:39 pipin MailScanner[2772]: Enabling SpamAssassin auto-whitelist functionality...
Jun 30 18:11:45 pipin MailScanner[2774]: MailScanner E-Mail Virus Scanner version 4.38.3 starting...
Jun 30 18:11:47 pipin MailScanner[2774]: Read 1 hostnames from the phishing whitelist
Jun 30 18:11:49 pipin MailScanner[2772]: Using locktype = flock
Jun 30 18:11:50 pipin MailScanner[2774]: Enabling SpamAssassin auto-whitelist functionality...
Jun 30 18:11:55 pipin MailScanner[2777]: MailScanner E-Mail Virus Scanner version 4.38.3 starting...
Jun 30 18:11:57 pipin MailScanner[2777]: Read 1 hostnames from the phishing whitelist
Jun 30 18:12:00 pipin MailScanner[2774]: Using locktype = flock
Jun 30 18:12:01 pipin MailScanner[2777]: Enabling SpamAssassin auto-whitelist functionality...


are you sure spamassassin is installed? , and if a ***SPAM*** is added to the subject line of the spamm e-mails then spamassassin is working, the only thing you need to change is, check for a deliver spamm in MailScanner main config file. Search for a Spamm Actions = , and change it to some other value, also make sure that Use SpammAssassin = Yes.

I won't be able to respond regulary , and I'm really sorry.

Sincerely
Robert B


--------------------
Robert Becskei
robert83@linuxhelp.net
--------------------
May the source be with us!
--------------------
AMD X2-3800 @ 2400Mhz
2048MB DDR 400Mhz
DFI Lanparty UT4 NF4 ULTRA-D
GeForce 7800GT
250GB+250GB
Pioneer DVD-RW
17inch Samsung Syncmaster 757NF
WinXP Pro (SP2)/ CentOS 4.3
--------------------
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 12th December 2017 - 09:23 AM