跳过导航链接 | |
退出打印视图 | |
![]() |
手册页第 1 部分:用户命令 Oracle Solaris 11.1 Information Library (简体中文) |
- provide SunOS compatibility for Solaris mailbox format
mailcompat is a program to provide SunOS 4.x compatability for the Solaris mailbox format. You would typically run mailcompat to be able to read mail on a workstation running SunOS 4.x when your mail server is running Solaris.
Enabling mailcompat creates an entry in your .forward file, if it exists. If this file does not exist, mailcompat will create it. Disabling mailcompat will remove the entry from the .forward file, and if this was the only entry, will remove the entire file.
To execute mailcompat, log onto the Solaris mail server and enter mailcompat on the command line. Answer the queries provided by the program.
See largefile(5) for the description of the behavior of mailcompat when encountering files greater than or equal to 2 Gbyte ( 231 bytes).
Depending on the security settings in your system, mailcompat can fail to create a .forward file. If you encounter such a failure, take the steps outlined below.
As root user or user with comparable privileges, enter:
% sendmail -bv $USER
You receive one of the following two messages. The string fwtest is for example purposes only.
fwtest... deliverable: mailer local, user fwtest "|/usr/bin/mailcompat fwtest"... deliverable: mailer prog,\ user "|/usr/bin/mailcompat fwtest"
The first message, with the local designation, indicates that mailcompat was not able to create the .forward file. The second message, with the prog designation, means that mailcompat succeeded in creating .forward.
As a further check, invoke:
% check-permissions $USER
You should get the message:
No unsafe directories found.
If you get a message different from this, it might indicate a reason for mailcompat failure. You should correct any conditions pointed out by the message before retrying mailcompat.
示例 1 Examples of the mailcompat feature.
The following example enables the mailcompat feature for the user john.
example% mailcompat This program can be used to store your mail in a format that you can read with SunOS 4.X based mail readers To enable the mailcompat feature a ".forward" file is created. Would you like to enable the mailcompat feature? Y Mailcompat feature ENABLED.Run mailcompat with no arguments to remove it example%
The following example disables the mailcompat feature for the user john.
example% mailcompat This program can be used to store your mail in a format that you can read with SunOS 4.X based mail readers You have a .forward file in your home directory containing: "|/usr/bin/mailcompat johns" Would you like to remove it and disable the mailcompat feature? y Back to normal reception of mail. example%
list of recipients for forwarding messages
See attributes(5) for descriptions of the following attributes:
|