Installation and Configuration
    SUSE Linux Installation
    eDirectory Installation (for stand-alone configuration)
    eDirectory Configuration
Configuring saslauthd to Use LDAP Authentication
Configuring postfix to Use saslauthd
Testing saslauthd and postfix
Configuring IDM to Use your postfix MTA Service


As an IDM administrator deploying Novell Identity Manager, there are many times when you’ll want to have an e-mail server available for things such as events from IDM driver policies, password change notifications, or workflow events from the IDM user application. In many cases, however, whether the issue is political or technical, a company’s IS&T department may not allow access to the Enterprise mail server(s) by an outside entity.

Ideally, a secure mail relay should be available on the IDM server to allow authorized IDM UserApplication users to send e-mail when required. This AppNote describes how to install and configure the postfix smtpd mta agent as a secure e-mail relay with cyrus-sasl-saslauthd, using ldap authentication against eDirectory for smtp_auth.

  • Operating System tested: SuSE Linux Enterprise Server 10 SP1 (SLES10SP1)
  • eDirectory versions tested: eDirectory 8.8.2 for Linux
  • Identity Manager versions tested: IDM 3.5.1 for Linux
  • Postfix versions tested: postfix-2.2.9-10.18
  • Cyrus-sasl-saslauthd versions tested: cyrus-sasl-2.1.21-18.4, cyrus-sasl-saslauthd-2.1.21-18.4


  • SUSE Linux Enterprise Server 10 SP1 x86 architecture
  • postfix, cyrus-sasl, cyrus-sasl-saslauthd packages installed
  • eDirectory 8.8.2 installation files (archive or iso)
  • Novell Identity Manager 3.5.1 DVD

This AppNote assumes a working knowledge of eDirectory and IDM. It also assumes that you have an existing IDM deployment that will be using the postfix mta service. If you want to configure a stand-alone postfix configuration that will not be doing ldap authentication against your IDM Identity Vault, you will have to install eDirectory on the system separately.

Installation and Configuration

SUSE Linux Installation

Install SLES 10 SP1 x86. For software pattern installation, be sure that cyrus-sasl, cyrus-sasl-saslauthd, and postfix are selected within the ‘Server Base System’ install pattern.

eDirectory Installation (for stand-alone configuration)

1. Download the eDirectory 8.8.2 iso from download.novell.com

2. su to root (‘su’ in console, enter root password)

3. Mount the eDirectory installation .iso as /media/cdrom (‘mount -t iso9660 -o loop eDir_882.iso /media/cdrom’)

4. cd into /media/cdrom (this may also be ?/media/cdrom/eDirectory/setup?, depending on the eDirectory version) (‘cd /media/cdrom’)

5. Run ‘./nds-install’. Select options 1 and 2 for full eDirectory installation.

eDirectory installation is now complete. You can now configure your eDirectory tree using the eDirectory ndsconfig utility.

eDirectory Configuration

1. Set your system PATH for the nds binaries/libraries by issuing this command in the console:

'. /opt/novell/eDirectory/bin/./ndspath'

Note that the command starts with “dot-space”.

2. Configure your eDirectory tree from the command line using ndsconfig. For example:

ndsconfig new -t MYTREE -a cn=admin.o=novell -n o=novell -S myserver -i -e -D /var/opt/novell/instance0 -d /var/opt/novell/instance0/data/dib -w password --config-file /var/opt/novell/nds0.conf

The ‘-i’ option ignores duplicate tree lookup, and ‘-e’ enables ldap clear-text password. If you want to keep the default secure ldaps connection setting, omit the ‘-e’ switch and use either SSL to TLS to connect via LDAP.

You may also just use ‘ndsconfig new -i’ and enter options from the command line when prompted. The ‘-i’ option will skip the duplicate tree name lookup, which will fail if slp is not running. You may omit this option if you start the slpuasa service with ‘/etc/init.d/slpuasa start’.

3. Once eDirectory configuration is complete, you can verify that ndsd is up and running with ‘ndsstat’.

Configuring saslauthd to Use LDAP Authentication

First, you need to set up saslauthd to authenticate against the LDAP server.

1. Enable postfix and saslauthd to start at boot (‘yast2 runlevel’)

2. Enable postfix and saslauthd (the default will start them in runlevels 3 and 5)

3. Finish.

4. Back up the /etc/sysconfig/saslauthd file:

cp /etc/sysconfig/saslauthd /etc/sysconfig/saslauthd.bak

5. Edit the file (vi /etc/sysconfig/saslauthd)

6. Change the ‘mechanisms’ line to read ?SASLAUTHD_AUTHMECH=ldap?

7. Add the following entry: ‘ CONFIG_FILE=?/etc/saslauthd.conf? ‘

8. Write the changes and quit.

