Help - Search - Members - Calendar
Full Version: Questions About Centos 4 + Postfix + Ldap Tutorial
Linuxhelp > Support > Technical Support
keith
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?
Robert83
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
keith
So if I was going to install Apache and PHP should I do this before or after your tutorial?
Robert83
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
keith
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.
keith
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
keith
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.
keith
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
Robert83
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
keith
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]
Robert83
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
sainigaurav_gs
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
keith
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
keith
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.
loribas
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
keith
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?
keith
Anyone?
keith
Still looking for help on this. You around Robert83?
Robert83
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
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.