• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question Mail() in chrooted environment

cool_sh

Basic Pleskian
Hi there,

i was wondering if anyone of you has sendmail configured to use it in an chrooted environment and has instructions for it?

CentOS 7.3 / Onyx 17.5.3 #4

Best regards
 
I think that this cannot be done, because sendmail is not just a program that is run standalone, but a daemon. On a server, this needs to control port 25, so there can only be one sendmail (or other smtp service). If you allow a subscription to access the daemon, the daemon could be controlled by that subscription e.g. stopped, restarted, reconfigured etc., which in turn could badly affect other subscriptions (they'd become dependent on the mercy of the one subscription owner who can access sendmail). It is not possible to have a second, alternative instance of sendmail in the chrooted environment, because this would conflict with the port 25 requirement. The only thing you could maybe do is to have another smtp service run on a different port, but what sense would this make? However, of course you can use the daemon's service from the chrooted environment (meaning you can use port 25 to send mail through it).
 
Hm,

the problem is that using "mail -s" in a chrooted environment is not working:

/usr/sbin/sendmail: No such file or directory
"//dead.letter" 9/247
. . . message not sent.
 
Have you guys found a solution?

If you have mail services enabled for this domain you can use smtp authentication perhaps, however, in my situation we can not enable mail service for that domain as it's hosted externally (and you don't want that mail getting delivered locally!).

Any more ideas?
 
i have the same situation...

i cannot give the user normal bash rights... they can see the hole system, include another domains and can read all files... thats a fatal security break...
Or how can i "chroot" a normal bash user to there own homedir and have no access to another files?
 
Back
Top