[PREVIOUS CHAPTER] [NEXT CHAPTER]
4 MTA specific problems

4.1	Error message examples

   ----- The following addresses had permanent fatal errors -----
   ----- Transcript of session follows -----

	Quota exceeded


   ----- The following addresses had permanent fatal errors -----
<rudo@nui.fml.org

   ----- Transcript of session follows -----
procmail: Quota exceeded while writing "/var/spool/mail/rudo"
550 <rudo@nui.fml.org>... Can't create output


4.2	Typical error messages

	error		origin
	--------------------------------------------------------
	unsafe		permission of files or directories

	loop		/etc/aliases miss-configuration
			did not newaliases

	user unknown	no such user
			/etc/aliases miss-configuration
			did not newaliases

	sh: fml.pl not available
			you use smrsh? properly configured?


	Quota exceeded	Quota exceeded	


4.3	Can't locate getopts.pl in @INC at makefml line 104.	


The installation of perl fails. Please install perl again!


4.4	You fails to use :include: form in /etc/aliases


The following reasons are possible:


* your mail system do not support include form.
  You may require C-Wrapper (see below). 


* "include" file exists in an insecure directory.
  Please check the whole hierarchy permission from / to the "include".
  check	/usr, /usr/local, /usr/local/fml, ... and chmod 755 them!


4.5	553 machine-name host name configuration error


An OS's sendmail causes this error but Sendmail R8 has such codes so I
cannot understand what this error is.  Please ask the vendor. 


4.6	Executable files not allowed 

aliase database /etc/aliases rebuilt by root
cannot open /var/spool/ml/etc/aliases 
Executable files not allowed 


disable executable bit.
% chmod a-x /var/spool/ml/etc/aliases


4.7	Insecure dependency in chdir, Permission denied, ... 


traverse file system from / and check permissions.

4.8	sh: fml.pl not available for sendmail programs


If you see the following messages, tackle with smrsh.

      ----- The following addresses had permanent fatal errors -----
   "|/usr/local/fml/fml.pl /var/spool/ml/elena "
       (expanded from: :include:/var/spool/ml/elena/include)

      ----- Transcript of session follows -----
   sh: fml.pl not available for sendmail programs
   554 "|/usr/local/fml/fml.pl /var/spool/ml/elena "... Service unavailable


If you find Mprog in sendmail.cf, you use smrsh.

Mprog,                P=/bin/sh, F=lsDFMoqeu9, S=10/30, R=20/40, D=$z:/,


   fml-support:  07458


	require default_config.ph 


push(@LIBDIR, "/usr/local/fml");
push(@INC,   "/usr/local/fml");
1;

# ln -s /usr/local/fml/fml.pl /usr/adm/sm.bin
# ln -s /usr/local/fml/libloadconfig.pl /usr/adm/sm.bin/


References: fml-support ML:

	01877,01879,01881
	03942,03944,03965
	05706,05708,05712,05715,05721,05722,05723,05724,05725,05726,05727,05728
	07458,07733


4.9	:include: ... is unsafe for mailing to program ...

* check read and write permission through :include: file path.
* check chownsafe() of sendmail return value. Sendmail package has
test programs in "test" directory
(e.g. /usr/src/usr.sbin/sendmail/test/).


4.10	include's owner != config.ph's owner.


This is just a warning but it may be a possibility that your
permission is invalid. Please check files under $DIR/.


4.11	/var/spool/ml/src/fml.pl: permission denied


Run "ls -l fml.pl" to check to show 

	rwxr-xr-x 


executable permission of perl is lost?


4.12	550 User %s@%s doesn't have a valid shell for mailing to programs


Please add the shell which sendmail uses to /etc/shells.

* /usr/src/usr.sbin/sendmail/src/

	else if (bitset(QBOGUSSHELL, a->q_alias->q_flags)) {
	  a->q_flags |= QBADADDR;
	  a->q_status = "5.7.1";
	  if (a->q_alias->q_ruser == NULL)
	    usrerr("550 UID %d is an unknown user: cannot mail to programs",
		   a->q_alias->q_uid);
	  else
	    usrerr("550 User %s@%s doesn't have a valid shell for mailing to programs",
		   a->q_alias->q_ruser, MyHostName);
	}
	else if (bitset(QUNSAFEADDR, a->q_alias->q_flags))


  if (!usershellok(pw->pw_name, pw->pw_shell)) {
    a->q_flags |= QBOGUSSHELL;
  }


4.13	sh: /var/spool/ml/src/fml.pl: No such file or directory


It implies no file but it implies several possibilities
	* fml.pl is not found
	* perl is not found
	...


4.14	sh: /var/spool/ml/src/fml.pl: command not found


It implies no file but it implies several possibilities
	* fml.pl is not found
	* perl is not found. 
	The first line "#!/usr/local/bin/perl" determines the 
	location of perl.
	...

[PREVIOUS CHAPTER] [NEXT CHAPTER]