Gatemail

From ISPWiki

Jump to: navigation, search

If you want your customers' email to be forwarded to the billing -> "Support center" -> E-mail, you need to customize your mail server. Use the /usr/local/ispmgr/sbin/gatemail utility to process the email and configure the mail server.

Configuring Sendmail

For example, you have a mailbox called support@example.com located on the same server. You need to forward incoming email to this server by editing /etc/mail/aliases and adding the line:

support:   "|/usr/local/ispmgr/sbin/gatemail"

Thus, the incoming email sent to the support user will be forwarded to the gatemail file.

The line may differ depending on the settings of your mail server (e.g. use of virtusertable, virtual users).

For the Redhat-like systems, such as CentOS Linux you will need to create a symbolic link by adding gatemail into the list of allowed programs:

ln -s /usr/local/ispmgr/sbin/gatemail /etc/smrsh/gatemail

Configuring Exim on FreeBSD (the FreeBSD-8-ISPmanager template)

In the /usr/local/etc/exim/domains file you need to specify

example.com:example.com::no

In the /usr/local/etc/exim/aliases file you need to specify

support@example.com:|/usr/local/ispmgr/sbin/gatemail:group
Was this helpful? Yes | No
Personal tools