Chapter 7. Sending/Receiving emails

Table of Contents

Sending emails
Via Sendmail (default)
Via SMTP relay/smarthost
Receiving emails
Via mail accounts - the easy way (PostMasterMailbox.pl)
Via command line program and e.g. procmail (PostMaster.pl)
Fetching emails via POP3 or IMAP and fetchmail for PostMaster.pl
Filtering/dispatching by OTRS/PostMaster modules (for more complex dispatching)

Sending emails

Via Sendmail (default)

OTRS can send out emails via Sendmail (e.g. Sendmail, Postfix, Qmail or Exim). The default configuration to use Sendmail should work out of the box.

You can configure the sendmail settings via the graphical configuration frontend (Framework::Core::Sendmail) or via Kernel/Config.pm:

    # SendmailModule
    # (Where is sendmail located and some options.
    # See 'man sendmail' for details.)
    $Self->{'SendmailModule'} = 'Kernel::System::Email::Sendmail';
    $Self->{'SendmailModule::CMD'} = '/usr/sbin/sendmail -t -i -f ';

Via SMTP relay/smarthost

OTRS can send emails via SMTP ( Simple Mail Transfer Protocol / RFC 821). These settings will be needed generally on non-unix platforms (e.g. win32).

The sendmail settings for a smarthost can be configured either via the graphical administration frontend (Framework::Core::Sendmail) or via Kernel/Config.pm:

    # SendmailModule
    $Self->{"SendmailModule"} = "Kernel::System::Email::SMTP";
    $Self->{"SendmailModule::Host"} = "mail.example.com";
    $Self->{"SendmailModule::AuthUser"} = "";
    $Self->{"SendmailModule::AuthPassword"} = "";