Results 1 to 5 of 5

Thread: Mail directory in Secure Shell ( SSH )

  1. #1
    Join Date
    Nov 2008
    Posts
    45

    Mail directory in Secure Shell ( SSH )

    A Freind running Open Server 6 reported that if he was connected via SSH then he could not read his email (on SCO), but could if he was connected via telnet. Some research revealed that a telnet login set MAIL differently from what an SSH login set it. Looking at the OpenSSH source, it appears that there is a build-time option for what the mail directory is. He's using the standard sshd delivered by SCO. I am too, and it exhibits the same behavior. Is this a build bug on SCO's part ?

  2. #2
    Join Date
    May 2008
    Posts
    181

    Re: Mail directory in Secure Shell ( SSH )

    Quote Originally Posted by Nobleman View Post
    A Freind running Open Server 6 reported that if he was connected via SSH then he could not read his email (on SCO), but could if he was connected via telnet. Some research revealed that a telnet login set MAIL differently from what an SSH login set it. Looking at the OpenSSH source, it appears that there is a build-time option for what the mail directory is. He's using the standard sshd delivered by SCO. I am too, and it exhibits the same behavior. Is this a build bug on SCO's part ?
    What is in the user's ~/.profile and /etc/profile to set the MAIL environment variable? The default settings on SCO are probably /usr/spool/mail/username which doesn't work for me as we use Maildir stores where the MAIL=$HOME/Maildir so it has to be set in the $HOME/.profile file.

    There are several options to ssh in openssh including using the file ~/.ssh/environment on the remote machine to set environment variables, which may or may not be allowed depending on the setting of PermitUserEnvironment in the destination machines sshd_config file.

  3. #3
    Join Date
    Nov 2008
    Posts
    45

    Re: Mail directory in Secure Shell ( SSH )

    Quote Originally Posted by Marco-D View Post
    What is in the user's ~/.profile and /etc/profile to set the MAIL environment variable? The default settings on SCO are probably /usr/spool/mail/username which doesn't work for me as we use Maildir stores where the MAIL=$HOME/Maildir so it has to be set in the $HOME/.profile file.

    There are several options to ssh in openssh including using the file ~/.ssh/environment on the remote machine to set environment variables, which may or may not be allowed depending on the setting of PermitUserEnvironment in the destination machines sshd_config file.
    In my standard install, there is nothing in these files relative to MAIL. The 'man login' seems to indicate that the MAIL default is built into the login program. Yes, there are various ways to fix the problem. But I still contend that there IS a problem in the software as it is delivered.

  4. #4
    Join Date
    Oct 2008
    Posts
    86

    Re: Mail directory in Secure Shell ( SSH )

    Quote Originally Posted by Nobleman View Post
    A Freind running Open Server 6 reported that if he was connected via SSH then he could not read his email (on SCO), but could if he was connected via telnet. Some research revealed that a telnet login set MAIL differently from what an SSH login set it. Looking at the OpenSSH source, it appears that there is a build-time option for what the mail directory is. He's using the standard sshd delivered by SCO. I am too, and it exhibits the same behavior. Is this a build bug on SCO's part ?
    I just tried telnet and ssh to my account on an OSR6/MP2 machine, and then to my account on an OSR6/MP3 machine. In both telnet cases, MAIL was set to /usr/spool/mail/jpr. In both ssh cases, MAIL was set to /var/spool/mail/jpr. But on OSR6, that's six of one and half a dozen of the other.

  5. #5
    Join Date
    Nov 2008
    Posts
    45

    Re: Mail directory in Secure Shell ( SSH )

    Quote Originally Posted by DAIJIRO View Post
    I just tried telnet and ssh to my account on an OSR6/MP2 machine, and then to my account on an OSR6/MP3 machine. In both telnet cases, MAIL was set to /usr/spool/mail/jpr. In both ssh cases, MAIL was set to /var/spool/mail/jpr. But on OSR6, that's six of one and half a dozen of the other.
    I have MP2, and my MAIL is set to /var/mail/ras.
    Are you running a standard sshd as delivered by SCO, or did you build it ? Can you tell what version it is?

Similar Threads

  1. Some quick tips to secure Active Directory from threats
    By Nimmee in forum Active Directory
    Replies: 3
    Last Post: 06-06-2013, 03:31 PM
  2. F-Secure E-Mail Contains Malware
    By FrancoL in forum Networking & Security
    Replies: 7
    Last Post: 26-06-2011, 09:48 PM
  3. Network activity permanently under Secure Shell or SSH
    By TheHibiscus in forum Networking & Security
    Replies: 4
    Last Post: 21-01-2011, 07:41 PM
  4. Secure emails with UserGate mail server
    By TechGate in forum Reviews
    Replies: 2
    Last Post: 02-10-2010, 06:59 PM
  5. PHP Secure E-mail
    By Castle in forum Technology & Internet
    Replies: 3
    Last Post: 18-05-2009, 10:18 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,718,991,420.75534 seconds with 17 queries