#1  
Old 12th July 2007, 07:20
knivla knivla is offline
Junior Member
 
Join Date: Jul 2007
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default Postfix chroot ?

hi
i have a problem how to chroot the postfix? because my postfix don't have chroot, any docs,links are appreciated.

i need to run the mailscanner but it doesn't work, all the messages are hold to queue.

i read this howto :Virtual Users With Postfix, PostfixAdmin, Courier, Mailscanner, ClamAV On CentOS - Page 8
Make sure you have the chroot jail set up in /var/spool/postfix. You should be able to see etc, usr and lib directories inside /var/spool/postfix). If you haven't got the chroot jail setup already, then look in the examples directory of the Postfix documentation and you will find a script in there to set up it up for your operating system. If you can't find that, then see the "Problems or Errors" section further down this page.

and i can't find,


waiting for reply
knivla
Reply With Quote
Sponsored Links
  #2  
Old 13th July 2007, 12:57
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

What's in /etc/postfix/master.cf?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 14th July 2007, 11:51
knivla knivla is offline
Junior Member
 
Join Date: Jul 2007
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default cat /etc/resolv.conf, big thanks falko, you made me linux user.

Step by step problem
hi falko,

this is my problem. i fallowed the perfect Server 4.5 centos. everything works fine. i can send mail to internet and received.
i need to setup a mailscanner and the requirements is
sh postfix-chroot.sh enable
and i cant find the /etc/postfix/postfix-chroot.sh, so i download the rpm postfix-2.4.3-1.rhel4.i386.rpm & installed it. now the postfix-chroot.sh appear in /etc/postfix/postfix-chroot.sh and run the chroot script


[root@dns1 tmp]# rpm -Uvh postfix-2.4.3-1.rhel4.i386.rpm
Preparing... ########################################### [100%]
1ostfix ########################################### [100%]
postfix/postfix-script: warning: /var/spool/postfix/etc/passwd and /etc/passwd differ
warning: /usr/lib/sasl2/smtpd.conf saved as /usr/lib/sasl2/smtpd.conf.rpmsave


and telnet. no more plain login


[root@dns1 tmp]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 dns1.domain.edu.ph ESMTP Postfix
ehhlo locahost
502 5.5.2 Error: command not recognized
ehlo localhost
250-dns1.domain.edu.ph
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN


all i notice is plain login is missing now.

can i install the mailscanner without using the chroot ?if will, no need to update the postfix


waiting for reply
knivla
Edit/Delete Message

Last edited by knivla; 9th July 2009 at 01:35.
Reply With Quote
  #4  
Old 15th July 2007, 13:05
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

What's in /usr/lib/sasl2/smtpd.conf now?
Are /etc/postfix/main.cf and /var/spool/postfix/etc/postfix/main.cf identical? If not, copy /etc/postfix/main.cf to /var/spool/postfix/etc/postfix and restart Apache.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 16th July 2007, 04:22
knivla knivla is offline
Junior Member
 
Join Date: Jul 2007
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default What's in /usr/lib/sasl2/smtpd.conf now?

hi falko,

the /usr/lib/sasl2/smtpd.conf now renamed to smtpd.conf.rpmsave
and i renamed it to smtpd.conf and telnet..still the plain login is missing...


Are /etc/postfix/main.cf and /var/spool/postfix/etc/postfix/main.cf identical? If not, copy /etc/postfix/main.cf to /var/spool/postfix/etc/postfix and restart Apache.



There is no /var/spool/postfix/etc/postfix/main.cf do I need to copy the all files in /etc/postfix/ or just only main.cf ?


if still doesn't work... i will not install the mailscanner.


Thanks Falko the great
Reply With Quote
  #6  
Old 16th July 2007, 07:36
knivla knivla is offline
Junior Member
 
Join Date: Jul 2007
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default Postfix chroot

Hi falko,


i have a question, why if i install from yum install postfix the smtpd.conf appear in /usr/lib/sasl2/smtpd.conf and no chroot script

Why if i install this rpm postfix-2.4.3-1.rhel4.i386.rpm the smtpd doesn't appear ?and does have chroot script? any idea ?


Thanks, waiting for your reply

knivla
Reply With Quote
  #7  
Old 17th July 2007, 17:09
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Quote:
Originally Posted by knivla
hi falko,

the /usr/lib/sasl2/smtpd.conf now renamed to smtpd.conf.rpmsave
and i renamed it to smtpd.conf and telnet..still the plain login is missing...
What's in /usr/lib/sasl2/smtpd.conf?

Quote:
Originally Posted by knivla
There is no /var/spool/postfix/etc/postfix/main.cf do I need to copy the all files in /etc/postfix/ or just only main.cf ?
Copy all files from /etc/postfix to /var/spool/postfix/etc/postfix and restart Postfix.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 18th July 2007, 03:40
knivla knivla is offline
Junior Member
 
Join Date: Jul 2007
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default smtpd.conf

hi falko,


[alvin@dns1 sasl2]$ cat smtpd.conf
pwcheck_method: saslauthd
mech_list: plain login
Reply With Quote
  #9  
Old 19th July 2007, 14:11
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Looks ok.
What's in /etc/postfix/main.cf (please strip out the comments)?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #10  
Old 21st July 2007, 06:35
knivla knivla is offline
Junior Member
 
Join Date: Jul 2007
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default What's in /etc/postfix/main.cf

hi falko,


I'm done,

i din't use the chroot anymore .. maybe later... and no mailscanner


and works like a charm...


tnx falko the great

Last edited by knivla; 9th July 2009 at 01:36.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Issues with Postfix using "Virtual Users And Domains With Postfix, Courier And MySQL" Kyse HOWTO-Related Questions 15 6th January 2007 15:35
Occasional high load on the server. kanour General 5 21st November 2006 11:27
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 15:47
Verify email setup meekish Installation/Configuration 28 27th October 2006 15:36
postfix starts and stops why lhatle Installation/Configuration 2 21st December 2005 15:20


All times are GMT +2. The time now is 18:22.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.