How do I activate mail dispatch on a proServer?

By default, mail dispatch is deactivated on the proServers to prevent unintentional spamming.

The following 4 steps are required to activate it:

1. Do not deactivate Sendmail in /etc/rc.conf

$ sudo vim /etc/rc.conf
# alternativ steht auch "nano" als Editor zur Verfügung

As-delivered condition:

# Disable Sendmail by default
sendmail_enable="NONE"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"

Variant 1 - only send outgoing mails (remove all other lines):

sendmail_enable="NO"

Variant 2 - send outgoing mails and receive incoming mails (remove all other lines):

sendmail_enable="YES"

2. Prepare Sendmail configuration

The file /etc/mail/aliases should contain at least the line

# root:	me@my.domain

must be activated and provided with a reachable email address. Information about the system, including any failed cronjobs and similar, is regularly sent to this address.

A possible entry then looks like this, for example:

root:	proServer@example.com

3. Build Sendmail configuration

$ cd /etc/mail
$ sudo make
$ sudo make install

4. Start Sendmail

$ sudo service sendmail start

The following message is normal and simply means that Sendmail is only sending and not receiving.

Cannot 'start' sendmail. Set sendmail_enable to YES in /etc/rc.conf or use 'onerestart' instead of 'restart'.

Done. Shipping is now configured and activated.

Note: You should generally not change the generic host name of your virtual proServer. Setting this to "mydomain.com", for example, because this is the name of your website, means that you will not be able to send emails from the proServer to your domain.
If you have any questions on this topic, simply contact us.