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
2 Pages V   1 2 >  
Reply to this topicStart new topic
> Centos 4 Postfix Guide
Robert83
post Mar 19 2005, 09:54 AM
Post #1


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

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



Hello everyone,

I just managed to get it running , under CentOS 4

Postfix + Dovecot + Cyrus-SASL + OpenLDAP + MailScanner (ClamAV+MailScanner)(this one not needing two postfix) + Squirrelmail + Tomcat + Jamm ... Virtual Domain , Virtual Users .

I'm currently documenting my steps (and installing it via those steps, so it is going to be accurate for CentOS 4.0) , the question is, I've tried wiki (really smile.gif ) , but I kinda found it hard to do this right (to make it look good, and the OpenLDAP part gotta have those tabs and spaces in it just like in my config) , ...so cutting it short.

Once I'm done with this guide (skeleton) thingie, anyone interested in posting it to the wiki ? it will need some aditional comment if needed(explanation) , but it will also work if you follow it step-by-step


Sincerely
Robert B

ps.: based upon Peter Lacey (http://wanderingbarque.com/howtos/mailserver/mailserver.html), and Johnny Hughes postfix guide (the MailScanner part) + added some aditional settings.


--------------------
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
TechXP
post Apr 2 2005, 08:01 AM
Post #2


Whats this Lie-nix Thing?
*

Group: Members
Posts: 3
Joined: 2-April 05
Member No.: 4,816



Is this documentation already online?

I have some problems with dovecot and postfix.
I can email and receive, but then when I want to get it with a imap client it gives errors.
I got it first working, but then I only got empty messages. The errors were about:
Failed with index file /home/mail/mydomain.nl/info/.INBOX/.imap.index: Operation not permitted

And I also got errors now with: Failed to create storage with data: /home/mail/mydomain.nl/alex/

Can you help me? How can I set the permissions right? It looks like it doesn't set it right?

I am using centos 3.4

thank you,

Alex
Go to the top of the page
 
+Quote Post
Robert83
post Apr 2 2005, 09:14 AM
Post #3


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

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



Hi,

I think you might have forgotten to set the premissions fot the /home/vmail/mydomain/user

if you used vmail user

then you must make /home/vmail/
and /mydomain
and /user

owned by vmail vmail
and be rwxrwx ---

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
TechXP
post Apr 2 2005, 01:09 PM
Post #4


Whats this Lie-nix Thing?
*

Group: Members
Posts: 3
Joined: 2-April 05
Member No.: 4,816



I created the vmail user and I now get the following messages:

Apr 2 20:13:06 APOLLO imap(alex@mydomain.nl): open() failed with file /home/mail/mydomain.nl/alex//.INBOX/.imap.index: Permission denied
Apr 2 20:13:06 APOLLO imap(alex@mydomain.nl): open() failed with file /home/mail/mydomain.nl/alex//dovecot-uidlist: Permission denied
Apr 2 20:13:11 APOLLO imap-login: Login: alex@mydomain.nl [62.251.91.191]
Apr 2 20:13:11 APOLLO imap(alex@mydomain.nl): lstat(/home/mail/mydomain.nl/alex//.Trash/cur) failed: Permission denied

If I look at the files: /home/mail/mydomain.nl/alex/

drwx------ 7 vmail vmail 4096 Apr 2 20:13 .
drwx------ 3 vmail vmail 4096 Apr 2 20:10 ..
drwx------ 2 vmail vmail 4096 Apr 2 20:10 cur
---------- 1 vmail vmail 5 Apr 2 20:10 .customflags
---------- 1 vmail vmail 53 Apr 2 20:13 dovecot-uidlist
d--------- 2 vmail vmail 4096 Apr 2 20:10 .INBOX
drwx------ 2 vmail vmail 4096 Apr 2 20:10 new
drwx------ 2 vmail vmail 4096 Apr 2 20:10 tmp
d--------- 2 vmail vmail 4096 Apr 2 20:10 .Trash

The file dovecot-uidlist has no rights? I get these errors when I want to get my mail.
I can get my mail now, also I can read it, and also I can send mail, etc.
Only I get these errors in my log. Also I cannot create subdirs. Then it gets also permission errors. Also when I send a mail it cannot write tot the send directory.

My /home/mail directory:
drwxrwxrwx 4 vmail vmail 4096 Apr 2 20:10 mail
I also tries it with the
drwxrwx--- 4 vmail vmail 4096 Apr 2 20:10 mail


It is something with the permissions, but I can't figure it out what to do?

thank you,

Alex
Go to the top of the page
 
+Quote Post
Robert83
post Apr 4 2005, 03:29 AM
Post #5


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

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



Hi,

for me it is

rwxrwx /home/vmail/ vmail user vmail group
and everything under it has the same premission

also check that the uid gid if vmail uid gid is 500 ( it can be any other number, this is just a example, for me it was 501 on a clean system)

check postfix main.cf
dovecot.conf
and any other conf you have specified the uid gid

to check the uid and gid of vmail just look at /etc/passwd file

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
TechXP
post Apr 5 2005, 06:37 AM
Post #6


Whats this Lie-nix Thing?
*

Group: Members
Posts: 3
Joined: 2-April 05
Member No.: 4,816



Thank you I did a chmod -R 770 on the map and it looks like it is working now.

Thank you again! smile.gif

greetings,

Alex
Go to the top of the page
 
+Quote Post
baerrs
post Apr 15 2005, 12:44 PM
Post #7


Whats this Lie-nix Thing?
*

Group: Members
Posts: 1
Joined: 15-April 05
Member No.: 4,878



Robert83,
Not to push... are you able to give a date of when the doc might be ready for review ??
Go to the top of the page
 
+Quote Post
Robert83
post Apr 16 2005, 04:42 PM
Post #8


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

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



Hi,

baerrs, I think I will start it tomorrow or moday (since noone was interested in doing it smile.gif ), it will take a few days to make it , mostly because ldap stuff....


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
Robert83
post Apr 18 2005, 03:36 AM
Post #9


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

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



done
its under the guides section of this forum


--------------------
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
ethan
post Apr 21 2005, 07:16 PM
Post #10


Whats this Lie-nix Thing?
*

Group: Members
Posts: 17
Joined: 21-April 05
Member No.: 4,901



After following your guide, i got the
ldap_bind: Invalid Credential(49) error when i try to put in
ldapadd -x -D "cn=Manager,dc=mycompany,dc=hosting" -W -f base.ldif

Any ideaS?Urgent help is needed
Go to the top of the page
 
+Quote Post
Robert83
post Apr 22 2005, 06:05 AM
Post #11


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

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



Hi,

will recheck my guide, since It was originaly written using my companies names everywhere, and I did a search & replace on it...

but till then if you changed mycompany.hosting to let's say abmass.biz then you would use

ldapadd -x -D "cn=Manager,dc=abmass,dc=biz" -W -f base.ldif

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
Robert83
post Apr 22 2005, 06:28 AM
Post #12


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

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



Hi,

also run this command
replace dc=mycompany,dc=hosting with your own domain name, like dc=bigcompany,dc=com

ldapsearch -x -b "dc=mycompany,dc=hosting" "(ObjectClass=*)" | grep Manager

and should give something like

# Manager, mycompany.hosting
dn: cn=Manager,dc=mycompany,dc=hosting
cn: Manager

hope this helps, I wrote the guide while I was installing the system, and then i reinstalled the system via that guide, I don't say I'm perfect and never make mistakes, but I checked at the guide and it looks good.

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
therion
post Apr 22 2005, 07:04 AM
Post #13


Whats this Lie-nix Thing?
*

Group: Members
Posts: 2
Joined: 22-April 05
Member No.: 4,904



Where is the guide? i donf find it sad.gif
Go to the top of the page
 
+Quote Post
ethan
post Apr 22 2005, 07:12 AM
Post #14


Whats this Lie-nix Thing?
*

Group: Members
Posts: 17
Joined: 21-April 05
Member No.: 4,901



Here it is..
http://www.linuxhelp.ca/forums/index.php?a...t=ST&f=3&t=6056
Go to the top of the page
 
+Quote Post
therion
post Apr 22 2005, 08:25 AM
Post #15


Whats this Lie-nix Thing?
*

Group: Members
Posts: 2
Joined: 22-April 05
Member No.: 4,904



QUOTE (ethan @ Apr 22 2005, 07:12 AM)

A lot of thanks, ldap is my nightmare dry.gif
Go to the top of the page
 
+Quote Post
variable
post Apr 22 2005, 03:44 PM
Post #16


Whats this Lie-nix Thing?
*

Group: Members
Posts: 1
Joined: 22-April 05
Member No.: 4,906



whenever i get to this part:

/etc/init.d/ldap start

i get this :

[root@mymail ~]# /etc/init.d/ldap start [FAILED]
Checking configuration files for : /etc/openldap/schema/jamm.schema: line 95: AttributeType not found: "mail"
slaptest: bad configuration file!

i cant figure out, as i have no real clue as to what is happening? when it comes to linux
Go to the top of the page
 
+Quote Post
ethan
post Apr 23 2005, 02:28 AM
Post #17


Whats this Lie-nix Thing?
*

Group: Members
Posts: 17
Joined: 21-April 05
Member No.: 4,901



Thanks Robert coz help me in the ldap stuff. I follow ur guide and found that there are some unclear part on the guide, such as the part in main.cf for postfix. Is it follow exactly there or do some modification on the original main.cf. Between, would you mind to post up all ur configuration file for the setup, like what hughesjr did, as this would be a great start for the beginner like me. Between, anyone is interested on the guide for centos4+snort+BASE+syslog-ng+mysql and so on to setup the NIDS system?let me know coz i just finish set it up for my company.Thanks
Go to the top of the page
 
+Quote Post
ethan
post Apr 23 2005, 11:04 AM
Post #18


Whats this Lie-nix Thing?
*

Group: Members
Posts: 17
Joined: 21-April 05
Member No.: 4,901



Hi, its me again. This time i wish to ask how is the configuration part of the squirrel mail?
is it follow the same config from hughesjr site for the postfix.
second, what is the password and user name refer to when we start using jamm for the first time?
third, how can we enter the new password for the user , for example after creating the /home/vmail/domains/example.com/robert, is it from jamm there?

Urgent clarification is appreciated, and thanks in advance for any help.
Go to the top of the page
 
+Quote Post
Robert83
post Apr 24 2005, 06:29 AM
Post #19


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

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



Hi,

the password is what you entered for manager , the part where you configure openldap you generate this password.

so to login to jamm use username : Manager
password : whatyouusedformanager (see config openldap part)

1. use jamm to create the e-mail account
2. create manually the directories for that e-mail account

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
Robert83
post Apr 24 2005, 06:36 AM
Post #20


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

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



Hi,

I used parts from his guide... but you can configure squirrelmail using my guide as well, I don't go into to much detail, but once you run
CODE
cd /home/webpage/webmail/config
perl ./conf.pl


you'll see that its pretty easy to configure it, since you only need to change your logo , company name... I didn't touch anything else...it works , it's good software smile.gif

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

2 Pages V   1 2 >
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: 23rd October 2017 - 08:44 AM