9. Edit the /etc/saslauthd.conf file (vi /etc/saslauthd.conf).

Unlike other, less secure LDAP servers, eDirectory requires TLS by default. No problem.

10. Add this entry: ‘ldap_servers: ldaps://your.ldap.server:636/’

This entry is the LDAP server that you want saslauthd to do LDAP authentication against. This could be your IDM Identity Vault or another stand-alone LDAP server. Clear text will also work with ‘ldap://your.ldap.server/’ (port number optional).

11. Add this entry ‘ldap_search_base: dc=example,dc=com’

This is the LDAP context where the users should exist for the ldap bind operation. An example might be ‘o=novell’ or ‘ou=users,o=novell’. Omit this entry if you would like saslauthd to search the entire tree from the root.

12. Restart saslauthd (/etc/init.d/saslauthd restart)

13. Verify that saslauthd is using LDAP by running ‘ps -ef | grep saslauthd’. You should see entries that look like ‘/usr/sbin/saslauthd -a ldap’.

Configuring postfix to Use saslauthd

To enable postfix to use saslauthd,

1. Edit the /etc/postfix/main.cf file.

2. Change the ‘smtpd_sasl_auth_enable’ line to read ‘smtpd_sasl_auth_enable = yes’

3. Change the line ‘smtpd_recipient_restrictions=’ to include ‘permit_sasl_authenticated’

With the default settings it would look like this:

smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination

4. Add the following lines:

smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain =
broken_sasl_auth_clients = yes

5. Save changes to postfix main.cf

6. Restart postfix (/etc/init.d/postfix restart).

Testing saslauthd and postfix

1. To test saslauthd, use testsaslauthd:

testsaslauthd -u username -p password

If it’s working, you should see a message similar to this:

1.0: OK "Success."

2. To verify postfix is expecting smtp_auth, verify that postfix is running and has authentication enabled by telneting to port 25 on the mail server (telnet mail.example.edu 25).

You should see something like this:

Connected to mail.
Escape character is '^]'.
220 mail.example.edu ESMTP Postfix

3. Once the connection is made, type ‘ehlo localhost’. You will see something similar to this:

250-SIZE 31457280

The ‘AUTH’ lines contain ‘LOGIN’, which shows that postfix will require a login before forwarding mail. This will also be the authentication type if you are using a mail client.

Configuring IDM to Use your postfix MTA Service

To configure your IDM deployment to use the postfix MTA as its mail relay,

1. Log in to your IDM deployment via iManager.

2. Select ‘Workflow Administration’ => Email Server Options.

3. Enter your postfix server’s ip address or host name.

4. Enter the ‘from’ address for emails sent by IDM or the UserApplication Portal.

5. Check the “Authenticate to server using credentials” checkbox.

6. Enter the user (rdn) of a user that exists in the ‘ldap_search_base:’ configured in the saslauthd.conf file (an example might be ‘admin’)

7. Enter the user’s password.

8. Click OK to apply your changes.

IDM should now be able to send emails thru your postfix server.

If you would like to ‘see’ email being processed by the postfix mta, you can run this command:

'tail -f /var/log/mail.info'


You should now have a fairly secure postfix mta that your IDM deployment (or regular mail clients, for that matter) can now use to relay email messages.

0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this post.
Categories: Uncategorized

Disclaimer: As with everything else at NetIQ Cool Solutions, this content is definitely not supported by NetIQ, so Customer Support will not be able to help you if it has any adverse effect on your environment.  It just worked for at least one person, and perhaps it will be useful for you too.  Be sure to test in a non-production environment.

Leave a Reply

One Comment

  • anjha0049 anjha0049 says:

    HI jhhut,

    First of all, thanks a lot for such a wonderful documentation.
    I was able to accomplish 90% of my task after following this document.
    I am just stuck in an issue, hope if you could help here.
    I have my user Application & eDirectory installed on windows server.
    I installed postfix on suse Linux server.
    After complete installation and configuration till “Testing saslauthd and postfix”, I am able to set relay as my exchange server and I am able to send test mails via exchange server.
    But, when I am pointing my IDM to postfix, I couldn’t see any logs in mail.info.
    I mean, I couldn’t see any communication between IDM & postfix server.
    Could you suggest me some troubleshooting points or if you could suggest, where actually we need to troubleshoot this.

    Thanks & regards,

By: jhhut
Dec 10, 2007
9:37 am
Active Directory Authentication Automation Cloud Computing Cloud Security Configuration Customizing Data Breach DirXML Drivers End User Management Identity Manager Importing-Exporting / ICE/ LDIF Intelligent Workload Management Knowledge Depot LDAP Monitoring Open Enterprise Server Passwords Reporting Secure Access Sentinel Supported Troubleshooting Workflow