MTA
From ISPWiki
The control panel supports multiple Mail Transfer Agents (MTA) for you to choose one you like. To configure the control panel and a mail agent, you need to add parameters listed below into the configuration file and execute the command:
killall ispmgr
Contents |
Sendmail
To run Sendmail, add the following parameter into the configuration file:
MTA sendmail
Provide the paths to the following configuration files and programs:
- aliases - the location of the text version of the alias file(s).
- local-host-names - the file containing the domains for which you want mail to be delivered.
- newaliases - the program that rebuilds the random access data base for the mail aliases file.
- sasl - the program for managing passwords for SMTP AUTH authorization.
- sendmail.pid - the file containing the number of the sendamil process. It is used to restart it if local-host-names was modified.
- virtusertable - virtual users and domain tables.
Example,
MTA sendmail path aliases /etc/mail/aliases path local-host-names /etc/mail/local-host-names path newaliases /usr/bin/newaliases path sasl /usr/local/sbin/saslpasswd2 path sendmail.pid /var/run/sendmail.pid path virtusertable /etc/mail/virtusertable
If you use a non-standard procedure to restart sendmail, for example, you need to restart another program together with Sendmail, you need to describe the restart procedure in the script and provide a full path to this script in the path SendmailRestart parameter of the control panel configuration file, such as,
path SendmailRestart /usr/local/sbin/my_restart_sendmail.sh
If nothing is specified, the command "kill -1 `head -1 /var/run/sendmail.pid`" is used.
Postfix
To run Postfix, add the parameter below to the configuration file:
MTA postfix
You need to provide paths to the following configuration files and programs:
- aliases - the location of the text version of the alias file(s).
- local-host-names - the file containing the domains for which you want mail to be delivered.
- newaliases - the program that rebuilds a database for the mail aliases file.
- postfix - postfix executable file. This path is used to restart the system if local-host-names was modified.
- postmap - the program for creating a base from the virtusertable text file.
- sasl - the program for managing passwords for SMTP AUTH authorization.
- virtusertable - virtual users and domain tables.
Example,
MTA postfix path aliases /etc/mail/aliases path local-host-names /etc/mail/local-host-names path newaliases /usr/bin/newaliases path sasl /usr/local/sbin/saslpasswd2 path postfix /usr/local/sbin/postfix path postmap /usr/local/sbin/postmap path virtusertable /etc/mail/virtusertable
Exim
To run Exim, add the parameter below into the configuration file:
MTA exim
You need to provide paths to the following configuration files and programs:
- exim.conf - the email server configuration file.
- aliases - the location of the text version of the alias file(s).
- exim-users - the file providing correspondence of an address to a user.
- exim-virtualdomains - the file containing the domain names Exim handles.
- local-aliases - the file containing mail aliases.
- maildir - the directory where email from local users is stored.
Example,
MTA exim path exim.conf /usr/local/etc/exim/configure path aliases /usr/local/etc/exim/alien-aliases path exim-users /usr/local/etc/exim/passwd path exim-virtualdomains /usr/local/etc/exim/multi-domains path local-aliases /usr/local/etc/exim/local-aliases path maildir /var/mail </code>
CommuniGate Pro
To run CommuniGate Pro add the parameter below to the configuration file
MTA cgpro
Provide the administrative password in the CommunigateProPassword parameter and the path to the CommuniGate Pro directory in the CommunigateProPath parameter:
MTA cgpro
CommunigateProUser cgpro
CommunigateProPassword paPitev
path CommunigateProPath /var/CommuniGate
Disabling MTA
If you do not want to use an MTA on your server, delete or comment out all the MTA parameters in the configuration file.
