Work with MTA (ISPmanager)

From ISPWiki

Jump to: navigation, search

Control panel supports different kinds of MTA (Mail Transfer Agent), and you can choose any you like. To setup the control panel to wotk with a mail agent add the parametres given below into the panel config file. After you add all the changes in the control panel [devel.config config file] stop the process by the command

killall ispmgr

Contents

Sendmail

To set up the control panel to work with Sendmail you will have to add into the control panel config file the parameter

MTA sendmail

You will also have to indicate the control panel [devel.config#paths paths] to the following config files and programms:

  • aliases - mail aliases text file.
  • local-host-names - file with the list of mail agent domain names.
  • newaliases - the program that creates the base from the mail aliases text file.
  • sasl - the program to control the aliases base used for autorization SMTP AUTH.
  • sendmail.pid - the file with the process number sendmail, used for reloading after adding any changes into local-host-names.
  • virtusertable - the mail aliases file with different domain names.

For example,

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

In case you use out of order sendmail reload procedure (i.d. you want your sendmail and another one program to be reload alltogether) you can desribe the reload procedure in the script and indicate the whole path to this script in the control panel config file parametre path SendmailRestart, like,

path SendmailRestart /usr/local/sbin/my_restart_sendmail.sh

In case nothing is indicated the reloading command will be "kill -1 `head -1 /var/run/sendmail.pid`"

Postfix

To setup the control panel to work with Postfix add the parametre MTA postfix into control panel config file

Also specify [devel.config#paths the paths] to the following config files and programms:

  • aliases - mail aliases text file.
  • local-host-names - file with the list of mail agent domain names.
  • newaliases - the program that creates the base from the mail aliases text file.
  • postfix - executable file postfix. The path is necessary to reload the programm after any changes were added local-host-names.
  • postmap - the program that creates the base from the virtusertable text file.
  • sasl - the program to control the aliases base used for autorization SMTP AUTH.
  • virtusertable - the mail aliases file with different domain names.

For 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 setup the control panel to work with Exim add the given below into the control panel config file

MTA exim

Also specify [devel.config#paths the paths] to the following config files and programms:

  • aliases - the file that redirect messages from the local addresses to the external ones (mail redirects).
  • exim-users - the file where mail address and its user mapping is creaded.
  • exim-virtualdomains - file with the list of mail agent domain names.
  • local-aliases - mail aliases file.
  • maildir - directory where the local users e-messages are kept.

For example,

MTA exim 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

CommuniGate Pro

The mail boxes CommuniGate Pro are virtual, that's why this kind of MTA users are separated from the system ones. To create, change parametres or delete mail users use the control panel module [email Mail boxes]. To control the FTP and shell users use the module [user Users].

To setup the control panel to work with CommuniGate Pro add the given below into the control panel config file

MTA cgpro

Also specify the password for CommuniGate Pro administration in the CommunigateProPassword parametre, and show [devel.config#paths the path] to the CommuniGate Pro directory in the CommunigateProPath parametre, like,

MTA cgpro CommunigateProUser cgpro CommunigateProPassword paPitev path CommunigateProPath /var/CommuniGate

MTA shutdown

If you don't use MTA on your server, delete or comment all the MTA parameters in the control panel config file.

Was this helpful? Yes | No
Views
Personal tools