Export to GitHub

addmail - issue #1

Program Failing /bin/chown: cannot access ‘/home/vmail/{$domain}’: No such file or directory


Posted on May 31, 2014 by Helpful Bear

What steps will reproduce the problem? 1. executing the program addmail-1.1.exe to try to add a user

What is the expected output? What do you see instead? Please see below

What version of the product are you using? On what operating system? addmail-1.1

Please provide any additional information below. The compiler produced a warning regarding an SDK, but it indicated that it was successful

The message indicates that the directory doesn't exists, here is listing of the directory mundo@earth:~$ cd /home/vmail mundo@earth:/home/vmail$ ls Maildir yopeace.us mundo@earth:/home/vmail$

I am running this in ubuntu 14.04 LTS, below is a snapshot of the screen messages.

mundo@earth:~$ sudo addmail-1.1.exe info@yopeace.us XXXX [sudo] password for mundo: addmail v1.1 -- csharp/mono

using E-Mail : info@yopeace.us using Password : XXXX using User : info using Domain : yopeace.us using Hash : $$$$$$$

Continue? (y/n) y postfix/postfix-script: refreshing the Postfix mail system /bin/chown: cannot access ‘/home/vmail/{$domain}’: No such file or directory /bin/chmod: cannot access ‘/home/vmail/{$domain}’: No such file or directory

Unhandled Exception: System.ComponentModel.Win32Exception: ApplicationName='/etc/init.d/dovecot', CommandLine='restart', CurrentDirectory='', Native error= Cannot find the specified file at System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000] in <filename unknown>:0 at System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000] in <filename unknown>:0 at System.Diagnostics.Process.Start () [0x00000] in <filename unknown>:0 at (wrapper remoting-invoke-with-check) System.Diagnostics.Process:Start () at jcomm.addmail.runAndCatch (System.String cmd, System.String arg) [0x00000] in <filename unknown>:0 at jcomm.addmail.Main (System.String[] args) [0x00000] in <filename unknown>:0 [ERROR] FATAL UNHANDLED EXCEPTION: System.ComponentModel.Win32Exception: ApplicationName='/etc/init.d/dovecot', CommandLine='restart', CurrentDirectory='', Native error= Cannot find the specified file at System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000] in <filename unknown>:0 at System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000] in <filename unknown>:0 at System.Diagnostics.Process.Start () [0x00000] in <filename unknown>:0 at (wrapper remoting-invoke-with-check) System.Diagnostics.Process:Start () at jcomm.addmail.runAndCatch (System.String cmd, System.String arg) [0x00000] in <filename unknown>:0 at jcomm.addmail.Main (System.String[] args) [0x00000] in <filename unknown>:0

Status: New

Labels:
Type-Defect Priority-Medium