Current time: 05-17-2024, 11:16 AM Hello There, Guest! (LoginRegister)


Post Reply 
[FreeBSD] Need solutions for a chrooted Postfix & Cron
Author Message
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #3
RE: [FreeBSD] Need solutions for a chrooted Postfix & Cron
Quote:Try

mv /usr/local/etc/sasldb2 /var/spool/postfix/usr/local/etc/sasldb2
ln -s /var/spool/postfix/usr/local/etc/sasldb2 /usr/local/etc/sasldb2

+1 Should work (reason: you can not go from inside the chroot to the outside through a symlink, but you *can* access the chrooted files from the outside).

Quote:FreeBSD has a crontab for root under /var/cron/tabs/root.
So we need to change the name for the Cron-File from "ispcp" to "root" and copy them under /var/cron/tabs/root.

Directly copying files to /var/cron/tabs is not recommended. Additionally, /var/cron/tabs/root follows the "user crontab" format (you can not specify the user as which the command will be executed). Therefore, it would be better to use /etc/crontab (which is available in FreeBSD too). Now, what I don't know is if there's any command in there by default, so that if we replace the file something would be lost...
03-23-2010 12:13 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: [FreeBSD] Need solutions for a chrooted Postfix & Cron - kilburn - 03-23-2010 12:13 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)