Define the Environment Variable GWCONFIG 
Use
Path and file names of the configuration profile are specified in the environment variable GWCONFIG, so that program Mlunxsnd can access the profile.
Procedure
Windows NT
Call up the system control, select the file system and the tab page environment, and enter under System variables the names of the variable and the corresponding value.

Variable |
Value |
GWCONFIG |
C:\sendmail\SIMG\C11_mailconfig |
Unix
Write a shell script in which you set the environment variable GWCONFIG and start program Mlunxsnd, and assign the shell script execute rights. The variable must be set in the Mlunxsnd environment.

Example of the script if Mlunxsnd registration is activated:

Example of the script if Mlunxsnd is activated via start:

Note that the option $* must be set behind the path- and file specification of Mlunxsnd so that the program parameter can be transferred.
OS/400
Write a CL program (CL stands for control language) in which you set the environment variable GWCONFIG and start program Mlunxsnd:
ADDENVVAR ENVVAR(GWCONFIG) VALUE('<configuration file>')
ADDENVVAR ENVVAR(GWTRACE) VALUE('3')
ADDENVVAR ENVVAR (GWTRACEOUT) VALUE('/tmp/traceout.txt')
SBMJOB CMD(CALL MLUNXSND PARM('-a' <RFC_Program_ID>' '-g' '<Host>' '-x' '<sapgwnn>')) JOB(MLUNXSND) CPYENVVAR(*YES)
<Host>
is the host from which the R/3 Gateway runs, <RFC_Program_ID> is the program name that you have defined via transaction SM59, and <sapgwnn> is the gateway service of the R/3 instance ( nn stands for the instance number).